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 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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: 2026-01-23T00:00:00.000Z

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

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

Link: CVE-2025-67125

cve-icon Vulnrichment

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

cve-icon NVD

Status : Received

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

Modified: 2026-01-23T17:16:06.863

Link: CVE-2025-67125

cve-icon Redhat

No data.