# CVE-2024-55947: Gogs has a Path Traversal in file update API

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 77.7%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-23T15:26:47.507Z
- Modified: 2026-09-10T03:50:56.130Z
- Also known as: GHSA-qf5v-rp47-55gg, GO-2024-3356
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.13.1; before 0.13.1
- gogs.io/gogs (Go): before 0.13.1

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-qf5v-rp47-55gg> (exploit, advisory, vendor-advisory, web)
- <https://github.com/gogs/gogs/issues/7582> (issue-tracking, web)
- <https://github.com/gogs/gogs/pull/7859> (patch, web)
- <https://github.com/gogs/gogs/commit/9a9388ace25bd646f5098cb9193d983332c34e41> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-55947> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2024-55947](https://www.cve.org/CVERecord?id=CVE-2024-55947), CVE Terms of Use, modified 2024-12-24
- GitHub Advisory Database: [GHSA-qf5v-rp47-55gg](https://github.com/advisories/GHSA-qf5v-rp47-55gg), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-3356](https://pkg.go.dev/vuln/GO-2024-3356), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-55947](https://nvd.nist.gov/vuln/detail/CVE-2024-55947), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-55947 · Whole record: https://cve.day/CVE-2024-55947.json · Rebuilt by cve.day 2026-11-25T22:58:50.326Z
