CVE-2025-67125

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

Configuration 1 (hide)

cpe:2.3:a:docopt:docopt.cpp:0.6.2:*:*:*:*:*:*:*

History

17 Jun 2026, 09:57

Type Values Removed Values Added
Summary
  • (es) Un desbordamiento de entero con signo en docopt.cpp v0.6.2 (LeafPattern::match en docopt_private.h) al fusionar contadores de ocurrencias (p. ej., LONG_MAX predeterminado + primer usuario '-v/--verbose') puede causar un 'counter wrap' (semántica negativa/ilimitada) y conducir a una omisión de lógica/política en aplicaciones que dependen de límites basados en ocurrencias, control de velocidad ('rate-gating') o interruptores de seguridad. En compilaciones reforzadas (p. ej., UBSan o -ftrapv), el desbordamiento también puede resultar en la interrupción del proceso (DoS).

11 Feb 2026, 19:44

Type Values Removed Values Added
References () https://gist.github.com/thesmartshadow/672afe8828844c833f46f8ebe2f5f3bd - () https://gist.github.com/thesmartshadow/672afe8828844c833f46f8ebe2f5f3bd - Exploit, Third Party Advisory
References () https://github.com/docopt/docopt.cpp - () https://github.com/docopt/docopt.cpp - Product
CPE cpe:2.3:a:docopt:docopt.cpp:0.6.2:*:*:*:*:*:*:*
First Time Docopt docopt.cpp
Docopt

23 Jan 2026, 17:16

Type Values Removed Values Added
CWE CWE-190
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 4.4

23 Jan 2026, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2026-01-23 16:15

Updated : 2026-06-17 09:57


NVD link : CVE-2025-67125

Mitre link : CVE-2025-67125

CVE.ORG link : CVE-2025-67125


JSON object : View

Products Affected

docopt

  • docopt.cpp
CWE
CWE-190

Integer Overflow or Wraparound