OESA-2026-4998: python3 security update
Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems. New built-in modules are easily written in C or C++ (or other languages, depending on the chosen implementation). Python is also usable as an extension language for applications written in other languages that need easy-to-use scripting or automation interfaces. Security Fix(es):
http.cookiejar.CookieJar deleted a stored cookie when a response carried an already expired Set-Cookie header for it, using the Domain and Path attributes from the header without consulting the cookie policy. A server could therefore delete cookies belonging to other domains from a shared cookie jar, such as the one used by urllib's HTTPCookieProcessor. The fix consults the cookie policy before an expired cookie may delete an existing one, as required by RFC 6265 section 5.3.(CVE-2026-124249)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
openeuler/python3to a version that resolves this vulnerability.Fixed in 3.9.9-64.oe2203sp4
Event History
Frequently Asked Questions
Which Python applications are most exposed to this issue?
Applications that use a shared cookie jar, including one used by urllib's HTTPCookieProcessor, are exposed when they store cookies for multiple domains in that jar.
What does an attacker need to exploit the flaw?
An attacker needs to cause a response to include an already expired Set-Cookie header targeting a stored cookie. The vulnerable behavior could then delete a cookie belonging to another domain because the Domain and Path values were used without first consulting the cookie policy.