Vulnerability · Published Nov 11, 2024 · Assigned by mitre
CVE-2024-50636
Critical 9.8
In plain English
A critical-severity code injection in the pymol package (Ubuntu). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities).
Official description
PyMOL 2.5.0 contains a vulnerability in its "Run Script" function, which allows the execution of arbitrary Python code embedded within .PYM files. Attackers can craft a malicious .PYM file containing a Python reverse shell payload and exploit the function to achieve Remote Command Execution (RCE). This vulnerability arises because PyMOL treats .PYM files as Python scripts without properly validating or restricting the commands within the script, enabling attackers to run unauthorized commands in the context of the user running the application.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | pymol | no fix listed | UBUNTU-CVE-2024-50636 |
| Ubuntu:24.04:LTS | pymol | no fix listed | UBUNTU-CVE-2024-50636 |
| Ubuntu:25.10 | pymol | no fix listed | UBUNTU-CVE-2024-50636 |
| Ubuntu:26.04:LTS | pymol | no fix listed | UBUNTU-CVE-2024-50636 |
| Ubuntu:26.10 | pymol | no fix listed | UBUNTU-CVE-2024-50636 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H