CVE-2025-54364: Medium severity Microsoft Knack vulnerability
Withdrawn Advisory This advisory has been withdrawn because the attack surface of this vulnerability is outside of Knack's intended functionality. The maintainer states the following:
These CVEs are invalid. Knack is a CLI framework used by Azure CLI. It's a local library, not a web service. In addition, the regex is used to extract function and parameter docstrings from the source code. It is not used to match user input. Therefore, it does not expose any attack surface. There is no way to use it for ReDoS attack.
This link is maintained to preserve external references.
Original Description Microsoft Knack 0.12.0 allows Regular expression Denial of Service (ReDoS) in the knack.introspection module (issue 2 of 2).
Other sources
Microsoft Knack 0.12.0 allows Regular expression Denial of Service (ReDoS) in the knack.introspection module. optiondescriptions 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.
— NVD
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-54364?
CVE-2025-54364 is classified as a moderate severity vulnerability due to its potential for causing denial of service via regular expressions.
How do I fix CVE-2025-54364?
To fix CVE-2025-54364, update Microsoft Knack to the latest version that addresses the ReDoS issue in the knack.introspection module.
What type of vulnerability is CVE-2025-54364?
CVE-2025-54364 is a Regular Expression Denial of Service (ReDoS) vulnerability.
Which module is affected by CVE-2025-54364?
The vulnerability CVE-2025-54364 affects the knack.introspection module of Microsoft Knack.
What impact does CVE-2025-54364 have on users?
CVE-2025-54364 can lead to significant performance degradation or application crashes due to resource exhaustion.