CVEfocus › CVE database › CVE-2025-67125

CVE-2025-67125

CVSS 4.4 MediumEPSS 0.2% (higher than 9% of CVEs)Published 2026-01-23Updated 2026-01-23Assigner: mitre

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

CWE-190

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fix pending
3Under investigation
4Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10docopt.cppFix pendingUBUNTU-CVE-2025-67125
Ubuntu 26.04docopt.cppUnder investigationUBUNTU-CVE-2025-67125
Ubuntu 25.10docopt.cppWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-67125
Ubuntu 24.04docopt.cppUnder investigationUBUNTU-CVE-2025-67125
Ubuntu 22.04docopt.cppUnder investigationUBUNTU-CVE-2025-67125
Ubuntu 20.04docopt.cppFix pendingUBUNTU-CVE-2025-67125
Ubuntu 18.04docopt.cppFix pendingUBUNTU-CVE-2025-67125
Debian 14docopt.cppWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2025-67125
Debian 13docopt.cppWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2025-67125
Debian 12docopt.cppWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2025-67125

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.