Skip to content

CVE-2025-67125 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 (ne...

MediumCVSS 4.4 EPSS 0.24%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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

Upgrade path

8 packages: 0 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/docopt.cpp(Debian 12) = 0.6.2-2.3; = 0.6.2-2.4; = 0.6.3-1; = 0.6.3-2 +4 more No fix listed No fix yet
debian/docopt.cpp(Debian 13) = 0.6.3-5; All versions No fix listed No fix yet
debian/docopt.cpp(Debian 14) = 0.6.3-5; All versions No fix listed No fix yet
ubuntu/docopt.cpp(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/docopt.cpp(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/docopt.cpp(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/docopt.cpp(Ubuntu 26.10) All versions No fix listed No fix yet
docopt.cpp = 0.6.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/docopt.cpp(Debian:12) All versions No fix listed
debian/docopt.cpp(Debian:12) = 0.6.2-2.3 No fix listed
debian/docopt.cpp(Debian:12) = 0.6.2-2.4 No fix listed
debian/docopt.cpp(Debian:12) = 0.6.3-1 No fix listed
debian/docopt.cpp(Debian:12) = 0.6.3-2 No fix listed
debian/docopt.cpp(Debian:12) = 0.6.3-3 No fix listed
debian/docopt.cpp(Debian:12) = 0.6.3-4 No fix listed
debian/docopt.cpp(Debian:12) = 0.6.3-5 No fix listed
debian/docopt.cpp(Debian:13) All versions No fix listed
debian/docopt.cpp(Debian:13) = 0.6.3-5 No fix listed
debian/docopt.cpp(Debian:14) All versions No fix listed
debian/docopt.cpp(Debian:14) = 0.6.3-5 No fix listed
ubuntu/docopt.cpp(Ubuntu:22.04) All versions No fix listed
ubuntu/docopt.cpp(Ubuntu:24.04) All versions No fix listed
ubuntu/docopt.cpp(Ubuntu:26.04) All versions No fix listed
ubuntu/docopt.cpp(Ubuntu:26.10) All versions No fix listed
docopt.cpp = 0.6.2 No fix listed

References