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

Fri, 23 Jan 2026 15:45:00 +0000

Type Values Removed Values Added
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).
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-01-23T16:14:32.425Z

Reserved: 2025-12-08T00:00:00.000Z

Link: CVE-2025-67125

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-01-23T16:15:52.347

Modified: 2026-01-23T16:15:52.347

Link: CVE-2025-67125

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.