Advisory

UBUNTU-CVE-2024-9287

Also known as: CVE-2024-9287

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2024-10-22 17:15 UTC
Modified
2026-04-22 15:29 UTC

Affected packages and fixes

python3.8

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 3.8.10-0ubuntu1~20.04.16 (ecosystem)

Fixed versions

3.8.10-0ubuntu1~20.04.16

Fix

  • Fixed version 3.8.10-0ubuntu1~20.04.16
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.10

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 3.10.12-1~22.04.7 (ecosystem)

Fixed versions

3.10.12-1~22.04.7

Fix

  • Fixed version 3.10.12-1~22.04.7
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.12

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 3.12.3-1ubuntu0.3 (ecosystem)

Fixed versions

3.12.3-1ubuntu0.3

Fix

  • Fixed version 3.12.3-1ubuntu0.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences