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.
Published: 2026-10-30
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: Sensitive File Disclosure
Action: Assess Impact
AI Analysis

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.

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

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 yet.

History

Fri, 30 Oct 2026 11:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T11:30:59.315Z

Reserved: 2026-10-30T10:53:24.377Z

Link: CVE-2026-119546

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-30T12:16:40.783

Modified: 2026-10-30T12:16:40.920

Link: CVE-2026-119546

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T12:45:12Z

Weaknesses
  • CWE-22

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