CVE-2024-56731: Gogs deletion of internal files allows remote command execution
Vulnerability summary
CVE-2024-56731 is a critical (CVSS 10.0) vulnerability in gogs. EPSS estimates a 1.15% chance of exploitation in the next 30 days, higher than 66.9% of scored vulnerabilities.
Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 24-06-2025PublishedVulnerability first disclosed.
- 25-06-2025Last modifiedVulnerability information updated.
Description
Gogs is an open source self-hosted Git service. Prior to version 0.13.3, it's still possible to delete files under the .git directory and achieve remote command execution due to an insufficient patch for CVE-2024-39931. Unprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by RUN_USER in the configuration. Allowing attackers to access and alter any users' code hosted on the same instance. This issue has been patched in version 0.13.3.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated10.0CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.15%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.15% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Gogs1 product
- gogs< 0.13.3
Gogs.io1 product
- gogs< 0.13.3
2 vendors · 2 products
References
6 links- github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7X Refsource CONFIRMWEBAdvisoryPatchVendor Advisory
- github.com/gogs/gogsPACKAGE