# CVE-2025-54363: 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.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-08-20T00:00:00.000Z
- Modified: 2026-09-10T03:50:26.674Z
- Also known as: GHSA-6fxp-p9mg-q64w
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, 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. 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.

(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://github.com/microsoft/knack/issues/281> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54363> (advisory)
- <https://github.com/microsoft/knack/issues/281#issuecomment-3218922941> (web)

## Sources

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

---

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