Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.3
CVE-2025-54364: Azure CLI: Inefficient Regex Can Crash the Program
CVE-2025-54364 · published 1 year ago
Summary
A bug in the Azure CLI's documentation parsing can cause the program to use too much CPU when it encounters a large amount of whitespace in a help message. An attacker could potentially exploit this to make the program slow or crash. Users of the Azure CLI should update to the latest version to prevent this issue.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| pip | microsoft corporation | knack | <= 0.12.0 |
| Ubuntu:20.04:LTS | canonical | knack | All versions |
Original advisory text
Microsoft Knack 0.12.0 allows Regular expression Denial of Service (ReDoS) in the knack.introspection module. option_descriptions employs an inefficient regular expression pattern: "\s(:param)\s+(....
Microsoft Knack 0.12.0 allows Regular expression Denial of Service (ReDoS) in the knack.introspection module. option_descriptions 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.
References
- https://github.com/microsoft/knack/issues/281
- https://github.com/microsoft/knack Third Party Advisory
- https://www.vulncheck.com/advisories/microsoft-knack-python-package-regular-expr... Third Party Advisory
- https://github.com/microsoft/knack/issues/281#issuecomment-3218922941
- https://github.com/advisories/GHSA-xh9h-692f-mmg4
- https://ubuntu.com/security/CVE-2025-54364 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2025-54364 Third Party Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54364... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-54364 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
7.3
High
Type
CWE-1333Inefficient Regular Expression Complexity (ReDoS)
Timeline
Published20 Aug 2025
Updated4 Nov 2026
First seen6 Mar 2026
Sources
GHSA-xh9h-692f-mmg4 · GHSA
CVE-2025-54364 · NVD
CVE-2025-54364 · OSV
UBUNTU-CVE-2025-54364 · OSV
Track software like this
Free during beta