Skip to main content
CVE-2025-67125VulnerabilityPublished Updated

docopt.cpp · Signed Integer Overflow

Affects docopt.cppSource GCVE Database

0
Compare
Authoritative record:CVE-2025-67125· Medium 4.4

Not known to be exploited · CVSS 4.4 Medium.

Data as of 24 Nov 2026, 20:10 UTC

CVSS 3.1 base score
4.4Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10docopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=stonkingOther threatsAffected
  • =0.6.3-5build1
Fixed in–
Ubuntu 26.04 LTSdocopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=resoluteOther threatsAffected
  • =0.6.3-5
  • =0.6.3-5build1
Fixed in–
Ubuntu 25.10docopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=questingOther threatsAffected
  • =0.6.3-5
Fixed in–
Ubuntu 24.04 LTSdocopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=nobleOther threatsAffected
  • =0.6.2-2.4
  • =0.6.3-4
  • =0.6.3-4build1
Fixed in–
Ubuntu 22.04 LTSdocopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=jammyOther threatsAffected
  • =0.6.2-2.1
  • =0.6.2-2.3
Fixed in–
Ubuntu 20.04 LTSdocopt.cpppkg:deb/ubuntu/docopt.cpp?arch=source&distro=focalOther threatsAffected
  • =0.6.2-2
  • =0.6.2-2build1
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).

References

Community reviews

Loading reviews…