OESA-2026-1356

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2026-1356
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2026-1356.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2026-1356
Upstream
Published
2026-02-13T13:16:05Z
Modified
2026-02-13T13:50:36.910774Z
Summary
python3 security update
Details

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):

When passing data to the b64decode(), standardb64decode(), and urlsafeb64decode() functions in the "base64" module the characters "+/" will always be accepted, regardless of the value of "altchars" parameter, typically used to establish an "alternative base64 alphabet" such as the URL safe alphabet. This behavior matches what is recommended in earlier base64 RFCs, but newer RFCs now recommend either dropping characters outside the specified base64 alphabet or raising an error. The old behavior has the possibility of causing data integrity issues.

This behavior can only be insecure if your application uses an alternate base64 alphabet (without "+/"). If your application does not use the "altchars" parameter or the urlsafe_b64decode() function, then your application does not use an alternative base64 alphabet.

The attached patches DOES NOT make the base64-decode behavior raise an error, as this would be a change in behavior and break existing programs. Instead, the patch deprecates the behavior which will be replaced with the newly recommended behavior in a future version of Python. Users are recommended to mitigate by verifying user-controlled inputs match the base64 alphabet they are expecting or verify that their application would not be affected if the b64decode() functions accepted "+" or "/" outside of altchars.(CVE-2025-12781)

The poplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.(CVE-2025-15367)

When using http.cookies.Morsel, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. Patch rejects all control characters within cookie names, values, and parameters.(CVE-2026-0672)

The wsgiref.headers.Headers module has an HTTP header injection vulnerability where user-controlled header names and values containing newlines can allow injecting malicious HTTP headers.(CVE-2026-0865)

The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized. This is only applicable if using "LiteralHeader" writing headers that don't respect email folding rules, the new behavior will reject the incorrectly folded headers in "BytesGenerator".(CVE-2026-1299)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:24.03-LTS / python3

Package

Name
python3
Purl
pkg:rpm/openEuler/python3&distro=openEuler-24.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.11.6-20.oe2403

Ecosystem specific

{
    "noarch": [
        "python3-help-3.11.6-20.oe2403.noarch.rpm"
    ],
    "aarch64": [
        "python3-3.11.6-20.oe2403.aarch64.rpm",
        "python3-debug-3.11.6-20.oe2403.aarch64.rpm",
        "python3-debuginfo-3.11.6-20.oe2403.aarch64.rpm",
        "python3-debugsource-3.11.6-20.oe2403.aarch64.rpm",
        "python3-devel-3.11.6-20.oe2403.aarch64.rpm",
        "python3-tkinter-3.11.6-20.oe2403.aarch64.rpm",
        "python3-unversioned-command-3.11.6-20.oe2403.aarch64.rpm"
    ],
    "src": [
        "python3-3.11.6-20.oe2403.src.rpm"
    ],
    "x86_64": [
        "python3-3.11.6-20.oe2403.x86_64.rpm",
        "python3-debug-3.11.6-20.oe2403.x86_64.rpm",
        "python3-debuginfo-3.11.6-20.oe2403.x86_64.rpm",
        "python3-debugsource-3.11.6-20.oe2403.x86_64.rpm",
        "python3-devel-3.11.6-20.oe2403.x86_64.rpm",
        "python3-tkinter-3.11.6-20.oe2403.x86_64.rpm",
        "python3-unversioned-command-3.11.6-20.oe2403.x86_64.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-1356.json"