Vulnerability · Published Jan 23, 2026 · Assigned by mitre
CVE-2025-67125
Medium 4.4
In plain English
A medium-severity integer overflow in the docopt.cpp package (Debian). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities).
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | docopt.cpp | no fix listed | DEBIAN-CVE-2025-67125 |
| Debian:13 | docopt.cpp | no fix listed | DEBIAN-CVE-2025-67125 |
| Debian:14 | docopt.cpp | no fix listed | DEBIAN-CVE-2025-67125 |
| Ubuntu:22.04:LTS | docopt.cpp | no fix listed | UBUNTU-CVE-2025-67125 |
| Ubuntu:24.04:LTS | docopt.cpp | no fix listed | UBUNTU-CVE-2025-67125 |
| Ubuntu:25.10 | docopt.cpp | no fix listed | UBUNTU-CVE-2025-67125 |
| Ubuntu:26.04:LTS | docopt.cpp | no fix listed | UBUNTU-CVE-2025-67125 |
| Ubuntu:26.10 | docopt.cpp | no fix listed | UBUNTU-CVE-2025-67125 |
Affected products (as reported)
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L