CVE-2026-119546

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

Published Oct 30, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability exists in Forgejo's restore-repo feature, where a crafted asset path in a dump’s release.yml can use path traversal to read files outside the dump directory. This flaw allows an attacker who can supply a dump to an administrator to access sensitive files, such as the app.ini configuration file, leading to disclosure of credentials or configuration. The weakness is a classic path traversal (CWE-22).

Affected Systems

Versions up to 15.0.11, 16.0.7, and 17.0.1 of the Forgejo project are impacted. The affected vendor is Forgejo (forgejo.org). Administrators who use restore-repo in these releases are potentially at risk. No patch version is specified in the provided data; users should consult the Forgejo repository for an update beyond the stated releases.

Risk and Exploitability

The CVSS score is 6.8, indicating moderate severity. The EPSS score is unavailable, so the current likelihood of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, suggesting no widespread known exploitation at this time. The attack requires someone to create or supply a malicious dump and have the restore operation performed by a privileged administrator; thus, the exploitation vector is likely administrative access or social engineering to trigger a restore. If such conditions are met, the attacker could read arbitrary files from the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Forgejo release that fixes the restore-repo path traversal flaw (minimum 15.0.12, 16.0.8, or 17.0.2).
  • Validate any upload of a dump by stripping or rejecting ​​any relative path segments (../) in release.yml DownloadURL or PatchURL before executing restore.
  • Restrict the restore-repo operation to trusted administrators and monitor restore activity for anomalies.

Generated by OpenCVE AI on October 30, 2026 at 12:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Forgejo through 15.0.11, 16.0.7, and 17.0.1 Path Traversal via restore-repo
First Time appeared Forgejo
Forgejo forgejo
Weaknesses CWE-22
CPEs cpe:2.3:a:forgejo:forgejo:*:*:*:*:*:*:*:*
Vendors & Products Forgejo
Forgejo forgejo
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 4, 2026, 3:09 PM
Reserved
Oct 30, 2026, 10:53 AM
Status
Deferred
Published
Oct 30, 2026, 12:16 PM
Modified
Nov 4, 2026, 3:17 PM