CVE-2024-56731
Gogs remote code execution
- Published24 Jun 2025
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 3.1 breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HAffected products
Remediation
References
Related CVEs
Recent high-severity vulnerabilities sharing a weakness type.
Frequently asked
Is CVE-2024-56731 being actively exploited?
CVE-2024-56731 is not in the CISA KEV catalog. Its EPSS exploit probability is 1.15%.
How severe is CVE-2024-56731?
CVE-2024-56731 has a CVSS 3.1 base score of 10.0, rated critical. EPSS estimates a 1.15% probability of exploitation.
Which products are affected by CVE-2024-56731?
Affected products include Gogs.
How do I fix CVE-2024-56731?
Upgrade affected software to a fixed version, for example Gogs 0.13.3 or later, then confirm no affected versions remain in your inventory.
How Secuno handles this
Secuno correlates vulnerabilities like CVE-2024-56731 against the real software inventory on every managed device, every day. Rather than a static severity, each match is scored in context: exploit availability, EPSS, the asset's exposure, and business criticality decide where it lands in the queue. If an affected version is present anywhere across your portfolio, it surfaces automatically with a prioritised remediation path.
Data from the NVD, CISA KEV catalog and FIRST EPSS. CVSS 3.1 base score shown where available.