CVE-2025-54363
MEDIUMMicrosoft Knack 0.12.0 - Denial of Service via Inefficient Regular Expression in knack.introspection
Title source: llmDescription
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.
References (3)
Core 3
Core References
Third Party Advisory
https://www.vulncheck.com/advisories/microsoft-knack-python-package-regular-expression-dos
Issue Tracking
https://github.com/microsoft/knack/issues/281
Scores
CVSS v4
6.9
EPSS
0.0037
EPSS Percentile
28.8%
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
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-1333
Status
published
Products (2)
Microsoft/Knack
0.12.0
pypi/knack
0PyPI
Published
Aug 20, 2025
Tracked Since
Feb 18, 2026