# CVE-2025-64111: Gogs's update .git/config file allows remote command execution

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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): 1.39%, higher than 73% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-06T16:58:01.853Z
- Modified: 2026-06-17T09:53:50.670Z
- Also known as: GHSA-gg64-xxr9-qhjp, GO-2026-4448
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, due to the insufficient patch for CVE-2024-56731, it's still possible to update files in the .git directory and achieve remote command execution. This issue has been patched in versions 0.13.4 and 0.14.0+dev.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.0+dev; < 0.13.4; before 0.13.4
- gogs.io/gogs (Go): before 0.13.4; all versions

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: 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`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-gg64-xxr9-qhjp> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64111> (advisory)
- <https://github.com/gogs/gogs> (package)
- <https://github.com/gogs/gogs/blob/d940e692ec58abd45e648c054d7dfd88909034ec/internal/route/api/v1/repo/contents.go#L197-L206> (web)

## Sources

- CVE List: [CVE-2025-64111](https://www.cve.org/CVERecord?id=CVE-2025-64111), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-gg64-xxr9-qhjp](https://github.com/advisories/GHSA-gg64-xxr9-qhjp), CC-BY-4.0, modified 2026-02-19
- Go Vulnerability Database: [GO-2026-4448](https://pkg.go.dev/vuln/GO-2026-4448), CC-BY-4.0, modified 2026-02-19
- NVD: [CVE-2025-64111](https://nvd.nist.gov/vuln/detail/CVE-2025-64111), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-64111 · Whole record: https://cve.day/CVE-2025-64111.json · Rebuilt by cve.day 2026-11-25T22:59:11.080Z
