Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. knack
  4. ›
  5. CVE-2025-54364

CVE-2025-54364: Withdrawn Advisory: Microsoft Knack ReDoS Vulnerability in the Introspection Module

August 20, 2025 (updated August 29, 2025)

Withdrawn Advisory

This advisory has been withdrawn because the attack surface of this vulnerability is outside of Knack’s intended functionality. The maintainer states the following:

These CVEs are invalid. Knack is a CLI framework used by Azure CLI. It’s a local library, not a web service. In addition, the regex is used to extract function and parameter docstrings from the source code. It is not used to match user input. Therefore, it does not expose any attack surface. There is no way to use it for ReDoS attack.

This link is maintained to preserve external references.

Original Description

Microsoft Knack 0.12.0 allows Regular expression Denial of Service (ReDoS) in the knack.introspection module (issue 2 of 2).

References

  • github.com/advisories/GHSA-xh9h-692f-mmg4
  • github.com/microsoft/knack
  • github.com/microsoft/knack/issues/281
  • github.com/microsoft/knack/issues/281
  • nvd.nist.gov/vuln/detail/CVE-2025-54364
  • www.vulncheck.com/advisories/microsoft-knack-python-package-regular-expression-dos

Code Behaviors & Features

Detect and mitigate CVE-2025-54364 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.12.0

Solution

Unfortunately, there is no solution available yet.

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/knack/CVE-2025-54364.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 25 Sep 2025 12:19:56 +0000.