Skip to content
Heist/ feed
Back to feed
Critical

pymol — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-50636

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.

Products
pymol
Affected versions
1.7.2.1-2, 1.7.2.1-2.1, 1.7.2.1-2.1build1, 1.7.2.1-2.2, 1.8.4.0+dfsg-1build1, 2.2.0+dfsg-4, 2.2.0+dfsg-4build1, 2.3.0+dfsg-1, 2.3.0+dfsg-1build1, 2.4.0+dfsg-3, 2.4.0+dfsg-3build2, 2.5.0+dfsg-1, 2.5.0+dfsg-1build1, 2.5.0+dfsg-1build3, 2.5.0+dfsg-1build4, 2.5.0+dfsg-1build5, 2.5.0+dfsg-1build6, 3.1.0+dfsg-1, 3.1.0+dfsg-1build1, 3.1.0+dfsg-1build2, 3.1.0+dfsg-1build3, 3.1.0+dfsg-1build4
Fixed versions
Not specified
CVEs
CVE-2024-50636
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:10 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-50636

core-osv · Original source

Published 11 Nov 2024, 23:15 UTC

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.

osv:UBUNTU-CVE-2024-50636

pymol

Fixed versions: Not specified

pymol

Fixed versions: Not specified

pymol

Fixed versions: Not specified

pymol

Fixed versions: Not specified

pymol

Fixed versions: Not specified

pymol

Fixed versions: Not specified

pymol

Fixed versions: Not specified

pymol

Fixed versions: Not specified

Complete source record
{
  "id": "649ca9eb239f3a9c65a191ba632e6c1e416ccbf778a7bbdee658e748c6b56c01",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-50636",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-50636",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2024-50636",
    "products": [
      {
        "name": {
          "value": "pymol",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.2.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.2.1-2.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.2.1-2.1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.2.1-2.2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymol",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.4.0+dfsg-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymol",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.0+dfsg-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.2.0+dfsg-4build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.3.0+dfsg-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.3.0+dfsg-1build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymol",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.4.0+dfsg-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.4.0+dfsg-3build2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.5.0+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.5.0+dfsg-1build1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymol",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.0+dfsg-1build3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.5.0+dfsg-1build4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.5.0+dfsg-1build5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.5.0+dfsg-1build6",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymol",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.0+dfsg-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.1.0+dfsg-1build1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymol",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.0+dfsg-1build3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.1.0+dfsg-1build4",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymol",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.0+dfsg-1build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "3.1.0+dfsg-1build2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "3.1.0+dfsg-1build3",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2024-50636",
      "aliases": [
        "UBUNTU-CVE-2024-50636"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymol",
            "purl": "pkg:deb/ubuntu/pymol?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.7.2.1-2",
            "1.7.2.1-2.1",
            "1.7.2.1-2.1build1",
            "1.7.2.1-2.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-50636.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pymol",
                "binary_version": "1.7.2.1-2.2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymol",
            "purl": "pkg:deb/ubuntu/pymol?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.8.4.0+dfsg-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-50636.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pymol",
                "binary_version": "1.8.4.0+dfsg-1build1"
              },
              {
                "binary_name": "pymol-data",
                "binary_version": "1.8.4.0+dfsg-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymol",
            "purl": "pkg:deb/ubuntu/pymol?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.2.0+dfsg-4",
            "2.2.0+dfsg-4build1",
            "2.3.0+dfsg-1",
            "2.3.0+dfsg-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-50636.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pymol",
                "binary_version": "2.3.0+dfsg-1build1"
              },
              {
                "binary_name": "pymol-data",
                "binary_version": "2.3.0+dfsg-1build1"
              },
              {
                "binary_name": "python3-pymol",
                "binary_version": "2.3.0+dfsg-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymol",
            "purl": "pkg:deb/ubuntu/pymol?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.4.0+dfsg-3",
            "2.4.0+dfsg-3build2",
            "2.5.0+dfsg-1",
            "2.5.0+dfsg-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-50636.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pymol",
                "binary_version": "2.5.0+dfsg-1build1"
              },
              {
                "binary_name": "pymol-data",
                "binary_version": "2.5.0+dfsg-1build1"
              },
              {
                "binary_name": "python3-pymol",
                "binary_version": "2.5.0+dfsg-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymol",
            "purl": "pkg:deb/ubuntu/pymol?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.5.0+dfsg-1build3",
            "2.5.0+dfsg-1build4",
            "2.5.0+dfsg-1build5",
            "2.5.0+dfsg-1build6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-50636.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pymol",
                "binary_version": "2.5.0+dfsg-1build6"
              },
              {
                "binary_name": "pymol-data",
                "binary_version": "2.5.0+dfsg-1build6"
              },
              {
                "binary_name": "python3-pymol",
                "binary_version": "2.5.0+dfsg-1build6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymol",
            "purl": "pkg:deb/ubuntu/pymol?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.1.0+dfsg-1",
            "3.1.0+dfsg-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-50636.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pymol",
                "binary_version": "3.1.0+dfsg-1build1"
              },
              {
                "binary_name": "pymol-data",
                "binary_version": "3.1.0+dfsg-1build1"
              },
              {
                "binary_name": "python3-pymol",
                "binary_version": "3.1.0+dfsg-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymol",
            "purl": "pkg:deb/ubuntu/pymol?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.1.0+dfsg-1build3",
            "3.1.0+dfsg-1build4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-50636.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pymol",
                "binary_version": "3.1.0+dfsg-1build4"
              },
              {
                "binary_name": "pymol-data",
                "binary_version": "3.1.0+dfsg-1build4"
              },
              {
                "binary_name": "python3-pymol",
                "binary_version": "3.1.0+dfsg-1build4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymol",
            "purl": "pkg:deb/ubuntu/pymol?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.1.0+dfsg-1build1",
            "3.1.0+dfsg-1build2",
            "3.1.0+dfsg-1build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-50636.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pymol",
                "binary_version": "3.1.0+dfsg-1build3"
              },
              {
                "binary_name": "pymol-data",
                "binary_version": "3.1.0+dfsg-1build3"
              },
              {
                "binary_name": "python3-pymol",
                "binary_version": "3.1.0+dfsg-1build3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:39.469451597Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-50636"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-50636",
        "https://www.cve.org/CVERecord?id=CVE-2024-50636",
        "https://github.com/schrodinger/pymol-open-source/issues/405",
        "https://github.com/yamerooo123/CVE/blob/main/CVE-2024-50636/Description.md",
        "https://youtu.be/SWnN_a1tUNc"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-50636",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355916,
  "published_at": "2024-11-11T23:15:00+00:00"
}