CVE-2026-52811
Last modified
CVE-2026-52811 is a critical-severity vulnerability rated 9/10 on the CVSS scale. Gogs is an open source self-hosted Git service. Prior to 0.14.3, (*Repository).UploadRepoFiles checks for symlinks only on the leaf of the upload target (osx.IsSymlink(targetPath)). EPSS estimates a 0.47% chance of exploitation in the next 30 days.
Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, (*Repository).UploadRepoFiles checks for symlinks only on the leaf of the upload target (osx.IsSymlink(targetPath)). The siblings UpdateRepoFile, DeleteRepoFile, and GetDiffPreview use hasSymlinkInPath, which lstats every component — UploadRepoFiles is the lone outlier. An attacker with repo-write access plus a multipart upload whose filename contains a literal backslash (preserved by filepath.Base on Linux, then converted to / by pathx.Clean) redirects the write through a previously-committed directory symlink. iox.CopyFile opens the destination with os.Create (no O_NOFOLLOW), so the kernel follows the parent symlink and writes attacker bytes anywhere the gogs UID can write — ~git/.ssh/authorized_keys → SSH foothold, or <repo>.git/hooks/post-receive → next-push RCE. This vulnerability is fixed in 0.14.3.
Metrics
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-52811?
How severe is CVE-2026-52811?
How do I fix CVE-2026-52811?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-52806Gogs is an open source self-hosted Git service. Prior to 0.1…9.9
- CVE-2026-52807Gogs is an open source self-hosted Git service. Prior to 0.1…4.8
- CVE-2026-52808Gogs is an open source self-hosted Git service. Prior to 0.1…7.1
- CVE-2026-52809Gogs is an open source self-hosted Git service. Prior to 0.1…6.8
- CVE-2026-5281Use after free in Dawn in Google Chrome prior to 146.0.7680.…8.8
- CVE-2026-52810Gogs is an open source self-hosted Git service. Prior to 0.1…7.1
- CVE-2026-52812Gogs is an open source self-hosted Git service. Prior to 0.1…7.1
- CVE-2026-52813Gogs is an open source self-hosted Git service. Prior to 0.1…10
- CVE-2026-52814Gogs is an open source self-hosted Git service. Prior to 0.1…5.5
- CVE-2026-52815Gogs is an open source self-hosted Git service. Prior to 0.1…5.5
- CVE-2026-52816Gogs is an open source self-hosted Git service. Prior to 0.1…5.4
- CVE-2026-5282Out of bounds read in WebCodecs in Google Chrome prior to 14…8.1
Are you affected by CVE-2026-52811?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
