Forgejo before 16.0.4 allows remote code execution via a crafted template repository…
Priority MEDIUM 44CWE-1336Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-1336.
Summary
Forgejo before 16.0.4 allows remote code execution via a crafted template repository because template expansion on files in .forgejo/template is mishandled.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0085 58th percentileScored 2026-11-07
Fix Fixed Forgejo (Forgejo): 16.0.4, 15.0.8
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA Forgejo (Forgejo) Fixed in 16.0.4, 15.0.8
Timeline
- 2026-10-02 Threatist record created from CVE-2026-89094
- 2026-10-03 Alias added: GHSA-q873-4w8p-m645
References
More Forgejo vulnerabilities
- TI-2026-83009 Forgejo server-side request forgery via OpenID Discovery CVSS 4.0MEDIUM 6.9
- TI-2026-83010 Path traversal in Forgejo restore-repo lets attackers read files CVSS 4.0MEDIUM 6.8
- TI-2026-83011 Forgejo API lets authenticated users read other users' SSH keys CVSS 4.0MEDIUM 5.3
- TI-2026-42282 Forgejo < 15.0.3 - Stored XSS via Actions Run Full Name Rendering CVSS 4.0LOW 2.1
- TI-2025-42393 Forgejo before 13.0.2 allows attackers to write to unintended files, and possibly obtain… CVSS 4.0CRITICAL 9.5
- TI-2023-27308 In Forgejo before 1.20.5-1, certain endpoints do not check whether an object belongs to a… CVSS 3.1CRITICAL 9.1
Sources
- CVE-2026-89094 · CVE Program
- CVE-2026-89094 · NVD
- FIRST EPSS
- GHSA-q873-4w8p-m645 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences