Authenticated code execution via parent-symlink file write
Published Jun 24, 2026 · Updated Jun 24, 2026
Path traversal in Gogs before 0.14.3 allows remote authenticated users with repository write access to write files outside the working tree. The UploadRepoFiles path checks only the destination leaf for a symlink, then pathx.Clean turns a backslash in the multipart filename into a separator and os.Create follows a committed parent symlink. Repository write access and a real parent symlink on Linux or macOS are required; a write to an SSH key or Git hook grants code execution as the Gogs service account.
Summary
What happened
Path traversal in Gogs before 0.14.3 allows remote authenticated users with repository write access to write files outside the working tree. The UploadRepoFiles path checks only the destination leaf for a symlink, then pathx.Clean turns a backslash in the multipart filename into a separator and os.Create follows a committed parent symlink. Repository write access and a real parent symlink on Linux or macOS are required; a write to an SSH key or Git hook grants code execution as the Gogs service account.
The record
- CVE
- CVE-2026-52811
- Published
- Jun 24, 2026
- Updated
- Jun 24, 2026
- Vendor
- Gogs
- Product
- Gogs
- Classifications
- CWE-59, CWE-22, CWE-61, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 24, 2026CVE publishedPublication date reported by the CVE source.
- Jun 24, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 0.14.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-89mr-xqfv-758m embedded proof of conceptfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo