Forgejo
Forgejo before 13.0.2 allows attackers to write to unintended files, and possibly obtain server shell access, because of mishandling of out-of-repository symlink destinations for template repositories. This is also fixed for 11 LTS in 11.0.7 and later.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 12.0.0, < 13.0.2
- < 11.0.7
Fixed in 13.0.2, 11.0.7
Mitigation
Upgrade Forgejo to 13.0.2 or 11.0.7 or later.
Timeline
Days relative to CVE publicationFirst public PoC 219 days after publication; not in CISA KEV. First PoC: Scratchappy/CVE-2025-68937 (created 2 Aug 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 informational
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Scratchappy/CVE-2025-68937 | 2 Aug 2026 +219 d | 0 | PoC |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ClemaX/Gitea-Forgejo-CVE-2025-68937 | 1 Dec 2025 −25 d | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repo{VAR} /api/v1{var}
- Ports
- 3000
- Seen in
- 1 repo: Scratchappy/CVE-2025-68937
- Evidence
- Scratchappy/CVE-2025-68937/exploit.py:32
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2025-68937 Forgejo Forgejo exploit attempt"; flow:established,to_server; http.method; content:"{VAR}"; http.uri; content:"/api/v1"; reference:url,poc.griffinguard.io/cve/CVE-2025-68937; classtype:web-application-attack; sid:9571312; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Forgejo Forgejo exploit attempt (CVE-2025-68937)
id: gg-pocmon-cve-2025-68937-9571312
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-68937. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-68937
logsource:
category: webserver
detection:
selection:
cs-method: {VAR}
cs-uri-stem|contains|all:
- '/api/v1'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.68937