CVE-2025-64111
published 2026-02-06CVE-2025-64111: 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…
PriorityP261critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
1.23%
65.2th percentile
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.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gogs.io | gogs | >= 0 < 0.13.4 | 0.13.4 |
| gogs | gogs | < 0.13.4 | 0.13.4 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv4.09.3CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Gogs's update .git/config file allows remote command execution in gogs.io/gogs
osv·2026-02-17
CVE-2025-64111 Gogs's update .git/config file allows remote command execution in gogs.io/gogs
Gogs's update .git/config file allows remote command execution in gogs.io/gogs
Gogs's update .git/config file allows remote command execution in gogs.io/gogs.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: gogs.io/gogs before v0.13.4.
GHSA
Gogs's update .git/config file allows remote command execution
ghsa·2026-02-06
CVE-2025-64111 [CRITICAL] CWE-78 Gogs's update .git/config file allows remote command execution
Gogs's update .git/config file allows remote command execution
### Summary
Due to the insufficient patch for the https://github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7, it's still possible to update files in the `.git` directory and achieve remote command execution.
### Details
Function `UpdateRepoFile` security check under some if conditions. While UpdateRepoFile call in API router will NOT match any of them. It's still possible to update `.git/config` file via API router.
https://github.com/gogs/gogs/blob/d940e692ec58abd45e648c054d7dfd88909034ec/internal/route/api/v1/repo/contents.go#L197-L206
### PoC
```bash
# add a symlink file and push to repo.
ln -s .git/config link
git add link
git commit -m 'add' && git push
```
Update file via API router
```http
PUT /api/v1/repo
OSV
Gogs's update .git/config file allows remote command execution
osv·2026-02-06
CVE-2025-64111 [CRITICAL] Gogs's update .git/config file allows remote command execution
Gogs's update .git/config file allows remote command execution
### Summary
Due to the insufficient patch for the https://github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7, it's still possible to update files in the `.git` directory and achieve remote command execution.
### Details
Function `UpdateRepoFile` security check under some if conditions. While UpdateRepoFile call in API router will NOT match any of them. It's still possible to update `.git/config` file via API router.
https://github.com/gogs/gogs/blob/d940e692ec58abd45e648c054d7dfd88909034ec/internal/route/api/v1/repo/contents.go#L197-L206
### PoC
```bash
# add a symlink file and push to repo.
ln -s .git/config link
git add link
git commit -m 'add' && git push
```
Update file via API router
```http
PUT /api/v1/repo
No detection rules found.
No public exploits indexed.
2026-02-06
Published