{"id":"CVE-2024-56731","aliases":["GHSA-wj44-9vcg-wjq7","GO-2025-3776"],"url":"https://o3.security/vulnerability/CVE-2024-56731","summary":"Gogs deletion of internal files allows remote command execution","details":"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":"2025-06-24T03:37:42.327Z","modified":"2026-08-08T03:48:08.280188804Z","cvss":{"score":10,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"gogs.io/gogs","fixedVersion":"0.13.3"}],"fix":{"url":"https://github.com/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9","label":"gogs/gogs@77a4a94"},"references":[{"type":"WEB","url":"https://github.com/gogs/gogs/releases/tag/v0.13.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56731.json"},{"type":"ADVISORY","url":"https://github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56731"},{"type":"FIX","url":"https://github.com/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:48:08.280188804Z"}}