USN-4581-1: Python vulnerability

Published Oct 14, 2020
ยท
Updated

It was discovered that Python incorrectly handled certain character sequences. A remote attacker could possibly use this issue to perform CRLF injection.

Affected Software

29 affected componentsFixes available
Python Software Foundation Python
All of the following
ubuntu/python2.7<2.7.17-1~18.04ubuntu1.2
2.7.17-1~18.04ubuntu1.2
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python2.7-minimal<2.7.17-1~18.04ubuntu1.2
2.7.17-1~18.04ubuntu1.2
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3.6<3.6.9-1~18.04ubuntu1.3
3.6.9-1~18.04ubuntu1.3
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3.6-minimal<3.6.9-1~18.04ubuntu1.3
3.6.9-1~18.04ubuntu1.3
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python2.7<2.7.12-1ubuntu0~16.04.13
2.7.12-1ubuntu0~16.04.13
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python2.7-minimal<2.7.12-1ubuntu0~16.04.13
2.7.12-1ubuntu0~16.04.13
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python3.5<3.5.2-2ubuntu0~16.04.12
3.5.2-2ubuntu0~16.04.12
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python3.5-minimal<3.5.2-2ubuntu0~16.04.12
3.5.2-2ubuntu0~16.04.12
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python2.7<2.7.6-8ubuntu0.6+esm7
2.7.6-8ubuntu0.6+esm7
Ubuntu Ubuntu=14.04
All of the following
ubuntu/python2.7-minimal<2.7.6-8ubuntu0.6+esm7
2.7.6-8ubuntu0.6+esm7
Ubuntu Ubuntu=14.04
All of the following
ubuntu/python3.4<3.4.3-1ubuntu1~14.04.7+esm8
3.4.3-1ubuntu1~14.04.7+esm8
Ubuntu Ubuntu=14.04
All of the following
ubuntu/python3.4-minimal<3.4.3-1ubuntu1~14.04.7+esm8
3.4.3-1ubuntu1~14.04.7+esm8
Ubuntu Ubuntu=14.04
All of the following
ubuntu/python2.7<2.7.3-0ubuntu3.19
2.7.3-0ubuntu3.19
Ubuntu Ubuntu=12.04
All of the following
ubuntu/python2.7-minimal<2.7.3-0ubuntu3.19
2.7.3-0ubuntu3.19
Ubuntu Ubuntu=12.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.17-1~18.04ubuntu1.2
  2. Upgrade

    Upgrade ubuntu/python2.7-minimal to a version that resolves this vulnerability.

    Fixed in 2.7.17-1~18.04ubuntu1.2
  3. Upgrade

    Upgrade ubuntu/python3.6 to a version that resolves this vulnerability.

    Fixed in 3.6.9-1~18.04ubuntu1.3
  4. Upgrade

    Upgrade ubuntu/python3.6-minimal to a version that resolves this vulnerability.

    Fixed in 3.6.9-1~18.04ubuntu1.3
  5. Upgrade

    Upgrade ubuntu/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.12-1ubuntu0~16.04.13
  6. Upgrade

    Upgrade ubuntu/python2.7-minimal to a version that resolves this vulnerability.

    Fixed in 2.7.12-1ubuntu0~16.04.13
  7. Upgrade

    Upgrade ubuntu/python3.5 to a version that resolves this vulnerability.

    Fixed in 3.5.2-2ubuntu0~16.04.12
  8. Upgrade

    Upgrade ubuntu/python3.5-minimal to a version that resolves this vulnerability.

    Fixed in 3.5.2-2ubuntu0~16.04.12
  9. Upgrade

    Upgrade ubuntu/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.6-8ubuntu0.6+esm7
  10. Upgrade

    Upgrade ubuntu/python2.7-minimal to a version that resolves this vulnerability.

    Fixed in 2.7.6-8ubuntu0.6+esm7
  11. Upgrade

    Upgrade ubuntu/python3.4 to a version that resolves this vulnerability.

    Fixed in 3.4.3-1ubuntu1~14.04.7+esm8
  12. Upgrade

    Upgrade ubuntu/python3.4-minimal to a version that resolves this vulnerability.

    Fixed in 3.4.3-1ubuntu1~14.04.7+esm8
  13. Upgrade

    Upgrade ubuntu/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.3-0ubuntu3.19
  14. Upgrade

    Upgrade ubuntu/python2.7-minimal to a version that resolves this vulnerability.

    Fixed in 2.7.3-0ubuntu3.19

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID of this Python vulnerability?

The vulnerability ID of this Python vulnerability is USN-4581-1.

2

What is the impact of this vulnerability?

This vulnerability allows a remote attacker to perform CRLF injection.

3

Which versions of Python are affected by this vulnerability?

The affected versions of Python are 2.7.17-1~18.04ubuntu1.2, 3.6.9-1~18.04ubuntu1.3, 2.7.12-1ubuntu0~16.04.13, 3.5.2-2ubuntu0~16.04.12, 2.7.6-8ubuntu0.6+esm7, 3.4.3-1ubuntu1~14.04.7+esm8, and 2.7.3-0ubuntu3.19.

4

How can I fix this Python vulnerability?

To fix this vulnerability, update Python to version 2.7.17-1~18.04ubuntu1.2, 3.6.9-1~18.04ubuntu1.3, 2.7.12-1ubuntu0~16.04.13, 3.5.2-2ubuntu0~16.04.12, 2.7.6-8ubuntu0.6+esm7, 3.4.3-1ubuntu1~14.04.7+esm8, or 2.7.3-0ubuntu3.19.

5

Where can I find more information about this vulnerability?

You can find more information about this vulnerability at the following references: [USN-4754-3](https://ubuntu.com/security/notices/USN-4754-3) and [CVE-2020-26116](https://ubuntu.com/security/CVE-2020-26116).

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.
ยฉ 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203