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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Forgejo | Forgejo | 12.0.0 – < 13.0.2, < 11.0.7 | 13.0.2 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
Scratchappy/CVE-2025-68937 ★ 0 · Aug 2, 2026
Automated PoC exploit for CVE-2025-68937 — Gitea/Forgejo Template Symlink RCE. Any authenticated user can get a shell as the git service user.
-
ClemaX/Gitea-Forgejo-CVE-2025-68937 ★ 0 · Dec 1, 2025
Directory traversal in Gitea and Forgejo's repository‑template processing allows remote authenticated attackers to process arbitrary files on the filesystem, leading to remote code execution.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- WID-SEC-2025-2925 Gitea: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 5, 2026
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/