{"id":"CVE-2024-39931","aliases":["EUVD-2024-3577","GHSA-2vgj-3pvg-xh4w","GHSA-ccqv-43vm-4f3w","GO-2024-2970"],"status":"published","title":"Duplicate Advisory: Gogs allows deletion of internal files","description":"Gogs through 0.13.0 allows deletion of internal files.","severity":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.52658,"percentile":0.98985,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-552"],"published":"2024-07-04T00:00:00Z","modified":"2026-10-28T02:30:42Z","fixes":[{"ecosystem":"Go","package":"gogs.io/gogs","fixed_in":["0.13.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.13.0"},{"fixed":"0.13.1"}]}]},{"source":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.13.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/gogs/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"gogs","product":"gogs"}],"references":[{"url":"https://github.com/gogs/gogs/releases","tags":["x_transferred","Release Notes","package","web"]},{"url":"https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/","tags":["x_transferred","Third Party Advisory","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39931","tags":["advisory"]},{"url":"https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2vgj-3pvg-xh4w","tags":["advisory"]},{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-ccqv-43vm-4f3w","tags":["web"]},{"url":"https://github.com/advisories/GHSA-ccqv-43vm-4f3w"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39931.json","tags":["advisory"]},{"url":"https://github.com/gogs/gogs","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-39931","description":"Gogs through 0.13.0 allows deletion of internal files.","status":"published","published":"2024-07-04T00:00:00Z","modified":"2024-08-02T04:33:11.178Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","level":"critical","assessor":"cna"}],"cwes":["CWE-552"],"updated_at":"2026-11-02T14:34:18.951288Z"}],"euvd":[{"id":"EUVD-2024-3577","description":"Gogs through 0.13.0 allows deletion of internal files.","status":"published","published":"2024-07-04T00:00:00Z","modified":"2024-08-02T04:33:11Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","level":"critical"}],"updated_at":"2026-11-03T03:50:17.469599Z"}],"ghsa":[{"id":"GHSA-2vgj-3pvg-xh4w","title":"Duplicate Advisory: Gogs allows deletion of internal files","description":"# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-ccqv-43vm-4f3w. This link is maintained to preserve external references.\n\n# Original Description\nGogs through 0.13.0 allows deletion of internal files. ","status":"withdrawn","published":"2024-07-04T18:31:10Z","modified":"2024-12-23T20:37:05Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"critical"}],"cwes":["CWE-552"],"updated_at":"2026-11-02T14:38:26.167657Z"},{"id":"GHSA-ccqv-43vm-4f3w","title":"Gogs allows deletion of internal files","description":"### Impact\n\nUnprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by `RUN_USER` in the configuration. It allows attackers to access and alter any users' code hosted on the same instance.\n\n### Patches\n\nDeletion of `.git` files has been prohibited (https://github.com/gogs/gogs/pull/7870). Users should upgrade to 0.13.1 or the latest 0.14.0+dev.\n\n### Workarounds\n\nNo viable workaround available, please only grant access to trusted users to your Gogs instance on affected versions.\n\n### References\n\nhttps://www.cve.org/CVERecord?id=CVE-2024-39931\n","status":"published","published":"2024-12-23T20:38:20Z","modified":"2024-12-23T20:38:21Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","level":"critical"}],"cwes":["CWE-552"],"updated_at":"2026-11-02T14:38:26.167657Z"}],"nvd":[{"id":"CVE-2024-39931","description":"Gogs through 0.13.0 allows deletion of internal files.","status":"published","published":"2024-07-04T16:15:02.503Z","modified":"2026-06-17T07:43:03.267Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-552"],"updated_at":"2026-11-02T14:10:10.545705Z"}],"osv":[{"id":"CVE-2024-39931","description":"Gogs through 0.13.0 allows deletion of internal files.","status":"published","published":"2024-07-04T00:00:00Z","modified":"2026-10-28T02:30:42.800759759Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","level":"critical"}],"updated_at":"2026-11-02T15:44:41.618074Z"},{"id":"GHSA-2vgj-3pvg-xh4w","title":"Duplicate Advisory: Gogs allows deletion of internal files","description":"# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-ccqv-43vm-4f3w. This link is maintained to preserve external references.\n\n# Original Description\nGogs through 0.13.0 allows deletion of internal files. ","status":"withdrawn","published":"2024-07-04T18:31:10Z","modified":"2024-12-23T20:56:58.642991Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"critical"}],"cwes":["CWE-552"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"GHSA-ccqv-43vm-4f3w","title":"Gogs allows deletion of internal files","description":"### Impact\n\nUnprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by `RUN_USER` in the configuration. It allows attackers to access and alter any users' code hosted on the same instance.\n\n### Patches\n\nDeletion of `.git` files has been prohibited (https://github.com/gogs/gogs/pull/7870). Users should upgrade to 0.13.1 or the latest 0.14.0+dev.\n\n### Workarounds\n\nNo viable workaround available, please only grant access to trusted users to your Gogs instance on affected versions.\n\n### References\n\nhttps://www.cve.org/CVERecord?id=CVE-2024-39931\n","status":"published","published":"2024-12-23T20:38:20Z","modified":"2024-12-23T20:56:58.642991Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","level":"critical"}],"cwes":["CWE-552"],"updated_at":"2026-11-02T15:46:44.927642Z"},{"id":"GO-2024-2970","title":"Gogs allows deletion of internal files in github.com/gogs/gogs","description":"Gogs allows deletion of internal files in github.com/gogs/gogs","status":"published","published":"2024-07-09T19:34:07Z","modified":"2026-03-03T04:55:33.074307Z","updated_at":"2026-11-02T15:47:01.453823Z"}]}}
