CVE-2025-67125
Last modified
CVE-2025-67125 is a medium-severity vulnerability rated 4.4/10 on the CVSS scale. 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).. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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).
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Docopt | Docopt.Cpp | 0.6.2 |
References
- https://gist.github.com/thesmartshadow/672afe8828844c833f46f8ebe2f5f3bdExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-67125?
How severe is CVE-2025-67125?
How do I fix CVE-2025-67125?
Are you affected by CVE-2025-67125?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
