---
title: "CVE-2019-20907\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2019-20907?format=md
keywords: index, follow
---

# CVE-2019-20907

Publication date 13 July 2020

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2019-20907?format=md#impact-score)

Toggle side navigation

## Description

In Lib/tarfile.py in Python through 3.8.3, an attacker is able to craft a
TAR archive leading to an infinite loop when opened by tarfile.open,
because \_proc\_pax lacks header validation.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python2.7 | 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 23.10 mantic | Not in release |
| 23.04 lunar | Not in release |
| 22.10 kinetic | Not affected |
| 22.04 LTS jammy | Not affected |
| 21.10 impish | Ignored end of life |
| 21.04 hirsute | Ignored end of life |
| 20.10 groovy | Ignored end of life |
| 20.04 LTS focal | Fixed 2.7.18-1~20.04.1 |
| 19.10 eoan | Ignored end of life |
| 18.04 LTS bionic | Fixed 2.7.17-1~18.04ubuntu1.1 |
| 16.04 LTS xenial | Fixed 2.7.12-1ubuntu0~16.04.12 |
| 14.04 LTS trusty | Fixed 2.7.6-8ubuntu0.6+esm6  Ubuntu Pro |
| python3.4 | 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 23.10 mantic | Not in release |
| 23.04 lunar | Not in release |
| 22.10 kinetic | Not in release |
| 22.04 LTS jammy | Not in release |
| 21.10 impish | Not in release |
| 21.04 hirsute | Not in release |
| 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 19.10 eoan | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Fixed 3.4.3-1ubuntu1~14.04.7+esm7  Ubuntu Pro |
| python3.5 | 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 23.10 mantic | Not in release |
| 23.04 lunar | Not in release |
| 22.10 kinetic | Not in release |
| 22.04 LTS jammy | Not in release |
| 21.10 impish | Not in release |
| 21.04 hirsute | Not in release |
| 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 19.10 eoan | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Fixed 3.5.2-2ubuntu0~16.04.11 |
| 14.04 LTS trusty | Fixed 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1  Ubuntu Pro |
| python3.6 | 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 23.10 mantic | Not in release |
| 23.04 lunar | Not in release |
| 22.10 kinetic | Not in release |
| 22.04 LTS jammy | Not in release |
| 21.10 impish | Not in release |
| 21.04 hirsute | Not in release |
| 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 19.10 eoan | Not in release |
| 18.04 LTS bionic | Fixed 3.6.9-1~18.04ubuntu1.1 |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.7 | 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 23.10 mantic | Not in release |
| 23.04 lunar | Not in release |
| 22.10 kinetic | Not in release |
| 22.04 LTS jammy | Not in release |
| 21.10 impish | Not in release |
| 21.04 hirsute | Not in release |
| 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 19.10 eoan | Ignored end of life |
| 18.04 LTS bionic | Fixed 3.7.5-2ubuntu1~18.04.2+esm3  Ubuntu Pro |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.8 | 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 23.10 mantic | Not in release |
| 23.04 lunar | Not in release |
| 22.10 kinetic | Not in release |
| 22.04 LTS jammy | Not in release |
| 21.10 impish | Not in release |
| 21.04 hirsute | Not in release |
| 20.10 groovy | Not affected |
| 20.04 LTS focal | Fixed 3.8.2-1ubuntu1.2 |
| 19.10 eoan | Ignored end of life |
| 18.04 LTS bionic | Fixed 3.8.0-3ubuntu1~18.04.2+esm2  Ubuntu Pro |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2019-20907?format=md#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| python3.6 | * Upstream:   [47a2955](https://github.com/python/cpython/commit/47a2955589bdb1a114d271496ff803ad73f954b8) |
| python3.7 | * Upstream:   [79c6b60](https://github.com/python/cpython/commit/79c6b602efc9a906c8496f3d5f4d54c54b48fa06) |
| python3.8 | * Upstream:   [c554795](https://github.com/python/cpython/commit/c55479556db015f48fc8bbca17f64d3e65598559) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-20907)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2019-20907)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2019-20907)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2019-20907)

### Related Ubuntu Security Notices (USN)

+ [USN-4428-1](https://usn.ubuntu.com/USN-4428-1)
+ Python vulnerabilities
+ 22 July 2020

+ [USN-4754-3](https://usn.ubuntu.com/USN-4754-3)
+ Python vulnerabilities
+ 12 March 2021

+ [USN-6891-1](https://usn.ubuntu.com/USN-6891-1)
+ Python vulnerabilities
+ 11 July 2024

### Other references

* <https://bugs.python.org/issue39017>
* <https://github.com/python/cpython/pull/21454>
* <https://www.cve.org/CVERecord?id=CVE-2019-20907>
