CVE-2024-56731
Gogs deletion of internal files allows remote command execution
CVSS v3
10
CRITICAL
EPSS Score
1.1 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
none
SSVC status
Get an alert for each new CVE published for gogs.io/gogs.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- gogs.io/gogsGoall versions · fixed in 0.13.3
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.
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Published
- 2025-06-24
- Last Modified
- 2026-06-17
Frequently asked questions
What is CVE-2024-56731?
Is CVE-2024-56731 actively exploited?
What is the CVSS score for CVE-2024-56731?
Running gogs.io/gogs? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.