Patchfirst
CVE-2024-55947 Public exploit High · 8.7 EPSS 77.8%

Gogs has a Path Traversal in file update API

gogs · gogs

Summary

The flaw is a path traversal in the file update API of Gogs, an open source self-hosted Git service, which lets the file-writing logic escape its intended directory. An attacker with low-privileged, authenticated access over the network, requiring no user interaction and no non-default configuration, can write a file to an arbitrary location on the server and use it to gain SSH access to the host.

Official description · CVE.org

Gogs is an open source self-hosted Git service. A malicious user is able to write a file to an arbitrary path on the server to gain SSH access to the server. The vulnerability is fixed in 0.13.1.

Breakdown
31.0 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 18 months after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+18 mo

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 3 other known vulnerabilities in this package (CVE-2022-0415, CVE-2022-2024, +1).

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

Gogo get gogs.io/gogs@v0.14.3

First fixed in 0.13.1 for CVE-2024-55947.

Affected versions

If you runUpgrade to
All versions before 0.13.10.14.3first fix for this CVE: 0.13.1

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

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

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