Skip to content
OpenAdvisories
High ALAS2023-2026-1930 4 CVEs

Important: python3.11 security update (Amazon Linux 2023)

Published Jul 6, 2026 · Updated Jul 7, 2026

Summary

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2026-8328: The ftpcp() function in Lib/ftplib.py was not updated when CVE-2021-4189 was fixed. While makepasv() was patched to replace server-supplied PASV host addresses with the actual peer address (getpeername()[0]), ftpcp() still calls parse227() directly and passes the raw attacker-controllable IP address and port to target.sendport(). This patch is related to CVE-2021-4189. CVE-2026-7210: `xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger hash flooding.\\r\\n\\r\\nFully mitigating this vulnerability requires both updating libexpat to 2.8.0 or later and applying this patch. CVE-2026-11940: tarfile.extractall() with the 'data' or 'tar' filter could be bypassed by a crafted archive where a hardlink references a symlink stored at a deeper name than the hardlink itself. The extraction fallback validated the symlink at it's archived location but recreated it at the hardlink's shallower path, letting a relative target the filter judged contained escape the destination directory. This allowed a malicious tar archive to create a symlink pointing outside the destination, enabling out-of-destination file reads or writes. This was an incomplete fix of CVE-2025-4330. CVE-2025-13462: The "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member such as GNUTYPE_LONGNAME or GNUTYPE_LONGLINK. This could result in a crafted tar archive being misinterpreted by the tarfile module compared to other implementations.

Fixed packages 9

ReleasePackageFixed in
Amazon Linux · 2023 python3.11 0:3.11.15-1.amzn2023.0.3
Amazon Linux · 2023 python3.11-debug 0:3.11.15-1.amzn2023.0.3
Amazon Linux · 2023 python3.11-debuginfo 0:3.11.15-1.amzn2023.0.3
Amazon Linux · 2023 python3.11-debugsource 0:3.11.15-1.amzn2023.0.3
Amazon Linux · 2023 python3.11-devel 0:3.11.15-1.amzn2023.0.3
Amazon Linux · 2023 python3.11-idle 0:3.11.15-1.amzn2023.0.3
Amazon Linux · 2023 python3.11-libs 0:3.11.15-1.amzn2023.0.3
Amazon Linux · 2023 python3.11-test 0:3.11.15-1.amzn2023.0.3
Amazon Linux · 2023 python3.11-tkinter 0:3.11.15-1.amzn2023.0.3

Vulnerabilities 4

  • High 7.8

    tarfile extraction filter bypass allows escaping the destination directory

    tarfile.extractall() with the 'data' or 'tar' filter could be bypassed by a crafted archive where a hardlink references a symlink stored at a deeper name than the hardlink itself.  The extraction fallback validated the symlink at it's archived location but re…

  • Medium 6.3

    The expat and elementtree parsers use insufficient entropy for XML hash-flooding protection

    `xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger hash flooding.\r\n\r\nFully mitigating this vulnerability requires both updating libexpat to 2.8.0 or l…

  • Medium 5.9

    FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address

    The ftpcp() function in Lib/ftplib.py was not updated when CVE-2021-4189 was fixed. While makepasv() was patched to replace server-supplied PASV host addresses with the actual peer address (getpeername()[0]), ftpcp() still calls parse227() directly and passes…

  • Low 2.0

    tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling

    The "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member such as GNUTYPE_LONGNAME or GNUTYPE_LONGLINK. This could result in a crafted tar archive being misinterpreted by the tarfile …

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-13462.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-11940.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-7210.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-8328.html