{"id":"CVE-2024-39932","aliases":["CVE-2024-39932","GHSA-9pp6-wq8c-3w2c","GHSA-hf29-9hfh-w63j","GO-2024-2971"],"related":[],"kind":"vulnerability","state":"published","title":"Gogs allows argument injection during the previewing of changes","summary":"Gogs through 0.13.0 allows argument injection during the previewing of changes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Gogs through 0.13.0 allows argument injection during the previewing of changes.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nUnprivileged user accounts can write to arbitrary files on the filesystem. We could demonstrate its exploitation to force a re-installation of the instance, granting administrator rights. It allows accessing and altering any user's code hosted on the same instance.\n\n### Patches\n\nUnintended Git options has been ignored for diff preview (https://github.com/gogs/gogs/pull/7871). 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-39932","format":"markdown","source":"ghsa"},{"lang":"en","text":"# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-9pp6-wq8c-3w2c. This link is maintained to preserve external references.\n\n# Original Description\nGogs through 0.13.0 allows argument injection during the previewing of changes.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gogs allows argument injection during the previewing of changes in github.com/gogs/gogs","format":"markdown","source":"go"},{"lang":"es","text":"Gogs hasta 0.13.0 permite la inyección de argumentos durante la vista previa de los cambios.","source":"nvd"}],"published":"2024-07-04T00:00:00.000Z","modified":"2026-06-17T07:43:03.393Z","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/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":"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-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"version":"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","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","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"}],"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":["exploit","mitigation","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-9pp6-wq8c-3w2c","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39932","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/advisories/GHSA-hf29-9hfh-w63j","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-07-05T13:59:14.874Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39932","url":"https://www.cve.org/CVERecord?id=CVE-2024-39932","licence":"CVE Terms of Use","modified":"2024-08-02T04:33:11.786Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9pp6-wq8c-3w2c","url":"https://github.com/advisories/GHSA-9pp6-wq8c-3w2c","licence":"CC-BY-4.0","modified":"2024-12-23T20:57:01.809Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hf29-9hfh-w63j","url":"https://github.com/advisories/GHSA-hf29-9hfh-w63j","licence":"CC-BY-4.0","modified":"2024-12-23T20:57:01.809Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2971","url":"https://pkg.go.dev/vuln/GO-2024-2971","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:32.474Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39932","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39932","licence":"Public domain","modified":"2026-06-17T07:43:03.393Z"}],"updatedAt":"2026-11-25T22:58:42.510Z","epss":{"score":0.16173,"percentile":0.97011,"date":"2026-12-01T12:00:22.000Z"}}