Medium severity4.4OSV Advisory· Published Jan 23, 2026· Updated Jun 17, 2026
CVE-2025-67125
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).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
3v0.6.2+ 2 more
- (no CPE)range: v0.6.2
- cpe:2.3:a:docopt:docopt.cpp:0.6.2:*:*:*:*:*:*:*
- (no CPE)range: =0.6.2
Patches
Vulnerability mechanics
References
1- gist.github.com/thesmartshadow/672afe8828844c833f46f8ebe2f5f3bdnvdExploitThird Party Advisory
News mentions
0No linked articles in our index yet.