CVE-2024-56731

Gogs deletion of internal files allows remote command execution

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.

Category

10.0
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 0.33%
Vendor Advisory github.com
Affected: gogs gogs
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-56731?
CVE-2024-56731 has been scored as a critical severity vulnerability.
How to fix CVE-2024-56731?
To fix CVE-2024-56731, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-56731 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-56731 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-56731?
CVE-2024-56731 affects gogs gogs.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.