{"id":"UBUNTU-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-01-20T19:03:24.331855Z","published":"2025-08-20T03:15:00Z","upstream":["CVE-2025-54364"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-54364"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-54364"},{"type":"REPORT","url":"https://github.com/microsoft/knack"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/microsoft-knack-python-package-regular-expression-dos"}],"affected":[{"package":{"name":"knack","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/knack@0.6.3-2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2-1ubuntu1","0.6.3-1ubuntu1","0.6.3-2~build1","0.6.3-2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.6.3-2","binary_name":"python3-knack"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54364.json"}},{"package":{"name":"knack","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/knack@0.9.0-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.0~rc2-1","0.9.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.9.0-1","binary_name":"python3-knack"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54364.json"}},{"package":{"name":"knack","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/knack@0.11.0-1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.11.0-1","binary_name":"python3-knack"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54364.json"}},{"package":{"name":"knack","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/knack@0.12.0-2?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12.0-2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.12.0-2","binary_name":"python3-knack"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-54364.json"}}],"schema_version":"1.7.3","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"},{"type":"Ubuntu","score":"medium"}]}