EST. 2026 — Notes from real server work SYSADMIN · SECURITY · AI · DIRECTADMIN Issue 01
THE SYSADMIN ALMANAC
Home / Security Update / Ubuntu Fixes Python CVE-2026-19445—Check TLS, pip and OpenEXR Now
Security Update

Ubuntu Fixes Python CVE-2026-19445—Check TLS, pip and OpenEXR Now

by Ton-Or ·1 Dec 2026·8 min read
Ubuntu Fixes Python CVE-2026-19445—Check TLS, pip and OpenEXR Now

Administrators running Python TLS that switches contexts through SNI, or workers that accept external EXR files, should check the conditions immediately, then patch promptly and restart services to load the updated code

1-minute summary

Symptom / problem
Python อาจใช้ SSLContext หลังคืนหน่วยความจำ ส่วน pip อาจเขียน executable นอกที่ติดตั้ง และ OpenEXR มีข้อผิดพลาดหน่วยความจำจากข้อมูลภาพ
Who should read
ผู้ใช้แพ็กเกจ Ubuntu ตาม USN โดยต้องแยกบริการ Python TLS งานติดตั้ง wheel และโปรแกรมที่เรียกโค้ด OpenEXR ที่มีปัญหา
Fix in short
เทียบรุ่นแพ็กเกจเต็ม ตรวจ ESM Apps อัปเดตแพ็กเกจที่ติดตั้ง แล้วเริ่ม process ที่เกี่ยวข้องใหม่และทดสอบงานจริง
Jump to steps

I saw that Ubuntu published Python, pip and OpenEXR notices on 1 Dec 2026, so I put this together as a follow-up to the Pgpool-II, Exim and Mbed TLS roundup. Check both the package versions and the code the application calls, especially for the high-scoring Python TLS issue, where you also need to check whether the application retains the original context until it is no longer in use.

9.2Python · CVSS 4.0
8.0 / 4.1pip · CVSS 3.1 / 4.0
8.8OpenEXR · CVSS 3.1
ESM AppsCheck pip and OpenEXR entitlement
Notice Scope What to check promptly
USN-9293-1 Python on 24.04 LTS, covering 7 CVEs TLS servers using an SNI callback and tar extraction tasks
USN-9294-1 pip on 22.04/24.04/26.04 LTS, covering 6 CVEs wheel installation tasks and libraries bundled with pip
USN-9301-1 OpenEXR on 22.04/24.04/26.04 LTS, covering 20 CVEs Workers processing external EXR files

Python: TLS at risk when the original context is freed

CVE-2026-19445 occurs when sni_callback changes SSLSocket.context to another context. If no other reference retains the original SSLContext, Python may free that memory, but OpenSSL can still invoke the callback through the original pointer. An attacker connecting over TLS without logging in could crash the service or execute code.

The CPython report explains that a subsequent ClientHello on the same connection may cause OpenSSL to reuse a pointer to freed memory. Ubuntu's page states that TLS clients are unaffected, and servers that use a context to wrap the listening socket are also outside these conditions. Check code that creates a separate context per connection or switches contexts while a connection remains open.

Ubuntu assigns CVSS 4.0 = 9.2 Critical, with vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

An attacker can reach the vulnerability over the network without an account, but exploitation has high complexity and requires additional conditions. Ubuntu's priority is Medium, which is the priority assigned by the distro. Both the score and priority therefore need to be read alongside the application's conditions.

CVE status differs from the USN

The CVE-2026-19445 page, which lists its last update as 17 Nov 2026, still shows python3.12 on 24.04 as Needs evaluation, but USN-9293-1 dated 1 Dec 2026 lists a patched version. The two pages are still inconsistent. I use the USN to compare package versions. Needs evaluation does not mean safe, and this notice covers only 24.04 LTS.

USN-9293-1 also covers another 6 issues:

CVE Issue
CVE-2026-115557 ssl does not reject certificate chains containing an intermediate CA key known to be compromised
CVE-2026-19553 wrap_bio() may skip hostname verification when server_hostname is absent
CVE-2026-11940 A hard link referencing a symlink may bypass the tarfile filter and create a symlink outside the destination, even with filter='data'
CVE-2026-82049 Link resolution may change permissions or modification times on files outside the destination, or expose their contents in the extracted directory
CVE-2026-11972 Seeking in streaming mode may consume enough CPU to bring down the service
CVE-2026-7210 Insufficient entropy for protection against XML hash flooding in pyexpat/ElementTree may cause heavy CPU usage

On 24.04 LTS, the USN lists libpython3.12-minimal, libpython3.12-stdlib, libpython3.12t64, python3.12-minimal and python3.12-nopie at 3.12.3-1ubuntu0.18. Seeing only Python 3.12.3 does not distinguish the patch level; check the full Ubuntu revision too.

While waiting for the patch, retain a reference to every context with sni_callback configured for the lifetime of the server. The CPython report also states that, when using OpenSSL 1.1.1, set ssl.OP_NO_RENEGOTIATION on the initial context as well.

For CVE-2026-7210, patching Python alone is incomplete. The developers state that libexpat 2.8.0 or later is required alongside the Python patch. Ubuntu package users also need to check the distro's libexpat patches. The Python updates listed above are not enough to conclude that this vulnerability is fully addressed.

pip: Scripts written outside the destination, and bundled libraries need patching

CVE-2026-8643 occurs during wheel installation. pip treats names in console_scripts and gui_scripts as paths but does not fully check whether those paths remain within the installation directory, allowing executables to be written outside it. A wheel containing malicious data must be installed. The impact depends on the privileges of the installation process.

Ubuntu's page gives both CVSS 3.1 = 8.0 High, with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, and CVSS 4.0 = 4.1 Medium, with vector CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Both the scoring versions and the assessors differ. In the CVE record, PSF assigns CVSS 4.0 = 4.1, while Red Hat assigns CVSS 3.1 = 8.0. Always specify the scoring version. Ubuntu's priority is Medium.

USN-9294-1 includes another 5 CVEs in libraries bundled with pip. urllib3 has CVE-2026-97689, which may consume unbounded memory from a chunked response, while CVE-2026-21441 decompresses compressed redirect responses without a limit, and CVE-2026-44432 decompresses more data than requested by a read. Another issue is CVE-2026-44431, which may forward Authorization, Proxy-Authorization or Cookie headers to another host during a redirect.

certifi has CVE-2026-133949: its bundled certificate store may still trust a compromised CA. An attacker could use this to impersonate a TLS website when pip uses that certificate store.

Ubuntu LTS Fixed version for both python3-pip and python3-pip-whl
22.04 22.0.2+dfsg-1ubuntu0.7+esm5
24.04 24.0+dfsg-1ubuntu1.3+esm5
26.04 25.1.1+dfsg-1ubuntu2+esm5

All patches in the table require Ubuntu Pro through ESM Apps, according to the USN. The CVE-2026-8643 page still shows Vulnerable for these releases, but the USN lists fixed packages. The two pages are still inconsistent; compare package versions against the USN.

Updating urllib3 or certifi separately does not mean the copies bundled with pip have also changed. Check pip in virtual environments or images that are separate from the system packages too.

OpenEXR: Promptly check workers accepting external EXR files

CVE-2026-41142 is an integer overflow in ImageChannel::resize that allocates a buffer smaller than required, resulting in a heap buffer overflow. The developer advisory states that this code is reachable through the OpenEXRUtil public API and loadFlatScanLineImage. Check whether the application calls this code. Having the package installed does not necessarily mean an uploaded file can reach the affected code.

The score is CVSS 3.1 = 8.8 High, with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, while Ubuntu's priority is Medium. Administrators of thumbnail, render or conversion workers should check who can submit EXR files and what the processing process can read and write. The upstream versions fixing only CVE-2026-41142 are 3.2.9, 3.3.11, 3.4.11; see the table below for Ubuntu package versions.

USN-9301-1 covers 20 CVEs, which do not affect every release equally:

Scope stated in the USN CVE
22.04 only CVE-2021-45942
24.04 only CVE-2023-5841
24.04 and 26.04 only CVE-2025-12495, CVE-2025-12839, CVE-2026-42216, CVE-2026-42217, CVE-2026-59183, CVE-2026-59983, CVE-2026-59984, CVE-2026-59985
No release-specific distinction in the details CVE-2026-41142, CVE-2026-55059, CVE-2026-55373, CVE-2026-59184, CVE-2026-59186, CVE-2026-59189, CVE-2026-59981, CVE-2026-59982, CVE-2026-61555, CVE-2026-68515

This group includes out-of-bounds memory reads or writes, infinite loops and possible code execution. Some issues arise from buffer size calculations on 32-bit platforms. The main CVE's score therefore cannot represent the entire set.

Ubuntu LTS Runtime packages and tools Fixed version through ESM Apps
22.04 libopenexr25, openexr 2.5.7-1ubuntu0.1~esm3
24.04 libopenexr-3-1-30, openexr 3.1.5-5.1ubuntu0.1~esm2
26.04 libopenexr-3-1-30, openexr 3.1.13-2ubuntu0.26.04.1~esm2

The CVE-2026-41142 page still shows Vulnerable, but the USN lists patched versions. The affected version ranges do not fully agree either. The upstream description of this CVE starts at 3.0.0, but Ubuntu's page also lists 22.04, which uses the 2.5.7 series, as vulnerable.

For CVE-2021-45942, the description specifies the 3.1.x series before 3.1.4, but the USN states that only 22.04 is affected in this set. For CVE-2026-59189, the description specifies the 3.3 and 3.4 series, but Ubuntu shows Vulnerable for all three releases in the table.

I use the USN to compare Ubuntu package versions because it is the distro's own patch notice. This table covers patches for multiple CVEs; it does not confirm that every version is affected by every CVE or that every decoder reaches the affected code.

How to update both packages and processes

Check the release and installed packages first. The following commands are examples for readers, not inspection results from any machine. If the pro command is unavailable, check the Ubuntu Pro Client package first.

cat /etc/os-release
pro status
dpkg-query -W -f='${db:Status-Abbrev} ${binary:Package} ${Version}\n' \
  'python3.12*' 'libpython3.12*' python3-pip python3-pip-whl \
  'libopenexr*' openexr 2>/dev/null | awk '$1 == "ii"'
  1. Check entry points Trace SNI callbacks, wheel installation tasks and EXR inputs
  2. Check patch sources Compare the release, full version and ESM Apps entitlement
  3. Install patches Back up config and review the simulated changes before confirming
  4. Restart services Test TLS, build tasks and image processing workers

After attaching an eligible subscription, check ESM Apps using the Ubuntu Pro documentation. If it is still disabled, enable this service. Then check that the candidate version matches or is newer than the fixed version for that release.

sudo pro enable esm-apps
sudo apt update
apt-cache policy python3.12-minimal python3-pip python3-pip-whl \
  libopenexr25 libopenexr-3-1-30 openexr

This Bash example selects only packages from the list that are already installed. It does not include libexpat, which needs an additional check for CVE-2026-7210. Review the simulation results before running the actual installation line. If the candidate version is still old, resolve the repository or entitlement issue first.

mapfile -t sec_pkgs < <(
  dpkg-query -W -f='${db:Status-Abbrev} ${binary:Package}\n' \
    libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 \
    python3.12-minimal python3.12-nopie python3-pip python3-pip-whl \
    libopenexr25 libopenexr-3-1-30 openexr 2>/dev/null |
  awk '$1 == "ii" {print $2}'
)
if ((${#sec_pkgs[@]})); then
  sudo apt-get -s install --only-upgrade "${sec_pkgs[@]}"
fi

After reviewing the simulated changes, run this section in the same Bash session where the sec_pkgs variable is still available.

if ((${#sec_pkgs[@]})); then
  sudo apt-get install --only-upgrade "${sec_pkgs[@]}"
fi
Services must reload the updated files

Restart Python TLS servers and workers that load OpenEXR. Include processes that embed Python or keep this library loaded. If you use containers or applications with bundled runtimes, update those components and create new instances. Patching the host does not mean the code inside containers has changed.

Check inputsTLS / wheel / EXRCheck patchesrelease and ESMUpdate packagesCheck full revisionRestart servicesTest real tasks
Check whether external data reaches the affected code, then finish with processes that have loaded the patches and passed testing

Check for abnormal behavior, then prioritize patching

None of the three USNs publishes IOCs for detecting a compromise or states that exploitation has occurred. CVSS scores and proof-of-concept examples do not confirm exploitation in production systems.

All 33 CVEs in this post are absent from the KEV edition dated 30 Nov 2026 (catalogVersion: 2026.11.30). I checked the KEV JSON in CISA's official repository, so there are no CISA date-added entries or due dates for this set of CVEs in the edition I checked. Absence from KEV does not mean exploitation has never occurred.

General things to check include Python crashes during TLS handshakes, image workers crashing after receiving EXR files, abnormal CPU or memory usage, and executables appearing outside the destination after wheel installation. Keep the logs and triggering files for investigation in an isolated environment. Do not reopen suspicious files on production. These symptoms still need investigation to establish the cause, and finding no symptoms does not confirm that an attack has never occurred.

This post-update example uses the fictional service name example-worker.service; replace it with the actual unit in use. Check both the package versions and service status, and test the application's functionality too.

dpkg-query -W -f='${binary:Package} ${Version}\n' \
  python3.12-minimal python3-pip python3-pip-whl \
  libopenexr25 libopenexr-3-1-30 openexr 2>/dev/null
sudo systemctl restart example-worker.service
systemctl is-active example-worker.service
journalctl -u example-worker.service -n 50 --no-pager

I recommend promptly patching Python TLS services that meet the conditions and workers that accept external EXR files. Schedule pip patches alongside build and deploy work, checking all bundled library copies. If ESM Apps is still unavailable, arrange a patch source and reduce exposure to risky inputs while waiting.

Sources: Ubuntu USN-9293-1, CVE-2026-19445, CPython SNI callback report, Ubuntu USN-9294-1, CVE-2026-8643, Ubuntu USN-9301-1, CVE-2026-41142, OpenEXR ImageChannel advisory, Ubuntu Pro documentation. USN information is current through 1 Dec 2026; KEV was checked against the 30 Nov 2026 edition. I will come back and update this later.

Want us to set this up?

Get help with server setup, configuration, migration, or troubleshooting. Save time for the work that matters.

Get a quote

Hit something like this? Stuck somewhere?

Come trade notes on the LinuxThai board

→ Continue on the board

Comments 0

No comments yet — be the first