{"id":"CVE-2025-67125","details":"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).","modified":"2026-07-15T01:49:15.972088559Z","published":"2026-01-23T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/67xxx/CVE-2025-67125.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://gist.github.com/thesmartshadow/672afe8828844c833f46f8ebe2f5f3bd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/67xxx/CVE-2025-67125.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67125"},{"type":"PACKAGE","url":"https://github.com/docopt/docopt.cpp"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/docopt/docopt.cpp","events":[{"introduced":"18110222dc9cb57ec880ce24fbbd7291b2d1046e"},{"last_affected":"18110222dc9cb57ec880ce24fbbd7291b2d1046e"}],"database_specific":{"cpe":"cpe:2.3:a:docopt:docopt.cpp:0.6.2:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0.6.2"},{"last_affected":"0.6.2"}],"source":"CPE_STRING"}}],"versions":["0.6.2","v0.6.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-67125.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L"}]}