CVE-2025-8194

Public on 2025-07-28
Modified on 2025-07-30
Description
There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enumeration APIs. The tar implementation would process tar archives with negative offsets without error, resulting in an infinite loop and deadlock during the parsing of maliciously crafted tar archives.

This vulnerability can be mitigated by including the following patch after importing the “tarfile” module:  https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1
Severity
Important severity
Important
See what this means
CVSS v3 Base Score
7.5
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core python 2025-08-19 ALAS2-2025-2961 Fixed
Amazon Linux 1 python27 No Fix Planned
Amazon Linux 2 - Core python3 2025-08-19 ALAS2-2025-2962 Fixed
Amazon Linux 2023 python3.11 2025-08-18 ALAS2023-2025-1136 Fixed
Amazon Linux 2023 python3.12 2025-08-18 ALAS2023-2025-1135 Fixed
Amazon Linux 2023 python3.13 2025-08-18 ALAS2023-2025-1147 Fixed
Amazon Linux 2023 python3.9 2025-08-18 ALAS2023-2025-1146 Fixed
Amazon Linux 1 python38 No Fix Planned

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD CVSSv3 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H