cleo is vulnerable to Regular Expression Denial of Service (ReDoS)GHSA-2p9h-ccw7-33gf
MEDIUMFix: python-poetry/cleo#285GHSA-2p9h-ccw7-33gf is a medium-severity (CVSS 5.9) CWE-1333 vulnerability in cleo. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for cleo — see the affected versions and patch details below.
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
Exploitation and automatability from CISA’s SSVC triage for GHSA-2p9h-ccw7-33gf.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
cleoReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the cleo PyPI package, when an attacker is able to supply arbitrary input to the Table.set_rows method.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | cleo | ≥ 1.0.0a1&&< 2.0.0 | 2.0.0pip install --upgrade 'cleo==2.0.0' |
Affected Products
cleopython-poetryResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for cleo, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update cleo to 2.0.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-2p9h-ccw7-33gf is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is GHSA-2p9h-ccw7-33gf in your dependencies?
Find it across PyPI, including transitive dependencies.