CVEsforgejoCVE-2026-119546Published Oct 30, 11:30 · Updated Oct 30, 11:30 UTC
5.5
MediumCVSS 3.1 · from VulnCheck
CVE-2026-119546

Forgejo through 15.0.11, 16.0.7, and 17.0.1 Path Traversal via restore-repo

forgejo · Path traversal · CWE-22
Affectedforgejo
FixA patch is linked in the references.
PublishedOct 30, 11:30 · VulnCheck
ScoredOct 30 · 5.5 · VulnCheck
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:09 UTC

What we know

No known exploitation. CISA KEV, checked 22:09 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker needs local access to the machine. CVSS: local.
Someone has to open, click or run something first. CVSS: user interaction required.
A successful attack can read data. CVSS impact.

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.

From VulnCheck

Affected and fixed versions

ProductAffectedFixed inforgejoup to 15.0.11–forgejo16.0.0 – 16.0.7–forgejo17.0.0 – 17.0.1–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

codeberg.org/forgejo/forgejo/src/tag/v17.0.1/services/migrations/restore.go#L154 · codeberg.orgtechnical descriptionabraxaslabs.tech/research/forgejo-restore-file-open · abraxaslabs.techthird party advisorygithub.com/go-gitea/gitea/pull/38215 · github.comrelatedpatchGitHub Security Advisory (GHSA-xmj7-xj85-hfc3) · github.comrelatedvendor advisorycodeberg.org/forgejo/forgejo · codeberg.orgproductVulnCheck Advisory: Forgejo through 15.0.11, 16.0.7, and 17.0.1 Path Traversal via restore-repo · vulncheck.comthird party advisory

Other CVEs in forgejo

All 7 →
4.3Forgejo through 15.0.11, 16.0.7, and 17.0.1 Information Disclosure via /api/v1/user/keys/{id} · CVE-2026-119547Oct 305.3Forgejo through 15.0.11, 16.0.7, and 17.0.1 SSRF via OpenID Discovery · CVE-2026-119545Oct 304.3Forgejo 13.0.0 through 16.0.4, when "[federation] ENABLED = true" is set, has a spoofing issue that affects identity integrity but does not allow account… · CVE-2026-90679Sep 13