{"id":"CVE-2025-54364","details":"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.","modified":"2026-08-12T03:51:30.469491206Z","published":"2025-08-20T00:00:00Z","related":["CGA-x2rq-3g6w-2p3m"],"database_specific":{"cna_assigner":"mitre","cwe_ids":["CWE-1333"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54364.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54364.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54364"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/microsoft-knack-python-package-regular-expression-dos"},{"type":"PACKAGE","url":"https://github.com/microsoft/knack"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/microsoft/knack","events":[{"introduced":"0"},{"last_affected":"b1164b57d777711fd3954cf11f18ffb06ab1ca5b"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"0.12.0"}],"source":"AFFECTED_FIELD"}}],"versions":["0.12.0","v0.12.0","v0.11.0","v0.10.1","v0.10.0","v0.9.0","v0.8.3","v0.8.2","v0.8.1","v0.8.0","v0.8.0rc2","v0.8.0rc1","v0.7.2","v0.7.1","v0.7.0","v0.7.0rc4","v0.7.0rc3","v0.7.0rc2","v0.7.0rc1","v0.7.0rc","v0.6.3","v0.6.2","v0.6.1","v0.6.0","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.4.5","0.4.4","0.4.3","0.4.2","0.4.1","0.4.0","0.3.3","0.3.2","0.3.1","0.3.0","0.2.0","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54364.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}