stephenrauch/pycel · Security
Pycel allows code injection via a crafted formula
- GHSA ID
- GHSA-pw67-xjhq-389w
- CVE ID
- CVE-2024-53924
- Severity
- high
- Published
- Updated
- CVSS v4
- 8.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Description
Pycel through 1.0b30, when operating on an untrusted spreadsheet, allows code execution via a crafted formula in a cell, such as one beginning with the =IF(A1=200, eval("__import__('os').system( substring.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-53924 ↗
- https://gist.github.com/aelmosalamy/cb098e61939718d2bb248fd1cc94f287 ↗
- https://github.com/dgorissen/pycel ↗
- https://github.com/stephenrauch/pycel ↗
- https://pypi.org/project/pycel ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/pycel/PYSEC-2025-177.yaml ↗
- https://github.com/advisories/GHSA-pw67-xjhq-389w ↗