{"id":"CVE-2024-39933","aliases":["CVE-2024-39933","GHSA-8mm6-wmpp-mmm3","GHSA-m27m-h5gj-wwmg","GO-2024-2972"],"related":[],"kind":"vulnerability","state":"published","title":"Gogs allows argument Injection when tagging new releases","summary":"Gogs through 0.13.0 allows argument injection during the tagging of a new release.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Gogs through 0.13.0 allows argument injection during the tagging of a new release.","source":"cvelist"},{"lang":"en","text":"# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-m27m-h5gj-wwmg. This link is maintained to preserve external references.\n\n# Original Description\nGogs through 0.13.0 allows argument injection during the tagging of a new release. This vulnerability is still unfixed as of the time of this advisory being published.","format":"markdown","source":"ghsa"},{"lang":"en","text":"### Impact\n\nUnprivileged user accounts with at least one SSH key can read arbitrary files on the system. For instance, they could leak the configuration files that could contain database credentials (`[database] *`) and `[security] SECRET_KEY`. Attackers could also exfiltrate TLS certificates, other users' repositories, and the Gogs database when the SQLite driver is enabled.\n\n### Patches\n\nUnintended Git options has been ignored for creating tags (https://github.com/gogs/gogs/pull/7872). 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-39933","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gogs allows argument injection during the tagging of a new release in github.com/gogs/gogs","format":"markdown","source":"go"},{"lang":"es","text":"Gogs hasta 0.13.0 permite la inyección de argumentos durante el etiquetado de una nueva versión.","source":"nvd"}],"published":"2024-07-04T00:00:00.000Z","modified":"2026-06-17T07:43:03.510Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:L/S:C/UI:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:L/S:C/UI:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:L/S:C/UI:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":7.7,"rating":"HIGH"}],"cwes":["CWE-88"],"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":["exploit","mitigation","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39933","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-8mm6-wmpp-mmm3","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-m27m-h5gj-wwmg","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/gogs/gogs/pull/7872","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/gogs/gogs/commit/76831d0d06c44c5cf46dc22b380440b7507c2f07","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-11T20:46:31.663Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39933","url":"https://www.cve.org/CVERecord?id=CVE-2024-39933","licence":"CVE Terms of Use","modified":"2024-08-02T04:33:11.513Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8mm6-wmpp-mmm3","url":"https://github.com/advisories/GHSA-8mm6-wmpp-mmm3","licence":"CC-BY-4.0","modified":"2024-12-23T20:56:52.552Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m27m-h5gj-wwmg","url":"https://github.com/advisories/GHSA-m27m-h5gj-wwmg","licence":"CC-BY-4.0","modified":"2024-12-23T20:56:52.552Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2972","url":"https://pkg.go.dev/vuln/GO-2024-2972","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:33.641Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39933","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39933","licence":"Public domain","modified":"2026-06-17T07:43:03.510Z"}],"updatedAt":"2026-11-25T22:58:42.510Z","epss":{"score":0.00689,"percentile":0.54037,"date":"2026-12-01T12:00:22.000Z"}}