PatchSiren cyber security CVE debrief
CVE-2026-52811 gogs CVE debrief
A critical vulnerability exists in Gogs, a self-hosted Git service, prior to version 0.14.3. An attacker with repository write access can exploit this vulnerability by uploading a file with a specially crafted filename, potentially allowing them to write to arbitrary locations on the system. The vulnerability arises from inconsistent symlink checking in the UploadRepoFiles function, which only checks for symlinks at the leaf of the upload target, whereas other functions check for symlinks in the entire path. This inconsistency can be exploited by an attacker to write to arbitrary locations on the system, potentially leading to remote code execution or other malicious activities.
- Vendor
- gogs
- Product
- Unknown
- CVSS
- CRITICAL 9
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-24
- Original CVE updated
- 2026-11-03
- Advisory published
- 2026-06-24
- Advisory updated
- 2026-11-03
Who should care
Administrators of Gogs instances, developers who use Gogs for version control, and security teams responsible for monitoring and mitigating potential threats. These individuals should be aware of the vulnerability and take immediate action to patch or mitigate the vulnerability to prevent potential attacks. Additionally, operators and platform administrators should review the affected scope and severity to ensure proper prioritization and remediation of G
Why it matters
A critical vulnerability in Gogs allows attackers with repository write access to potentially write to arbitrary locations on the system, requiring urgent attention from administrators and developers.
- Potential for arbitrary file writes
- Possible exploitation by attackers with repository write access
- Need for urgent patching or mitigation
Technical summary
The vulnerability exists in the UploadRepoFiles function of Gogs, which does not properly check for symlinks in the upload target path. An attacker with repository write access can exploit this vulnerability by uploading a file with a specially crafted filename, potentially allowing them to write to arbitrary locations on the system. The inconsistency in symlink checking can be exploited by an attacker to write to arbitrary locations on the system, potentially leading to remote code execution or other malicious activities.
Defensive priority
High
Recommended defensive actions
- Upgrade to Gogs version 0.14.3 or later
- Restrict repository write access to trusted users
- Monitor repository uploads for suspicious activity
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The vulnerability is caused by inconsistent symlink checking in the UploadRepoFiles function. The function only checks for symlinks at the leaf of the upload target, whereas other functions check for symlinks in the entire path. This inconsistency can be exploited by an attacker to write to arbitrary locations on the system.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-52811 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-52811
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-52811 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-52811
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/gogs/gogs/commit/04cb8afbb01d855454e59977a1cdbf522ea1db31
-
Source reference
Unverified legacy reference
URL: https://github.com/gogs/gogs/pull/8332
-
Source reference
Unverified legacy reference
URL: https://github.com/gogs/gogs/releases/tag/v0.14.3
-
Source reference
Unverified legacy reference
URL: https://github.com/gogs/gogs/security/advisories/GHSA-89mr-xqfv-758m
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.