# CVE-2025-54364: Microsoft Knack 0.12.0 allows Regular expression Denial of Service (ReDoS) in the knack.introspection module.

- Severity: Medium 6.9 (CVSS:4.0, scored by mitre) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2025-08-20T00:00:00.000Z
- Modified: 2026-09-10T03:50:27.509Z
- Also known as: GHSA-xh9h-692f-mmg4
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Microsoft Knack: 0.12.0
- knack (PyPI): up to 0.12.0

## Every score

- mitre: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U`

## References

- <https://github.com/microsoft/knack> (package)
- <https://www.vulncheck.com/advisories/microsoft-knack-python-package-regular-expression-dos> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54364> (advisory)
- <https://github.com/microsoft/knack/issues/281> (web)
- <https://github.com/microsoft/knack/issues/281#issuecomment-3218922941> (web)

## Sources

- CVE List: [CVE-2025-54364](https://www.cve.org/CVERecord?id=CVE-2025-54364), CVE Terms of Use, modified 2025-08-26
- GitHub Advisory Database: [GHSA-xh9h-692f-mmg4](https://github.com/advisories/GHSA-xh9h-692f-mmg4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-54364](https://nvd.nist.gov/vuln/detail/CVE-2025-54364), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54364 · Whole record: https://cve.day/CVE-2025-54364.json · Rebuilt by cve.day 2026-11-25T22:59:03.351Z
