ALAS2-2025-2961


Amazon Linux 2 Security Advisory: ALAS2-2025-2961
Advisory Released Date: 2025-08-19
Advisory Updated Date: 2025-08-19
Severity: Important

Issue Overview:

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 (CVE-2025-8194)


Affected Packages:

python


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update python or yum update --advisory ALAS2-2025-2961 to update your system.

New Packages:
aarch64:
    python-2.7.18-1.amzn2.0.14.aarch64
    python-libs-2.7.18-1.amzn2.0.14.aarch64
    python-devel-2.7.18-1.amzn2.0.14.aarch64
    python-tools-2.7.18-1.amzn2.0.14.aarch64
    tkinter-2.7.18-1.amzn2.0.14.aarch64
    python-test-2.7.18-1.amzn2.0.14.aarch64
    python-debug-2.7.18-1.amzn2.0.14.aarch64
    python-debuginfo-2.7.18-1.amzn2.0.14.aarch64

i686:
    python-2.7.18-1.amzn2.0.14.i686
    python-libs-2.7.18-1.amzn2.0.14.i686
    python-devel-2.7.18-1.amzn2.0.14.i686
    python-tools-2.7.18-1.amzn2.0.14.i686
    tkinter-2.7.18-1.amzn2.0.14.i686
    python-test-2.7.18-1.amzn2.0.14.i686
    python-debug-2.7.18-1.amzn2.0.14.i686
    python-debuginfo-2.7.18-1.amzn2.0.14.i686

src:
    python-2.7.18-1.amzn2.0.14.src

x86_64:
    python-2.7.18-1.amzn2.0.14.x86_64
    python-libs-2.7.18-1.amzn2.0.14.x86_64
    python-devel-2.7.18-1.amzn2.0.14.x86_64
    python-tools-2.7.18-1.amzn2.0.14.x86_64
    tkinter-2.7.18-1.amzn2.0.14.x86_64
    python-test-2.7.18-1.amzn2.0.14.x86_64
    python-debug-2.7.18-1.amzn2.0.14.x86_64
    python-debuginfo-2.7.18-1.amzn2.0.14.x86_64