Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-54363 EUVD-2025-25266GHSA-6fxp-p9mg-q64w

Microsoft Knack 0.12.0 allows Regular expression Denial of Service (ReDoS) in the knack.introspection module. extract_full_summary_from_sig…

Published Aug 20, 2025 · Updated Aug 21, 2025 · Assigned by mitre

Description

Microsoft Knack 0.12.0 allows Regular expression Denial of Service (ReDoS) in the knack.introspection module. extract_full_summary_from_signature employs an inefficient regular expression pattern: "\s(:param)\s+(.+?)\s:(.*)" that is susceptible to catastrophic backtracking when processing crafted docstrings containing a large volume of whitespace without a terminating colon. An attacker who can control or inject docstring content into affected applications can trigger excessive CPU consumption. This software is used by Azure CLI.

Affected products

VendorProductAffectedFixed
Microsoft Knack 0.12.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 knack No fix yet —
Debian 13 knack No fix yet —
Debian 12 knack No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 knack No fix yet —
Ubuntu 26.04 LTS knack No fix yet —
Ubuntu 25.10 knack No fix yet —
Ubuntu 24.04 LTS knack No fix yet —
Ubuntu 22.04 LTS knack No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS knack No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling az 2.79.0-r0 —
Wolfi rolling py3-knack +5 0.12.0-r3 —

References