Patchfirst
CVE-2026-52813 Public exploit Critical · 10.0 EPSS 1.1%

Gogs: Path Traversal in organization name results in RCE through Git hooks

gogs · gogs

Summary

Gogs versions prior to 0.14.3 accept organization names containing path traversal sequences, allowing repositories to be written to arbitrary filesystem locations and potentially enabling remote code execution. This critical vulnerability affects users of the open source self-hosted Git service.

Official description · CVE.org

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.

Breakdown
77.5 / 100
Exploited
Yes, in VulnCheck KEV
Reports
5
Tactics
0/15

First seen exploited 2 days after disclosure. Public exploit code (PoC-in-GitHub) appeared 27 days after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+2 days
  3. Public exploit codePoC-in-GitHub+27 days

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: gogs.io/gogs.

Upgrade to 0.14.3

Fixes this CVE and 4 other known vulnerabilities in this package (CVE-2022-0415, CVE-2022-2024, +2).

Still affected on this line by CVE-2022-32174 (no fix published); CVE-2025-8110 (no fix published); CVE-2026-52806 (no fix published).

Also affected, despite being newer: All versions.

Gogo get gogs.io/gogs@v0.14.3

The first fix for CVE-2026-52813.

Affected versions, by release line

If you runUpgrade to
All versionsNo fix published
All versions before 0.14.30.14.3

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Named in 5 threat reports
5 reportsaikido.dev5

Reports are matched by finding the exact id CVE-2026-52813 in their text; nobody has reviewed the match. One passage is shown per report, at most 320 characters, linked to the original.

Show all 5 reportsShow fewer

Also mentioned in 10 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close