CVE-2025-12781

EUVD-2026-3598
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
PSFCNA
5.3 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 42.79%
Affected Products (NVD)
VendorProductVersion
pythonpython
𝑥
< 3.13.10
pythonpython
3.14.0 ≤
𝑥
< 3.14.1
pythonpython
3.15.0:alpha1
𝑥
= Vulnerable software versions
Early Detection
Affected products identified ahead of NVD analysis through intelligence sources.
VendorProductVersionSource
pythoncpython
𝑥
< 3.13.10
CNA
pythoncpython
3.14.0 ≤
𝑥
< 3.14.1
CNA
Debian logo
Debian Releases
Debian Product
Codename
pypy3
bookworm
no-dsa
bullseye
ignored
bullseye (security)
vulnerable
forky
vulnerable
sid
vulnerable
trixie
no-dsa
python3.11
bookworm
ignored
bookworm (security)
vulnerable
python3.13
forky
vulnerable
sid
vulnerable
trixie
ignored
python3.14
forky
vulnerable
sid
vulnerable
python3.9
bullseye
ignored
bullseye (security)
vulnerable
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
pypy3
focal
ignored
jammy
ignored
noble
ignored
questing
ignored
resolute
ignored
python3.13
jammy
dne
noble
dne
questing
ignored
resolute
dne
python3.14
jammy
dne
noble
dne
questing
ignored
resolute
ignored
python2.7
bionic
ignored
focal
ignored
jammy
ignored
noble
dne
questing
dne
resolute
dne
trusty
ignored
xenial
ignored
python3.10
jammy
ignored
noble
dne
questing
dne
resolute
dne
python3.11
jammy
ignored
noble
dne
questing
dne
resolute
dne
python3.12
jammy
dne
noble
ignored
questing
dne
resolute
dne
python3.4
jammy
dne
noble
dne
questing
dne
resolute
dne
trusty
ignored
python3.5
jammy
dne
noble
dne
questing
dne
resolute
dne
trusty
ignored
xenial
ignored
python3.6
bionic
ignored
jammy
dne
noble
dne
questing
dne
resolute
dne
python3.7
bionic
ignored
jammy
dne
noble
dne
questing
dne
resolute
dne
python3.8
bionic
ignored
focal
ignored
jammy
dne
noble
dne
questing
dne
resolute
dne
python3.9
focal
ignored
jammy
dne
noble
dne
questing
dne
resolute
dne
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
libpython3_11-1_0
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed
python311
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed
python311-base
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed
python311-curses
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed
python311-dbm
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed
python311-devel
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed
python311-doc
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
python311-doc-devhelp
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
python311-idle
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed
python311-tk
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed
python311-tools
suse enterprise desktop 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise sap 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise sap 15 SP7
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP4
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP5
3.11.14-150400.9.75.1
fixed
suse enterprise server 15 SP6
3.11.14-150600.3.44.1
fixed
suse enterprise server 15 SP7
3.11.14-150600.3.44.1
fixed