{"id":"USN-7116-1","summary":"python3.10, python3.12, python3.8 vulnerability","details":"It was discovered that Python incorrectly handled quoting path names when\nusing the venv module. A local attacker able to control virtual\nenvironments could possibly use this issue to execute arbitrary code when\nthe virtual environment is activated.\n","modified":"2026-04-27T17:34:45.265348Z","published":"2024-11-19T13:22:42Z","related":["UBUNTU-CVE-2024-9287"],"upstream":["CVE-2024-9287","UBUNTU-CVE-2024-9287"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7116-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-9287"}],"affected":[{"package":{"name":"python3.8","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/python3.8@3.8.10-0ubuntu1~20.04.13?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10-0ubuntu1~20.04.13"}]}],"versions":["3.8.0-1","3.8.0-2","3.8.0-3","3.8.0-4","3.8.0-5","3.8.1-2ubuntu3","3.8.2~rc1-1ubuntu1","3.8.2-1","3.8.2-1ubuntu1","3.8.2-1ubuntu1.1","3.8.2-1ubuntu1.2","3.8.5-1~20.04","3.8.5-1~20.04.2","3.8.5-1~20.04.3","3.8.10-0ubuntu1~20.04","3.8.10-0ubuntu1~20.04.1","3.8.10-0ubuntu1~20.04.2","3.8.10-0ubuntu1~20.04.4","3.8.10-0ubuntu1~20.04.5","3.8.10-0ubuntu1~20.04.6","3.8.10-0ubuntu1~20.04.7","3.8.10-0ubuntu1~20.04.8","3.8.10-0ubuntu1~20.04.9","3.8.10-0ubuntu1~20.04.10","3.8.10-0ubuntu1~20.04.11","3.8.10-0ubuntu1~20.04.12"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"idle-python3.8"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"libpython3.8"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"libpython3.8-minimal"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"libpython3.8-stdlib"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"libpython3.8-testsuite"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"python3.8"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"python3.8-examples"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"python3.8-full"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"python3.8-minimal"},{"binary_version":"3.8.10-0ubuntu1~20.04.13","binary_name":"python3.8-venv"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7116-1.json","cves_map":{"cves":[],"ecosystem":"Ubuntu:20.04:LTS"}}},{"package":{"name":"python3.10","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python3.10@3.10.12-1~22.04.7?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.12-1~22.04.7"}]}],"versions":["3.10.0-2","3.10.0-3","3.10.0-4","3.10.0-5","3.10.0-5build1","3.10.1-1","3.10.1-2","3.10.2-1","3.10.2-5","3.10.2-7","3.10.3-1","3.10.4-3","3.10.4-3ubuntu0.1","3.10.6-1~22.04","3.10.6-1~22.04.1","3.10.6-1~22.04.2","3.10.6-1~22.04.2ubuntu1","3.10.6-1~22.04.2ubuntu1.1","3.10.12-1~22.04.2","3.10.12-1~22.04.3","3.10.12-1~22.04.4","3.10.12-1~22.04.5","3.10.12-1~22.04.6"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.10.12-1~22.04.7","binary_name":"idle-python3.10"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"libpython3.10"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"libpython3.10-minimal"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"libpython3.10-stdlib"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"libpython3.10-testsuite"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"python3.10"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"python3.10-examples"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"python3.10-full"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"python3.10-minimal"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"python3.10-nopie"},{"binary_version":"3.10.12-1~22.04.7","binary_name":"python3.10-venv"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7116-1.json","cves_map":{"cves":[{"severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/U:Green","type":"CVSS_V4"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2024-9287"}],"ecosystem":"Ubuntu:22.04:LTS"}}},{"package":{"name":"python3.12","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python3.12@3.12.3-1ubuntu0.3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.3-1ubuntu0.3"}]}],"versions":["3.12.0-1","3.12.0-5","3.12.0-6","3.12.0-7","3.12.1-2","3.12.2-1","3.12.2-4build3","3.12.2-4build4","3.12.2-5ubuntu3","3.12.3-1","3.12.3-1ubuntu0.1","3.12.3-1ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"idle-python3.12"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"libpython3.12-minimal"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"libpython3.12-stdlib"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"libpython3.12-testsuite"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"libpython3.12t64"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"python3.12"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"python3.12-examples"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"python3.12-full"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"python3.12-minimal"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"python3.12-nopie"},{"binary_version":"3.12.3-1ubuntu0.3","binary_name":"python3.12-venv"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7116-1.json","cves_map":{"cves":[{"severity":[{"score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/U:Green","type":"CVSS_V4"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2024-9287"}],"ecosystem":"Ubuntu:24.04:LTS"}}}],"schema_version":"1.7.5"}