CVE-2024-53924 Pycel allows code injection via a crafted formula

Critical 9.8 Published Updated

Attackers can execute arbitrary code by crafting malicious formulas in spreadsheets processed by the Pycel library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-53924?

CVE-2024-53924 is a critical code injection vulnerability in n/a, published on 17 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2024-53924?

3 open source packages ship an affected version, including pycel. It affects 1 product.

PackageAffectedFixed in
pycel PyPIAll versions to 1.0-beta0None
pycel PyPIAll versions to 1.0b30None
pycel PyPIAll versions to 1.0b30None

Products include Dgorissen Pycel.

How do I fix CVE-2024-53924?

No fix has been published for CVE-2024-53924 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-53924 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53924 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-pw67-xjhq-389w, PYSEC-2025-177.

Is CVE-2024-53924 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free