Vulnerability · Published Aug 20, 2025 · Assigned by mitre

CVE-2025-54363

Medium 6.9

In plain English

A medium-severity regular-expression denial of service in Knack from Microsoft. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities).

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.4%top 64.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12knackno fix listedDEBIAN-CVE-2025-54363
Debian:13knackno fix listedDEBIAN-CVE-2025-54363
Debian:14knackno fix listedDEBIAN-CVE-2025-54363
PyPIknackno fix listedGHSA-6fxp-p9mg-q64w
Ubuntu:22.04:LTSknackno fix listedUBUNTU-CVE-2025-54363
Ubuntu:24.04:LTSknackno fix listedUBUNTU-CVE-2025-54363
Ubuntu:25.10knackno fix listedUBUNTU-CVE-2025-54363
Ubuntu:26.04:LTSknackno fix listedUBUNTU-CVE-2025-54363
Ubuntu:26.10knackno fix listedUBUNTU-CVE-2025-54363

Affected products (as reported)

VendorProductVersions
Microsoft Knack 0.12.0

Weakness: CWE-1333 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References