Advisory Published

USN-7116-1: Python vulnerability

First published: Tue Nov 19 2024(Updated: )

It was discovered that Python incorrectly handled quoting path names when using the venv module. A local attacker able to control virtual environments could possibly use this issue to execute arbitrary code when the virtual environment is activated.

Affected SoftwareAffected VersionHow to fix
All of
ubuntu/python3.12<3.12.7-1ubuntu1
3.12.7-1ubuntu1
Xfce Application Finder=24.10
All of
ubuntu/python3.12-minimal<3.12.7-1ubuntu1
3.12.7-1ubuntu1
Xfce Application Finder=24.10
All of
ubuntu/python3.12<3.12.3-1ubuntu0.3
3.12.3-1ubuntu0.3
Xfce Application Finder=24.04
All of
ubuntu/python3.12-minimal<3.12.3-1ubuntu0.3
3.12.3-1ubuntu0.3
Xfce Application Finder=24.04
All of
ubuntu/python3.10<3.10.12-1~22.04.7
3.10.12-1~22.04.7
Xfce Application Finder=22.04
All of
ubuntu/python3.10-minimal<3.10.12-1~22.04.7
3.10.12-1~22.04.7
Xfce Application Finder=22.04
All of
ubuntu/python3.8<3.8.10-0ubuntu1~20.04.13
3.8.10-0ubuntu1~20.04.13
Xfce Application Finder=20.04
All of
ubuntu/python3.8-minimal<3.8.10-0ubuntu1~20.04.13
3.8.10-0ubuntu1~20.04.13
Xfce Application Finder=20.04

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Child vulnerabilities

(Contains the following vulnerabilities)

Frequently Asked Questions

  • What is the severity of USN-7116-1?

    USN-7116-1 is classified as a high severity vulnerability due to the potential for arbitrary code execution.

  • How do I fix USN-7116-1?

    To fix USN-7116-1, update your Python packages to the latest versions specified in the advisory.

  • Which versions of Python are affected by USN-7116-1?

    USN-7116-1 affects multiple versions of Python 3.12, 3.10, and 3.8 across various Ubuntu releases.

  • What types of attacks can exploit the USN-7116-1 vulnerability?

    The vulnerability can be exploited by local attackers who control virtual environments to execute arbitrary code.

  • Is the USN-7116-1 vulnerability specific to certain Ubuntu versions?

    Yes, the USN-7116-1 vulnerability is specific to Ubuntu 20.04, 22.04, and 24.10 with vulnerable Python packages.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203