SecurityContext

CVE-2026-52813: Gogs - Path Traversal & Remote Code Execution

  • Cve: CVE-2026-52813
  • Name: Gogs - Path Traversal & Remote Code Execution
  • Description: Gogs is an open source self-hosted Git service. Prior to 0.14.3, organization names containing path traversal sequences (../) are accepted by Gogs, and repositories under them are written to paths following these path traversals. This allows storing/retrieving data for repositories at arbitrary locations on the filesystem. By creating nested structure of Git repositories, one can overwrite the other's hooks configuration to result in Remote Code Execution (RCE). This vulnerability is fixed in 0.14.3.
  • Impact: Attackers can execute arbitrary code remotely by overwriting repository hooks via path traversal.
  • Remediation: Update to version 0.14.3 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: remote_code_execution, file_system_write
  • Requirement type: logged_in
  • Requirements: Attacker needs privileges to create nested Git repositories.
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 10
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Epss score: 0.01107
  • Epss percentile: 0.66688
  • Assignee: [email protected]
  • Published at: 2026-06-24T21:16:57Z
  • Age in days: 153
  • Modified at: 2026-06-26T05:16:30Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-52813
  • Nvd status: deferred
  • Checked, none or zero: nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-23Relative Path Traversal

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2026-06-26—no

Public exploits

UrlSourceAdded date
https://github.com/iqx6889/CVE-2026-52813-Gogs-RCEpoc-in-github2026-07-21
https://github.com/thecodeb0ss/CVE-2026-52813.gitvulncheck-xdb2026-07-02

References

UrlSourceTags
https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2026-52813vulncheckVulncheck Reported Exploitation
https://previdian.com/CVE-2026-52813vulncheckVulncheck Reported Exploitation
https://github.com/gogs/gogs/commit/f6acd467305943aae8403cbac81f0118dd1235d7nvd
https://github.com/gogs/gogs/pull/8334nvd
https://github.com/gogs/gogs/releases/tag/v0.14.3nvd
https://github.com/gogs/gogs/security/advisories/GHSA-c39w-43gm-34h5nvd

Products

ProductAffectedPlatform boundSourcesUrl
gogs:gogs< 0.14.3nocna_alias_text/v1/products/gogs/gogs

Projects

RepositoryLink kindsIndexedUrl
gogs/gogscommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/gogs/gogs

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Known exploited by: vulncheck
  • Vulncheck known exploited since: 2026-06-26
  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2026-07-02
  • Remote: yes
  • Exposed hosts: 174004
  • Checked, none or zero: known exploited, exploitation seen, initial access, authentication required
  • Not known: known exploited since, nuclei template, initial access since, hackerone reports