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

INFO

Published Date :

2026-01-23T00:00:00.000Z

Last Modified :

2026-01-23T16:14:32.425Z

Source :

mitre
AFFECTED PRODUCTS

The following products are affected by CVE-2025-67125 vulnerability.

Vendors Products
Docopt
  • Docopt.cpp
REFERENCES

Here, you will find a curated list of external links that provide in-depth information to CVE-2025-67125.

CVSS Vulnerability Scoring System

Detailed values of each vector for above chart.
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact