CVE-2025-67125

Source
https://cve.org/CVERecord?id=CVE-2025-67125
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-67125.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-67125
Downstream
Published
2026-01-23T16:15:52.347Z
Modified
2026-03-13T03:41:59.669421Z
Severity
  • 4.4 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L CVSS Calculator
Summary
[none]
Details

A signed integer overflow in docopt.cpp v0.6.2 (LeafPattern::match in docoptprivate.h) when merging occurrence counters (e.g., default LONGMAX + 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

Affected packages

Git / github.com/docopt/docopt.cpp

Affected ranges

Type
GIT
Repo
https://github.com/docopt/docopt.cpp
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.6.2"
        }
    ]
}

Affected versions

v0.*
v0.6.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-67125.json"