CVE-2024-56731
CVE-2024-56731 — Gogs deletion of internal files allows remote command execution
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
1%
chance of exploitation in 30 days
CVSS base
10.0
CRITICAL
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 10.0 | CVSS 3.1 | CRITICAL | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-552
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1003OS Credential Dumping
- T1119Automated Collection
- T1213Data from Information Repositories
References
3 on the record
- github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7
x_refsource_CONFIRM
- github.com/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9
x_refsource_MISC
- github.com/gogs/gogs/releases/tag/v0.13.3
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-8110 File overwrite in file update API in GogsCVSS 8.8 · CISA KEV
- CVE-2026-52806 Gogs: RCE via git rebase --exec argument injection in pull request mergeCVSS 9.9
- CVE-2017-16651 Roundcube Webmail File Disclosure VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2026-21589 Atlassian Multiple Products Files or Directories Accessible to External Parties VulnerabilityCVSS 7.5 · CISA KEV
- CVE-2025-11371 Gladinet CentreStack and TrioFox Local File Inclusion FlawCVSS 7.5 · CISA KEV
- CVE-2020-17519 Apache Flink Improper Access Control VulnerabilityCVSS 7.5 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.