Path traversal in Forgejo restore-repo lets attackers read files
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-22 and the CVSS impact.
Summary
Forgejo through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through 17.0.1 contains a path traversal flaw (CWE-22) in restore-repo. An attacker who supplies a crafted dump can make restore-repo read files outside the dump directory, such as app.ini, and import them as release attachments when an administrator restores the dump.
Written with Claude Haiku 5.5 from the sources below · 2026-11-04
Description from the CNA
Forgejo through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through 17.0.1 contains a path traversal vulnerability in restore-repo that allows attackers to read files outside the dump directory via crafted asset paths. Attackers can supply a dump whose release.yml DownloadURL or PatchURL contains ../ sequences, importing files like app.ini as release attachments when an administrator restores it.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for Forgejo.
Written with Claude Haiku 5.5 from the sources below · 2026-11-04
Vendor assessments
Timeline
- 2026-10-30 Threatist record created from CVE-2026-119546
- 2026-10-30 Alias added: GHSA-gx58-cw96-3j3q
- 2026-10-30 Affected versions changed · Red Hat
- 2026-10-30 CVSS score added · Red Hat
- 2026-11-01 Priority changed: MEDIUM → LOW
- 2026-11-04 CISA SSVC decision points changed
- 2026-11-04 Priority changed: LOW → MEDIUM
References
More Forgejo vulnerabilities
- TI-2026-83009 Forgejo server-side request forgery via OpenID Discovery CVSS 4.0MEDIUM 6.9
- TI-2026-83011 Forgejo API lets authenticated users read other users' SSH keys CVSS 4.0MEDIUM 5.3
- TI-2026-60375 Forgejo before 16.0.4 allows remote code execution via a crafted template repository… CVSS 3.1CRITICAL 9.9
- 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-119546 · CVE Program
- CVE-2026-119546 · NVD
- FIRST EPSS
- GHSA-gx58-cw96-3j3q · GitHub Advisory Database · CC BY 4.0
- CVE-2026-119546 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences