{"id":"CVE-2024-39931","aliases":["CVE-2024-39931","GHSA-2vgj-3pvg-xh4w","GHSA-ccqv-43vm-4f3w","GO-2024-2970"],"related":[],"kind":"vulnerability","state":"published","title":"Gogs allows deletion of internal files","summary":"Gogs through 0.13.0 allows deletion of internal files.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Gogs through 0.13.0 allows deletion of internal files.","source":"cvelist"},{"lang":"en","text":"# 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gogs allows deletion of internal files in github.com/gogs/gogs","format":"markdown","source":"go"},{"lang":"es","text":"Gogs hasta 0.13.0 permite la eliminación de archivos internos.","source":"nvd"}],"published":"2024-07-04T00:00:00.000Z","modified":"2026-06-17T07:43:03.267Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","score":9.9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-552"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"0.13.0","status":"affected"}],"vendor":"gogs","product":"gogs","cpe":"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.13.0"}],"ecosystem":"Go","package":"github.com/gogs/gogs","purl":"pkg:golang/github.com/gogs/gogs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.13.1"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/gogs/gogs","purl":"pkg:golang/github.com/gogs/gogs","source":"go"},{"ranges":[{"status":"affected","lastAffected":"0.13.0"}],"vendor":"gogs","product":"gogs","cpe":"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gogs/gogs/releases","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39931","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs","tags":["package"],"sources":["ghsa"]},{"url":"https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-ccqv-43vm-4f3w","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-2vgj-3pvg-xh4w","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-08T16:36:45.493Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39931","url":"https://www.cve.org/CVERecord?id=CVE-2024-39931","licence":"CVE Terms of Use","modified":"2024-08-02T04:33:11.178Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2vgj-3pvg-xh4w","url":"https://github.com/advisories/GHSA-2vgj-3pvg-xh4w","licence":"CC-BY-4.0","modified":"2024-12-23T20:56:58.642Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ccqv-43vm-4f3w","url":"https://github.com/advisories/GHSA-ccqv-43vm-4f3w","licence":"CC-BY-4.0","modified":"2024-12-23T20:56:58.642Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2970","url":"https://pkg.go.dev/vuln/GO-2024-2970","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:33.074Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39931","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39931","licence":"Public domain","modified":"2026-06-17T07:43:03.267Z"}],"updatedAt":"2026-11-25T22:58:42.509Z","epss":{"score":0.52658,"percentile":0.98987,"date":"2026-12-01T12:00:22.000Z"}}