All vulnerabilities

Servers and applications

CVE-2026-23633

Arbitrary file read/write via path traversal in Git hook editing

Severity
Medium 6.5
Published
6 Feb 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.13.4
Exploit chance
0.5% in the next 30 daysHigher than 43% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Path traversal (CWE-22)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Also known as
GHSA-mrph-w4hh-gx3g
Sources
NVD, Project advisories (GitHub)

Description

In the endpoint:

the :name parameter:

  • Is URL-decoded by macaron routing, allowing decoded slashes (/)
  • Is then passed directly to:

which internally resolves the path as:

Because no path sanitization is applied, supplying ../ sequences allows access to arbitrary paths outside the repository.

  • GET: Arbitrary file contents are displayed in the hook edit page textarea (Local File Inclusion).
  • POST: Existing files can be overwritten with attacker-controlled content (Arbitrary File Write).
  • The attacker is an authenticated user
  • The attacker has Admin or higher privileges on the target repository
  • The attacker has the AllowGitHook permission (or is a site administrator)
  • The target file is readable/writable by the Gogs process OS permissions
  • An attacker (with AllowGitHook + repository Admin privileges) accesses the Git hook edit URL
  • A path containing ../ is supplied in :name, fully URL-encoded using %2f
  • The server resolves custom_hooks/../../...
From gogs/gogs's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GogsServers and applications · cpe:a:gogs:gogs
  • Every version before 0.13.4
GogsServers and applications · github:gogs/gogs
  • Every version before 0.13.4

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,040,857Docker Hub, 15 Nov 2026
GitHub stars
47,939GitHub, 15 Nov 2026
Forks
5,082GitHub, 15 Nov 2026
Latest release
v0.14.4GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-23633
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-23633
  • GitHub Advisory Database https://github.com/advisories/GHSA-mrph-w4hh-gx3g
  • github.com https://github.com/gogs/gogs/security/advisories/GHSA-mrph-w4hh-gx3g