CVEvulnerability
CVE-2025-67125
4.4 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2026-01-23
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 4.4 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- Weaknesses
- 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 configurations
• docopt docopt.cpp 0.6.2
Related
Weakness · CWE (1)
- CWE-190 Integer Overflow or Wraparound weakness
References
- https://gist.github.com/thesmartshadow/672afe8828844c833f46f8ebe2f5f3bd Exploit, Third Party Advisory
- https://github.com/docopt/docopt.cpp Product