CVE-2025-67125 Affecting docopt.cpp package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.24% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-DOCOPTCPP-15067998
  • published24 Jan 2026
  • disclosed23 Jan 2026

Introduced: 23 Jan 2026

CVE-2025-67125  (opens in a new tab)

How to fix?

There is no fixed version for Debian:unstable docopt.cpp.

NVD Description

Note: Versions mentioned in the description apply only to the upstream docopt.cpp package and not the docopt.cpp package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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