cvedb.io
CVE-2025-67125
MEDIUM · CVSS 4.4
EPSS exploitation probability: 0%
Published 2026-01-23T16:15:52.347 · Last modified 2026-06-17T09:57:27.937

Summary

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 products

docopt — docopt.cpp

Does this affect you?

Add your gear to cvedb and we'll alert you only when docopt ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.