Skip to content
OpenAdvisories
Critical SUSE-SU-2025:02074-1 9 CVEs

Security update for python313

Published Jun 24, 2025 · Updated Feb 4, 2026

Summary

This update for python313 fixes the following issues:

Update to version 3.13.5.

Security issues fixed:

- CVE-2025-4517: arbitrary filesystem writes outside the extraction directory during extraction with filter='data' (bsc#1244032)
- CVE-2025-4516: use-after-free in the unicode-escape decoder when using the error handler (bsc#1243273).
- CVE-2025-4330: extraction filter bypass for linking outside extraction directory (bsc#1244060)
- CVE-2025-4138: may allow symlink targets to point outside the destination directory, and the modification of some file metadata.
(bsc#1244059)
- CVE-2025-0938: domain names containing square brackets are not identified as incorrect by urlparse (bsc#1236705).
- CVE-2024-12718: bypass extraction filter to modify file metadata outside extraction directory (bsc#1244056)
- CVE-2024-12254: memory exhaustion due to unbounded memory buffering in `SelectorSocketTransport.writelines()`
(bsc#1234290).

Other changes and issues fixed:

Changes from 3.13.5:

- Tests

- gh-135120: Add test.support.subTests().

- Library

- gh-133967: Do not normalize locale name ‘C.UTF-8’ to
‘en_US.UTF-8’.
- gh-135326: Restore support of integer-like objects with
__index__() in random.getrandbits().
- gh-135321: Raise a correct exception for values greater
than 0x7fffffff for the BINSTRING opcode in the C
implementation of pickle.
- gh-135276: Backported bugfixes in zipfile.Path from
zipp 3.23. Fixed .name, .stem and other basename-based
properties on Windows when working with a zipfile on disk.
- gh-134151: email: Fix TypeError in
email.utils.decode_params() when sorting RFC 2231
continuations that contain an unnumbered section.
- gh-134152: email: Fix parsing of email message ID with
invalid domain.
- gh-127081: Fix libc thread safety issues with os by
replacing getlogin with getlogin_r re-entrant version.
- gh-131884: Fix formatting issues in json.dump() when both
indent and skipkeys are used.
- Core and Builtins
- gh-135171: Roll back changes to generator and list
comprehensions that went into 3.13.4 to fix gh-127682,
but which involved semantic and bytecode changes not
appropriate for a bugfix release.
- C API
- gh-134989: Fix Py_RETURN_NONE, Py_RETURN_TRUE and
Py_RETURN_FALSE macros in the limited C API 3.11 and
older: don’t treat Py_None, Py_True and Py_False as
immortal. Patch by Victor Stinner.
- gh-134989: Implement PyObject_DelAttr() and
PyObject_DelAttrString() as macros in the limited C API
3.12 and older. Patch by Victor Stinner.

Changes from 3.13.4:

- Security

- gh-135034: Fixes multiple issues that allowed tarfile
extraction filters (filter='data' and filter='tar') to be
bypassed using crafted symlinks and hard links.
Addresses CVE-2024-12718 (bsc#1244056), CVE-2025-4138
(bsc#1244059), CVE-2025-4330 (bsc#1244060), and
CVE-2025-4517 (bsc#1244032).
- gh-133767: Fix use-after-free in the “unicode-escape”
decoder with a non-“strict” error handler (CVE-2025-4516,
bsc#1243273).
- gh-128840: Short-circuit the processing of long IPv6
addresses early in ipaddress to prevent excessive memory
consumption and a minor denial-of-service.
- Library
- gh-134718: ast.dump() now only omits None and [] values if
they are default values.
- gh-128840: Fix parsing long IPv6 addresses with embedded
IPv4 address.
- gh-134696: Built-in HACL* and OpenSSL implementations of
hash function constructors now correctly accept the same
documented named arguments. For instance, md5() could be
previously invoked as md5(data=data) or md5(string=string)
depending on the underlying implementation but these calls
were not compatible. Patch by Bénédikt Tran.
- gh-134210: curses.window.getch() now correctly handles
signals. Patch by Bénédikt Tran.
- gh-80334: multiprocessing.freeze_support() now checks for
work on any “spawn” start method platform rather than only
on Windows.
- gh-114177: Fix asyncio to not close subprocess pipes which
would otherwise error out when the event loop is already
closed.
- gh-134152: Fixed UnboundLocalError that could occur during
email header parsing if an expected trailing delimiter is
missing in some contexts.
- gh-62184: Remove import of C implementation of io.FileIO
from Python implementation which has its own implementation
- gh-133982: Emit RuntimeWarning in the Python implementation
of io when the file-like object is not closed explicitly in
the presence of multiple I/O layers.
- gh-133890: The tarfile module now handles
UnicodeEncodeError in the same way as OSError when cannot
extract a member.
- gh-134097: Fix interaction of the new REPL and -X
showrefcount command line option.
- gh-133889: The generated directory listing page in
http.server.SimpleHTTPRequestHandler now only shows the
decoded path component of the requested URL, and not the
query and fragment.
- gh-134098: Fix handling paths that end with
a percent-encoded slash (%2f or %2F) in
http.server.SimpleHTTPRequestHandler.
- gh-134062: ipaddress: fix collisions in __hash__() for
IPv4Network and IPv6Network objects.
- gh-133745: In 3.13.3 we accidentally changed the signature
of the asyncio create_task() family of methods and how it
calls a custom task factory in a backwards incompatible
way. Since some 3rd party libraries have already made
changes to work around the issue that might break if
we simply reverted the changes, we’re instead changing
things to be backwards compatible with 3.13.2 while still
supporting those workarounds for 3.13.3. In particular, the
special-casing of name and context is ba

Fixed packages 2

ReleasePackageFixed in
SUSE · SLES 3 Linux Enterprise Module for Python 3 15 SP7 python313 3.13.5-150700.4.11.1
SUSE · SLES 3 Linux Enterprise Module for Python 3 15 SP7 python313-core 3.13.5-150700.4.11.1

Vulnerabilities 9

References

  • report
    https://bugzilla.suse.com/1228165
  • report
    https://bugzilla.suse.com/1232241
  • report
    https://bugzilla.suse.com/1234290
  • report
    https://bugzilla.suse.com/1236705
  • report
    https://bugzilla.suse.com/1238450
  • report
    https://bugzilla.suse.com/1239210
  • report
    https://bugzilla.suse.com/1243273
  • report
    https://bugzilla.suse.com/1244032
  • report
    https://bugzilla.suse.com/1244056
  • report
    https://bugzilla.suse.com/1244059
  • report
    https://bugzilla.suse.com/1244060
  • web
    https://www.suse.com/security/cve/CVE-2024-12254
  • web
    https://www.suse.com/security/cve/CVE-2024-12718
  • web
    https://www.suse.com/security/cve/CVE-2024-9287
  • web
    https://www.suse.com/security/cve/CVE-2025-0938
  • web
    https://www.suse.com/security/cve/CVE-2025-1795
  • web
    https://www.suse.com/security/cve/CVE-2025-4138
  • web
    https://www.suse.com/security/cve/CVE-2025-4330
  • web
    https://www.suse.com/security/cve/CVE-2025-4516
  • web
    https://www.suse.com/security/cve/CVE-2025-4517