# CVE-2025-68937: Forgejo before 13.0.2 allows attackers to write to unintended files, and possibly obtain server shell access, because of mishandling of out…

- Severity: Critical 9.5 (CVSS:4.0, scored by mitre) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2025-12-25T23:57:30.456Z
- Modified: 2026-10-13T10:10:00.193Z
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Forgejo Forgejo: from 12.0.0 before 13.0.2; before 11.0.7

## References

- <https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/13.0.2.md>
- <https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/11.0.7.md>
- <https://codeberg.org/forgejo/forgejo/milestone/29156>
- <https://codeberg.org/forgejo/forgejo/milestone/27340>
- <https://codeberg.org/forgejo/security-announcements/issues/43>
- <https://blog.gitea.com/release-of-1.24.7/>

## Sources

- CVE List: [CVE-2025-68937](https://www.cve.org/CVERecord?id=CVE-2025-68937), CVE Terms of Use, modified 2025-12-26
- NVD: [CVE-2025-68937](https://nvd.nist.gov/vuln/detail/CVE-2025-68937), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2025-68937 · Whole record: https://cve.day/CVE-2025-68937.json · Rebuilt by cve.day 2026-11-25T22:59:09.922Z
