{"id":"CVE-2025-67125","aliases":["DEBIAN-CVE-2025-67125","EUVD-2026-4308","GHSA-rjm3-mgvg-8w98","UBUNTU-CVE-2025-67125"],"status":"published","title":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when...","description":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when merging occurrence counters (e.g., default LONG_MAX + first user \"-v/--verbose\") can cause counter wrap (negative/unbounded semantics) and lead to logic/policy bypass in applications that rely on occurrence-based limits, rate-gating, or safety toggles. In hardened builds (e.g., UBSan or -ftrapv), the overflow may also result in process abort (DoS).","severity":{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-10","score":0.00239,"percentile":0.15041,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-190"],"published":"2026-01-23T00:00:00Z","modified":"2026-10-28T02:31:14Z","affected":[{"source":"osv","ecosystem":"Debian:12","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2-2.3","0.6.2-2.4","0.6.3-1","0.6.3-2","0.6.3-3","0.6.3-4","0.6.3-5"]},{"source":"osv","ecosystem":"Debian:13","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.3-5"]},{"source":"osv","ecosystem":"Debian:14","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.3-5"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2-2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2-2","0.6.2-2build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2-2.1","0.6.2-2.3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2-2.4","0.6.3-4","0.6.3-4build1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.3-5"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.3-5build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"docopt.cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.3-5","0.6.3-5build1"]}],"products":[{"vendor":"docopt","product":"docopt.cpp"}],"references":[{"url":"https://gist.github.com/thesmartshadow/672afe8828844c833f46f8ebe2f5f3bd","tags":["Exploit","Third Party Advisory","web","report"]},{"url":"https://github.com/docopt/docopt.cpp","tags":["Product","package","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67125","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-rjm3-mgvg-8w98"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/67xxx/CVE-2025-67125.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-67125","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-67125","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-67125","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-67125","description":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when merging occurrence counters (e.g., default LONG_MAX + first user \"-v/--verbose\") can cause counter wrap (negative/unbounded semantics) and lead to logic/policy bypass in applications that rely on occurrence-based limits, rate-gating, or safety toggles. In hardened builds (e.g., UBSan or -ftrapv), the overflow may also result in process abort (DoS).","status":"published","published":"2026-01-23T00:00:00Z","modified":"2026-01-23T16:14:32.425Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","level":"medium","assessor":"adp"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:32:51.880027Z"}],"euvd":[{"id":"EUVD-2026-4308","description":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when merging occurrence counters (e.g., default LONG_MAX + first user \"-v/--verbose\") can cause counter wrap (negative/unbounded semantics) and lead to logic/policy bypass in applications that rely on occurrence-based limits, rate-gating, or safety toggles. In hardened builds (e.g., UBSan or -ftrapv), the overflow may also result in process abort (DoS).","status":"published","published":"2026-01-23T00:00:00Z","modified":"2026-01-23T16:14:32Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T19:48:48.084617Z"}],"ghsa":[{"id":"GHSA-rjm3-mgvg-8w98","title":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when...","description":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when merging occurrence counters (e.g., default LONG_MAX + first user \"-v/--verbose\") can cause counter wrap (negative/unbounded semantics) and lead to logic/policy bypass in applications that rely on occurrence-based limits, rate-gating, or safety toggles. In hardened builds (e.g., UBSan or -ftrapv), the overflow may also result in process abort (DoS).","status":"published","published":"2026-01-23T18:31:28Z","modified":"2026-01-23T18:31:35Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T15:05:53.055975Z"}],"nvd":[{"id":"CVE-2025-67125","description":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when merging occurrence counters (e.g., default LONG_MAX + first user \"-v/--verbose\") can cause counter wrap (negative/unbounded semantics) and lead to logic/policy bypass in applications that rely on occurrence-based limits, rate-gating, or safety toggles. In hardened builds (e.g., UBSan or -ftrapv), the overflow may also result in process abort (DoS).","status":"published","published":"2026-01-23T16:15:52.347Z","modified":"2026-06-17T09:57:27.937Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","level":"medium","assessor":"secondary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:11:59.073638Z"}],"osv":[{"id":"CVE-2025-67125","description":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when merging occurrence counters (e.g., default LONG_MAX + first user \"-v/--verbose\") can cause counter wrap (negative/unbounded semantics) and lead to logic/policy bypass in applications that rely on occurrence-based limits, rate-gating, or safety toggles. In hardened builds (e.g., UBSan or -ftrapv), the overflow may also result in process abort (DoS).","status":"published","published":"2026-01-23T00:00:00Z","modified":"2026-10-28T02:31:14.435466523Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:44:52.202386Z"},{"id":"DEBIAN-CVE-2025-67125","description":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when merging occurrence counters (e.g., default LONG_MAX + first user \"-v/--verbose\") can cause counter wrap (negative/unbounded semantics) and lead to logic/policy bypass in applications that rely on occurrence-based limits, rate-gating, or safety toggles. In hardened builds (e.g., UBSan or -ftrapv), the overflow may also result in process abort (DoS).","status":"published","published":"2026-01-23T16:15:52.347Z","modified":"2026-09-01T20:05:56.879449542Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:45:47.697959Z"},{"id":"UBUNTU-CVE-2025-67125","description":"A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docopt_private.h) when merging occurrence counters (e.g., default LONG_MAX + first user \"-v/--verbose\") can cause counter wrap (negative/unbounded semantics) and lead to logic/policy bypass in applications that rely on occurrence-based limits, rate-gating, or safety toggles. In hardened builds (e.g., UBSan or -ftrapv), the overflow may also result in process abort (DoS).","status":"published","published":"2026-01-23T16:15:00Z","modified":"2026-10-17T12:57:38.129961653Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T16:55:52.345622Z"}]}}
