
CVE catalog
CVE-2025-67125
docopt.cpp: CVE-2025-67125
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.24% · Oct 25, 2026
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).
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | docopt.cpp | sid | 0.6.3-5 | vulnerable |
| Debian | docopt.cpp | forky | 0.6.3-5 | vulnerable |
| Debian | docopt.cpp | trixie | 0.6.3-5 | vulnerable |
| Debian | docopt.cpp | bookworm | 0.6.2-2.3 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | docopt.cpp | source | sid | (unfixed) | unimportant | Not reported | [1126774] |
| Debian | docopt.cpp | source | forky | (unfixed) | unimportant | Not reported | [1126774] |
| Debian | docopt.cpp | source | trixie | (unfixed) | unimportant | Not reported | [1126774] |
| Debian | docopt.cpp | source | bookworm | (unfixed) | unimportant | Not reported | [1126774] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libdocopt0]Affected
Source package: [docopt.cpp]
Details (2)
0.6.2-2.3· amd64 · bookwormAffected
dsa · docopt.cpp · debian · bookworm; dsa · docopt.cpp · debian · 12
0.6.2-2.3· arm64 · bookwormAffected
dsa · docopt.cpp · debian · bookworm; dsa · docopt.cpp · debian · 12
- [libdocopt-dev]Affected
Source package: [docopt.cpp]
Details (2)
0.6.2-2.3· amd64 · bookwormAffected
dsa · docopt.cpp · debian · bookworm; dsa · docopt.cpp · debian · 12
0.6.2-2.3· arm64 · bookwormAffected
dsa · docopt.cpp · debian · bookworm; dsa · docopt.cpp · debian · 12
[Debian 13 (Trixie)]
- [libdocopt0]Affected
Source package: [docopt.cpp]
Details (2)
0.6.3-5· amd64 · trixieAffected
dsa · docopt.cpp · debian · 13
0.6.3-5· arm64 · trixieAffected
dsa · docopt.cpp · debian · 13
- [libdocopt-dev]Affected
Source package: [docopt.cpp]
Details (2)
0.6.3-5· amd64 · trixieAffected
dsa · docopt.cpp · debian · 13
0.6.3-5· arm64 · trixieAffected
dsa · docopt.cpp · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-67125]
- [https://security-tracker.debian.org/tracker/CVE-2025-67125]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-67125.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]