What’s Vulnerable › Vulnerabilities
CVE-2025-67125
- Severity: medium (CVSS 4.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-01-23 · updated 2026-06-17
- Weakness: CWE-190
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).
Affected products
- Docopt.Cpp: 0.6.2
References
- https://gist.github.com/thesmartshadow/672afe8828844c833f46f8ebe2f5f3bd
- https://github.com/docopt/docopt.cpp
Get alerted when CVE-2025-67125 or the next vulnerability affects your stack