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).

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.2%top 85.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12docopt.cppno fix listedDEBIAN-CVE-2025-67125
Debian:13docopt.cppno fix listedDEBIAN-CVE-2025-67125
Debian:14docopt.cppno fix listedDEBIAN-CVE-2025-67125
Ubuntu:22.04:LTSdocopt.cppno fix listedUBUNTU-CVE-2025-67125
Ubuntu:24.04:LTSdocopt.cppno fix listedUBUNTU-CVE-2025-67125
Ubuntu:25.10docopt.cppno fix listedUBUNTU-CVE-2025-67125
Ubuntu:26.04:LTSdocopt.cppno fix listedUBUNTU-CVE-2025-67125
Ubuntu:26.10docopt.cppno fix listedUBUNTU-CVE-2025-67125

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

References