CVE-2026-23633

Gogs has arbitrary file read/write via path traversal in Git hook editing

Published Feb 6, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, there is an arbitrary file read/write via path traversal in Git hook editing. This issue has been patched in versions 0.13.4 and 0.14.0+dev.

Analysis

AI-generated

Technical impact

The vulnerability in Gogs occurs when editing Git hook files, allowing an attacker to use directory traversal characters to read or write files anywhere on the host. This results in the ability to access sensitive configuration files, credentials, or to alter executable hook scripts, potentially leading to broader compromise of the system. The weakness is a classic path traversal flaw (CWE‑22).

Affected Systems

The CVE affects the open source Gogs self‑hosted Git service, specifically versions 0.13.3 and earlier. The issue has been addressed in version 0.13.4 and all subsequent releases, including 0.14.0 and later development builds. Systems running the vulnerable branches should be notified of the need to upgrade.

Risk and Exploitability

The CVSS score of 6.5 indicates a medium severity, while the EPSS score is reported as less than 1 %, suggesting a very low current exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is through the web interface while editing Git hooks, enabling a remote authenticated user to inject traversal sequences and manipulate files outside the repository. If an attacker gains the necessary permissions, the impact can be significant, but the low exploitation likelihood and absence from KEV mitigate immediate threat concerns.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Ensure Gogs is updated to version 0.13.4 or later, which contains the patch for the path traversal flaw.
  • If an immediate upgrade is not possible, restrict the ability to edit Git hooks to trusted administrators only and disable the hook editing feature for all other users in the web configuration.
  • Apply stricter file permissions on the hook directory, preventing write access to sensitive system locations, and monitor for any anomalous file modifications to detect potential abuse.

Generated by OpenCVE AI on April 18, 2026 at 13:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mrph-w4hh-gx3g Gogs has arbitrary file read/write via Path Traversal in Git hook editing
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Gogs
Gogs gogs
Vendors & Products Gogs
Gogs gogs
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, there is an arbitrary file read/write via path traversal in Git hook editing. This issue has been patched in versions 0.13.4 and 0.14.0+dev.
Title Gogs has arbitrary file read/write via path traversal in Git hook editing
Weaknesses CWE-22
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 6, 2026, 6:53 PM
Reserved
Jan 14, 2026, 4:08 PM
Status
Analyzed
Published
Feb 6, 2026, 6:15 PM
Modified
Jun 17, 2026, 10:21 AM