Patchwire CVEs, their patch status, and feeds to follow them

CVE-2025-12781

Fixed in a distro release EPSS <1%CVSS 6.3

When passing data to the b64decode(), standard_b64decode(), and urlsafe_b64decode() 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.

Published 2026-01-21 · CVE record · OSV

Products: Python Software Foundation CPython

Distro releases

ReleasePackageFixed in
Chainguardpython-3.10no fix
Chainguardpython-3.11no fix
Chainguardpython-3.12no fix
Chainguardpython-3.133.13.14-r0
Chainguardpython-3.143.14.6-r1
Chainguardpython-3.9no fix
Debian 12pypy3no fix
Debian 12python3.11no fix
Debian 13pypy3no fix
Debian 13python3.13no fix
Debian 14pypy3no fix
Debian 14python3.13no fix
Debian 14python3.143.14.2-1
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOSpython3113.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOSpython311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOSpython311-documentation3.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSSpython3113.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSSpython311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSSpython311-documentation3.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOSpython3113.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOSpython311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOSpython311-documentation3.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSSpython3113.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSSpython311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSSpython311-documentation3.11.14-150400.9.75.1
SUSE Linux Enterprise Module for Basesystem 15 SP7python311-core3.11.14-150600.3.44.1
SUSE Linux Enterprise Module for Public Cloud 15 SP4python3113.11.14-150400.9.75.1
SUSE Linux Enterprise Module for Public Cloud 15 SP4python311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise Module for Python 3 15 SP7python3113.11.14-150600.3.44.1
SUSE Linux Enterprise Module for Python 3 15 SP7python311-core3.11.14-150600.3.44.1
SUSE Linux Enterprise Server 15 SP4-LTSSpython3113.11.14-150400.9.75.1
SUSE Linux Enterprise Server 15 SP4-LTSSpython311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise Server 15 SP4-LTSSpython311-documentation3.11.14-150400.9.75.1
SUSE Linux Enterprise Server 15 SP5-LTSSpython3113.11.14-150400.9.75.1
SUSE Linux Enterprise Server 15 SP5-LTSSpython311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise Server 15 SP5-LTSSpython311-documentation3.11.14-150400.9.75.1
SUSE Linux Enterprise Server 15 SP6-LTSSpython3113.11.14-150600.3.44.1
SUSE Linux Enterprise Server 15 SP6-LTSSpython311-core3.11.14-150600.3.44.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4python3113.11.14-150400.9.75.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4python311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4python311-documentation3.11.14-150400.9.75.1
SUSE Linux Enterprise Server for SAP Applications 15 SP5python3113.11.14-150400.9.75.1
SUSE Linux Enterprise Server for SAP Applications 15 SP5python311-core3.11.14-150400.9.75.1
SUSE Linux Enterprise Server for SAP Applications 15 SP5python311-documentation3.11.14-150400.9.75.1
SUSE Linux Enterprise Server for SAP Applications 15 SP6python3113.11.14-150600.3.44.1
SUSE Linux Enterprise Server for SAP Applications 15 SP6python311-core3.11.14-150600.3.44.1
SUSE Linux Micro 6.0python3113.11.14-3.1
SUSE Linux Micro 6.0python311-core3.11.14-3.1
SUSE Linux Micro 6.1python3113.11.14-slfo.1.1_3.1
SUSE Linux Micro 6.1python311-core3.11.14-slfo.1.1_3.1
Ubuntu 20.04 LTSpypy3no fix
Ubuntu 22.04 LTSpypy3no fix
Ubuntu 22.04 LTSpython2.7no fix
Ubuntu 22.04 LTSpython3.10no fix
Ubuntu 22.04 LTSpython3.11no fix
Ubuntu 24.04 LTSpypy3no fix
Ubuntu 24.04 LTSpython3.12no fix
Ubuntu 25.10pypy3no fix
Ubuntu 25.10python3.13no fix
Ubuntu 25.10python3.14no fix
Ubuntu 26.04 LTSpypy3no fix
Ubuntu 26.04 LTSpython3.14no fix
Ubuntu 26.10pypy3no fix
Ubuntu 26.10python3.14no fix
Ubuntu Pro 14.04 LTSpython2.7no fix
Ubuntu Pro 14.04 LTSpython3.4no fix
Ubuntu Pro 14.04 LTSpython3.5no fix
Ubuntu Pro 16.04 LTSpython2.7no fix
Ubuntu Pro 16.04 LTSpython3.5no fix
Ubuntu Pro 18.04 LTSpython2.7no fix
Ubuntu Pro 18.04 LTSpython3.6no fix
Ubuntu Pro 18.04 LTSpython3.7no fix
Ubuntu Pro 18.04 LTSpython3.8no fix
Ubuntu Pro 20.04 LTSpython2.7no fix
Ubuntu Pro 20.04 LTSpython3.8no fix
Ubuntu Pro 20.04 LTSpython3.9no fix
Wolfipython-3.10no fix
Wolfipython-3.11no fix
Wolfipython-3.12no fix
Wolfipython-3.133.13.14-r0
Wolfipython-3.143.14.6-r1
openSUSE Leap 15.6python3113.11.14-150600.3.44.1
openSUSE Leap 15.6python311-core3.11.14-150600.3.44.1
openSUSE Leap 15.6python311-documentation3.11.14-150600.3.44.1
openSUSE Tumbleweedpython3113.11.14-4.1
openSUSE Tumbleweedpython3123.12.12-5.1
openSUSE Tumbleweedpython3143.14.3-1.1
openSUSE Tumbleweedpython3153.15.0~a3-4.1