CVE-2026-119546 Details
Description
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.
A path traversal vulnerability has been identified in Forgejo versions through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through 17.0.1. The issue resides in the 'restore-repo' command, where attackers can craft asset paths to read files outside the designated dump directory. By including '../' sequences in the 'release.yml' DownloadURL or PatchURL, attackers can import sensitive files like 'app.ini' as release attachments when an administrator restores the repository.
Users can update to Forgejo versions 16.0.8 or 17.0.2, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2026CISA-ADP
Assessed Nov 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/go-gitea/gitea/security/advisories/GHSA-xmj7-xj85-hfc3 | CISA-ADP | AdvisoryBundleTechnical AnalysisVendor |
| https://abraxaslabs.tech/research/forgejo-restore-file-open | [email protected] | ExploitTechnical Analysis |
| https://codeberg.org/forgejo/forgejo | [email protected] | Vendor |
| https://codeberg.org/forgejo/forgejo/src/tag/v17.0.1/services/migrations/restore.go#L154 | [email protected] | Source CodeVendor |
| https://github.com/go-gitea/gitea/pull/38215 | [email protected] | Issue TrackingVendor |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-xmj7-xj85-hfc3 | [email protected] | AdvisoryBundleTechnical AnalysisVendor |
| https://www.vulncheck.com/advisories/forgejo-through-15.0.11-16.0.7-and-17.0.1-path-traversal-via-restore-repo | [email protected] | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Forgejo | <= 15.0.11 (semver) >= 16.0.0, <= 16.0.7 (semver) >= 17.0.0, <= 17.0.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 4, 2026 | CVE Modified | CISA-ADP |
| Oct 30, 2026 | New CVE Received | [email protected] |
Volerion