CVE-2025-68937 Path traversal in Forgejo
Attackers can write to unintended files and potentially gain server shell access via mishandled symlink destinations in template repositories.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-68937?
CVE-2025-68937 is a critical path traversal vulnerability in Forgejo, published on 25 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-61
Which versions are affected by CVE-2025-68937?
How do I fix CVE-2025-68937?
No fix has been published for CVE-2025-68937 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-68937 being exploited?
There is no known exploitation of CVE-2025-68937 in the wild and no public exploit code.
Public exploit code: 2 proofs of concept on GitHub.
Sources
Also known as GHSA-7mhf-6fhv-c83c.