Arbitrary Code Injection Affecting pycel package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.11% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PYCEL-10050519
  • published8 May 2025
  • disclosed22 Nov 2024
  • creditAdham Elmosalamy

Introduced: 22 Nov 2024

CVE-2024-53924  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for pycel.

Overview

pycel is an A library for compiling excel spreadsheets to python code & visualizing them as a graph

Affected versions of this package are vulnerable to Arbitrary Code Injection through the code generation from a crafted formula in an Excel spreadsheet cell. An attacker can execute arbitrary code by inserting a malicious formula that triggers the execution of external commands.

PoC

Example of malicious formula:

=IF(A1=200, eval("__import__('os').system('calc.exe')"), @LINEST(C1:C18,B1:B18))

CVSS Base Scores

version 4.0
version 3.1