CVE-2025-67125 Integer overflow in n/a

Medium 4.4 Published Updated

Signed integer overflow in docopt.cpp allows bypassing occurrence-based limits or causing denial of service via crafted verbose flags.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-67125?

CVE-2025-67125 is a medium-severity vulnerability in n/a, published on 23 Jan 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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

Weakness: CWE-190

Which versions are affected by CVE-2025-67125?

It affects 1 product.

Products include Docopt Docopt.cpp.

How do I fix CVE-2025-67125?

No fix has been published for CVE-2025-67125 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-67125 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-67125 exists.

Sources

Also known as DEBIAN-CVE-2025-67125, GHSA-rjm3-mgvg-8w98, UBUNTU-CVE-2025-67125.

Is CVE-2025-67125 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free