Flair allows arbitrary code execution
A vulnerability, which was classified as critical, was found in flairNLP flair 0.14.0. Affected is the function ClusteringModel of the file flair\models\clustering.py of the component Mode File Loader. The manipulation leads to code injection. It is possible to launch the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | flair | < 0.15.0 | 0.15.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-10073
- https://github.com/flairNLP/flair/commit/fb27c7eb1d92855c27db820a108b17883a5d6fc1
- https://github.com/bayuncao/vul-cve-20
- https://github.com/bayuncao/vul-cve-20/blob/main/PoC.py
- https://github.com/flairNLP/flair
- https://github.com/flairNLP/flair/releases/tag/v0.15.0
- https://vuldb.com/?ctiid.280722
- https://vuldb.com/?id.280722
- https://vuldb.com/?submit.420055
- https://pypi.org/project/flair
- https://github.com/advisories/GHSA-9rw2-jf8x-cgwm
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-94- Platform
- Python (PyPI)
- Package
flair- Disclosed
- 17.10.2024
- Updated
- 11.10.2026 13:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1376 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-9rw2-jf8x-cgwm - CC BY 4.0
Vulnerability history: flair
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.