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 VendorProductAffected 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.
Fix within
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
Exploitation
<1% chance of attack within 30 days
Type
CWE-1333Inefficient Regular Expression Complexity (ReDoS)
Timeline
Published20 Aug 2025
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta