Skip to content
Heist/ feed
Back to feed
High

CVE-2024-9287 affecting package python-py 1.11.0-1

Type: advisorySources: OSV

A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.

Products
python-py
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-9287
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:28 UTC · Revision 1

Source evidence

CVE-2024-9287 affecting package python-py 1.11.0-1

core-osv · Original source

Published 22 Oct 2024, 17:15 UTC

A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.

osv:AZL-109677

python-py

Fixed versions: Not specified

Complete source record
{
  "id": "3c3d7047a2d556214838043057a85736f5af310e621bb4f54dae52f5264eb885",
  "url": "https://osv.dev/vulnerability/AZL-109677",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2024-9287 affecting package python-py 1.11.0-1",
    "summary": "A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment \"activation\" scripts (ie \"source venv/bin/activate\"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie \"./venv/bin/python\") are not affected.",
    "evidence": "osv:AZL-109677",
    "products": [
      {
        "name": {
          "value": "python-py",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "AZL-109677",
      "aliases": [
        "AZL-109677"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "1.11.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-py",
            "purl": "pkg:rpm/azure-linux/python-py",
            "ecosystem": "Azure Linux:3"
          },
          "database_specific": {
            "source": "https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-109677.json"
          }
        }
      ],
      "modified": "2026-10-27T05:36:16Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-9287"
      ],
      "references": [
        "https://nvd.nist.gov/vuln/detail/CVE-2024-9287"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-9287",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 460520,
  "published_at": "2024-10-22T17:15:06+00:00"
}