# CVE-2024-54148: Gogs has a Path Traversal in file editing UI

- 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): 0.85%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-23T15:22:48.244Z
- Modified: 2026-06-17T08:09:51.520Z
- Also known as: GHSA-r7j8-5h9c-f6fx, GO-2024-3355
- Weaknesses: CWE-22, CWE-61
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Gogs is an open source self-hosted Git service. A malicious user is able to commit and edit a crafted symlink file to a repository 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`
- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 High `CVSS:3.1/AV:N/AC:L/PR:N/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`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-r7j8-5h9c-f6fx> (exploit, advisory, vendor-advisory, web)
- <https://github.com/gogs/gogs/issues/7582> (issue-tracking, web)
- <https://github.com/gogs/gogs/pull/7857> (patch, web)
- <https://github.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-54148> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2024-54148](https://www.cve.org/CVERecord?id=CVE-2024-54148), CVE Terms of Use, modified 2024-12-24
- GitHub Advisory Database: [GHSA-r7j8-5h9c-f6fx](https://github.com/advisories/GHSA-r7j8-5h9c-f6fx), CC-BY-4.0, modified 2025-04-10
- Go Vulnerability Database: [GO-2024-3355](https://pkg.go.dev/vuln/GO-2024-3355), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-54148](https://nvd.nist.gov/vuln/detail/CVE-2024-54148), Public domain, modified 2026-06-17

---

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