{"id":"SUSE-SU-2023:0748-1","summary":"Security update for python310","details":"This update for python310 fixes the following issues:\n\n- CVE-2023-24329: Fixed blocklist bypass via the urllib.parse component when supplying a URL that starts with blank characters (bsc#1208471).\n\nUpdate to 3.10.10:\n\n- Add provides for readline and sqlite3 to the main Python\n  package.\n- Disable NIS for new products, it's deprecated and gets removed\n\nUpdate to 3.10.9:\n  \n- python -m http.server no longer allows terminal\n  control characters sent within a garbage request to be\n  printed to the stderr server lo This is done by changing\n  the http.server BaseHTTPRequestHandler .log_message method\n  to replace control characters with a \\xHH hex escape before\n  printin\n- Avoid publishing list of active per-interpreter\n  audit hooks via the gc module\n- The IDNA codec decoder used on DNS hostnames by\n  socket or asyncio related name resolution functions no\n  longer involves a quadratic algorithm. This prevents a\n  potential CPU denial of service if an out-of-spec excessive\n  length hostname involving bidirectional characters were\n  decoded. Some protocols such as urllib http 3xx redirects\n  potentially allow for an attacker to supply such a name.\n- Update bundled libexpat to 2.5.0\n- Port XKCP’s fix for the buffer overflows in SHA-3\n  (CVE-2022-37454).\n- On Linux the multiprocessing module returns\n  to using filesystem backed unix domain sockets for\n  communication with the forkserver process instead of the\n  Linux abstract socket namespace. Only code that chooses\n  to use the “forkserver” start method is affected Abstract\n  sockets have no permissions and could allow any user\n  on the system in the same network namespace (often the\n  whole system) to inject code into the multiprocessing\n  forkserver process. This was a potential privilege\n  escalation. Filesystem based socket permissions restrict\n  this to the forkserver process user as was the default in\n  Python 3.8 and earlier This prevents Linux CVE-2022-42919\n- Fix a reference bug in _imp.create_builtin()\n  after the creation of the first sub-interpreter for modules\n  builtins and sys. Patch by Victor Stinner.\n- Fixed a bug that was causing a buffer overflow if\n  the tokenizer copies a line missing the newline caracter\n  from a file that is as long as the available tokenizer\n  buffer. Patch by Pablo galindo\n- Update faulthandler to emit an error message with\n  the proper unexpected signal number. Patch by Dong-hee Na.\n- Fix subscription of types.GenericAlias instances\n  containing bare generic types: for example tuple[A, T][int],\n  where A is a generic type, and T is a type variable.\n- Fix detection of MAC addresses for uuid on certain\n  OSs. Patch by Chaim Sanders\n- Print exception class name instead of its string\n  representation when raising errors from ctypes calls.\n- Allow pdb to locate source for frozen modules in\n  the standard library.\n- Raise ValueError instead of SystemError when\n  methods of uninitialized io.IncrementalNewlineDecoder objects\n  are called. Patch by Oren Milman.\n- Fix a possible assertion failure in io.FileIO when\n  the opener returns an invalid file descriptor.\n- Also escape s in the http.server\n  BaseHTTPRequestHandler.log_message so that it is technically\n  possible to parse the line and reconstruct what the original\n  data was. Without this a xHH is ambiguious as to if it is a\n  hex replacement we put in or the characters r”x” came through\n  in the original request line.\n- asyncio.get_event_loop() now only emits a\n  deprecation warning when a new event loop was created\n  implicitly. It no longer emits a deprecation warning if the\n  current event loop was set.\n- Fix bug when calling trace.CoverageResults with\n  valid infile.\n- Fix a bug in handling class cleanups in\n  unittest.TestCase. Now addClassCleanup() uses separate lists\n  for different TestCase subclasses, and doClassCleanups() only\n  cleans up the particular class.\n- Release the GIL when calling termios APIs to avoid\n  blocking threads.\n- Fix ast.increment_lineno() to also cover\n  ast.TypeIgnore when changing line numbers.\n- Fixed bug where inspect.signature() reported\n  incorrect arguments for decorated methods.\n- Fix SystemError in ctypes when exception was not\n  set during __initsubclass__.\n- Fix statistics.NormalDist pickle with 0 and 1\n  protocols.\n- Update the bundled copy of pip to version 22.3.1.\n- Apply bugfixes from importlib_metadata 4.11.4,\n  namely: In PathDistribution._name_from_stem, avoid\n  including parts of the extension in the result. In\n  PathDistribution._normalized_name, ensure names loaded from\n  the stem of the filename are also normalized, ensuring\n  duplicate entry points by packages varying only by\n  non-normalized name are hidden.\n- Clean up refleak on failed module initialisation in\n  _zoneinfo\n- Clean up refleaks on failed module initialisation\n  in in _pickle\n- Clean up refleak on failed module initialisation in\n  _io.\n- Fix memory leak in math.dist() when both points\n  don’t have the same dimension. Patch by Kumar Aditya.\n- Fix argument typechecks in _overlapped.WSAConnect()\n  and _overlapped.Overlapped.WSASendTo() functions.\n- Fix internal error in the re module which in\n  very rare circumstances prevented compilation of a regular\n  expression containing a conditional expression without the\n  “else” branch.\n- Fix asyncio.StreamWriter.drain() to call\n  protocol.connection_lost callback only once on Windows.\n- Add a mutex to unittest.mock.NonCallableMock to\n  protect concurrent access to mock attributes.\n- Fix hang on Windows in subprocess.wait_closed() in\n  asyncio with ProactorEventLoop. Patch by Kumar Aditya.\n- Fix infinite loop in unittest when a\n  self-referencing chained exception is raised\n- tkinter.Text.count() raises now an exception for\n  options starting with “-” instead of silently ignoring them.\n- On uname_result, restored expectation that _fields\n  and _asdict would include all six properties including\n  processor.\n- Update the bundled copies of pip and setuptools to\n  versions 22.3 and 65.5.0 respectively.\n- Fix bug in urllib.parse.urlparse() that causes\n  certain port numbers containing whitespace, underscores,\n  plus and minus signs, or non-ASCII digits to be incorrectly\n  accepted.\n- Allow venv to pass along PYTHON* variables to\n  ensurepip and pip when they do not impact path resolution\n- On macOS, fix a crash in syslog.syslog() in\n  multi-threaded applications. On macOS, the libc syslog()\n  function is not thread-safe, so syslog.syslog() no longer\n  releases the GIL to call it. Patch by Victor Stinner.\n- Allow BUILTINS to be a valid field name for frozen\n  dataclasses.\n- Make sure patch.dict() can be applied on async\n  functions.\n- To avoid apparent memory leaks when\n  asyncio.open_connection() raises, break reference cycles\n  generated by local exception and future instances (which has\n  exception instance as its member var). Patch by Dong Uk,\n  Kang.\n- Prevent error when activating venv in nested fish\n  instances.\n- Restrict use of sockets instead of pipes for stdin\n  of subprocesses created by asyncio to AIX platform only.\n- shutil.copytree() now applies the\n  ignore_dangling_symlinks argument recursively.\n- Fix IndexError in argparse.ArgumentParser when a\n  store_true action is given an explicit argument.\n- Document that calling variadic functions with\n  ctypes requires special care on macOS/arm64 (and possibly\n  other platforms).\n- Skip test_normalization() of test_unicodedata\n  if it fails to download NormalizationTest.txt file from\n  pythontest.net. Patch by Victor Stinner.\n- Some C API tests were moved into the new\n  Lib/test/test_capi/ directory.\n- Fix -Wimplicit-int, -Wstrict-prototypes, and\n  -Wimplicit-function-declaration compiler warnings in\n  configure checks.\n- Fix -Wimplicit-int compiler warning in configure\n  check for PTHREAD_SCOPE_SYSTEM.\n- Specify the full path to the source location for\n  make docclean (needed for cross-builds).\n- Fix NO_MISALIGNED_ACCESSES being not defined\n  for the SHA3 extension when HAVE_ALIGNED_REQUIRED is\n  set. Allowing builds on hardware that unaligned memory\n  accesses are not allowed.\n- Fix handling of module docstrings in\n  Tools/i18n/pygettext.py.\n\n- Add invalid-json.patch fixing invalid JSON in \n  Doc/howto/logging-cookbook.rst (somehow similar to gh#python/cpython#102582).\n","modified":"2026-03-11T07:22:33.352618Z","published":"2023-03-15T19:34:11Z","related":["CVE-2015-20107","CVE-2022-37454","CVE-2022-42919","CVE-2022-45061","CVE-2023-24329"],"upstream":["CVE-2015-20107","CVE-2022-37454","CVE-2022-42919","CVE-2022-45061","CVE-2023-24329"],"references":[{"type":"ADVISORY","url":"https://www.suse.com/support/update/announcement/2023/suse-su-20230748-1/"},{"type":"REPORT","url":"https://bugzilla.suse.com/1208471"},{"type":"REPORT","url":"https://bugzilla.suse.com/831629"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2015-20107"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-37454"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-42919"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-45061"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2023-24329"}],"affected":[{"package":{"name":"python310","ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP4","purl":"pkg:rpm/suse/python310&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.10-150400.4.22.1"}]}],"ecosystem_specific":{"binaries":[{"python310-curses":"3.10.10-150400.4.22.1","python310-tools":"3.10.10-150400.4.22.1","libpython3_10-1_0":"3.10.10-150400.4.22.1","python310-base":"3.10.10-150400.4.22.1","python310-dbm":"3.10.10-150400.4.22.1","python310-devel":"3.10.10-150400.4.22.1","python310-idle":"3.10.10-150400.4.22.1","python310-tk":"3.10.10-150400.4.22.1","python310":"3.10.10-150400.4.22.1"}]},"database_specific":{"source":"https://ftp.suse.com/pub/projects/security/osv/SUSE-SU-2023:0748-1.json"}},{"package":{"name":"python310-core","ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP4","purl":"pkg:rpm/suse/python310-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.10-150400.4.22.1"}]}],"ecosystem_specific":{"binaries":[{"python310-base":"3.10.10-150400.4.22.1","python310-curses":"3.10.10-150400.4.22.1","python310-devel":"3.10.10-150400.4.22.1","python310-idle":"3.10.10-150400.4.22.1","python310-tk":"3.10.10-150400.4.22.1","libpython3_10-1_0":"3.10.10-150400.4.22.1","python310-dbm":"3.10.10-150400.4.22.1","python310-tools":"3.10.10-150400.4.22.1","python310":"3.10.10-150400.4.22.1"}]},"database_specific":{"source":"https://ftp.suse.com/pub/projects/security/osv/SUSE-SU-2023:0748-1.json"}},{"package":{"name":"python310","ecosystem":"openSUSE:Leap 15.4","purl":"pkg:rpm/opensuse/python310&distro=openSUSE%20Leap%2015.4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.10-150400.4.22.1"}]}],"ecosystem_specific":{"binaries":[{"python310-base-32bit":"3.10.10-150400.4.22.1","python310-dbm":"3.10.10-150400.4.22.1","python310-doc-devhelp":"3.10.10-150400.4.22.1","python310-testsuite":"3.10.10-150400.4.22.1","python310-doc":"3.10.10-150400.4.22.1","python310-tk":"3.10.10-150400.4.22.1","libpython3_10-1_0-32bit":"3.10.10-150400.4.22.1","libpython3_10-1_0":"3.10.10-150400.4.22.1","python310-base":"3.10.10-150400.4.22.1","python310-devel":"3.10.10-150400.4.22.1","python310-32bit":"3.10.10-150400.4.22.1","python310-curses":"3.10.10-150400.4.22.1","python310-idle":"3.10.10-150400.4.22.1","python310-tools":"3.10.10-150400.4.22.1","python310":"3.10.10-150400.4.22.1"}]},"database_specific":{"source":"https://ftp.suse.com/pub/projects/security/osv/SUSE-SU-2023:0748-1.json"}},{"package":{"name":"python310-core","ecosystem":"openSUSE:Leap 15.4","purl":"pkg:rpm/opensuse/python310-core&distro=openSUSE%20Leap%2015.4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.10-150400.4.22.1"}]}],"ecosystem_specific":{"binaries":[{"libpython3_10-1_0-32bit":"3.10.10-150400.4.22.1","python310-base":"3.10.10-150400.4.22.1","python310-doc-devhelp":"3.10.10-150400.4.22.1","python310-testsuite":"3.10.10-150400.4.22.1","python310-tools":"3.10.10-150400.4.22.1","python310":"3.10.10-150400.4.22.1","python310-32bit":"3.10.10-150400.4.22.1","python310-curses":"3.10.10-150400.4.22.1","python310-dbm":"3.10.10-150400.4.22.1","python310-devel":"3.10.10-150400.4.22.1","python310-doc":"3.10.10-150400.4.22.1","python310-tk":"3.10.10-150400.4.22.1","libpython3_10-1_0":"3.10.10-150400.4.22.1","python310-base-32bit":"3.10.10-150400.4.22.1","python310-idle":"3.10.10-150400.4.22.1"}]},"database_specific":{"source":"https://ftp.suse.com/pub/projects/security/osv/SUSE-SU-2023:0748-1.json"}},{"package":{"name":"python310-documentation","ecosystem":"openSUSE:Leap 15.4","purl":"pkg:rpm/opensuse/python310-documentation&distro=openSUSE%20Leap%2015.4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.10-150400.4.22.1"}]}],"ecosystem_specific":{"binaries":[{"python310-tools":"3.10.10-150400.4.22.1","python310-32bit":"3.10.10-150400.4.22.1","python310-base-32bit":"3.10.10-150400.4.22.1","python310-devel":"3.10.10-150400.4.22.1","python310-idle":"3.10.10-150400.4.22.1","python310-testsuite":"3.10.10-150400.4.22.1","python310-tk":"3.10.10-150400.4.22.1","python310":"3.10.10-150400.4.22.1","libpython3_10-1_0-32bit":"3.10.10-150400.4.22.1","python310-curses":"3.10.10-150400.4.22.1","python310-dbm":"3.10.10-150400.4.22.1","python310-doc":"3.10.10-150400.4.22.1","libpython3_10-1_0":"3.10.10-150400.4.22.1","python310-base":"3.10.10-150400.4.22.1","python310-doc-devhelp":"3.10.10-150400.4.22.1"}]},"database_specific":{"source":"https://ftp.suse.com/pub/projects/security/osv/SUSE-SU-2023:0748-1.json"}}],"schema_version":"1.7.5"}