docopt.cpp · Signed Integer Overflow
Affects docopt.cppSource GCVE Database
Not known to be exploited · CVSS 4.4 Medium.
Data as of 24 Nov 2026, 20:10 UTC
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 23 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10docopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSdocopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10docopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSdocopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSdocopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSdocopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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).