Home

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.

PUBLISHED Reserved 2025-07-21 | Published 2025-08-20 | Updated 2025-08-21 | Assigner mitre




MEDIUM: 6.9CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Problem types

CWE-1333 Inefficient Regular Expression Complexity

Product status

Default status
unknown

0.12.0
affected

References

github.com/microsoft/knack

www.vulncheck.com/...k-python-package-regular-expression-dos

github.com/microsoft/knack/issues/281

cve.org (CVE-2025-54363)

nvd.nist.gov (CVE-2025-54363)

Download JSON