{"cve":"CVE-2024-56731","nvd":{"published":"2025-06-24T04:15:45.813","modified":"2026-06-17T08:12:51.593","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-552"],"references":["https://github.com/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9","https://github.com/gogs/gogs/releases/tag/v0.13.3","https://github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7"],"products":["gogs:gogs"],"source":"nvd","synced_at":"2026-10-19T22:03:23.287444849+00:00"},"epss":{"cve":"CVE-2024-56731","score":0.0115,"percentile":0.66906,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wj44-9vcg-wjq7","url":"https://osv.dev/vulnerability/GHSA-wj44-9vcg-wjq7","summary":"Gogs allows deletion of internal files which leads to remote command execution","modified":"2025-07-28T20:42:04.801588Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.13.3"],"fixed":["0.13.3"]}]},{"id":"GO-2025-3776","url":"https://osv.dev/vulnerability/GO-2025-3776","summary":"Gogs allows deletion of internal files which leads to remote command execution in gogs.io/gogs","modified":"2026-03-03T04:57:20.223991Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.13.3"],"fixed":["0.13.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}