CVE-2025-67125Docopt.cpp
Medium 4.4
Follow: this CVE · Docopt · Docopt.cpp We alert you by email or Slack (account required).
- Priority
- 26
- CVSS 3.1
- 4.4
- EPSS
- —
- Auth required
- Yes
- Published
- Jan 23, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-190
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
What happens
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).
What to do
- Apply the vendor's security update for Docopt.cpp.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| docopt | docopt.cpp | 0.6.2 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Exploit Third Party Advisory
- github.com Product