CVE-2025-12781
python python
Patch priority
RegularFix with the next regular update.
- CVSS
- 5.3
- Severity
- 5.3
- EPSS
- 0.9 %
- Percentile
- 60
- Actively exploited
- not known
The traffic light combines CVSS (severity), EPSS (exploitation probability, FIRST) and CISA's KEV catalog. It does not replace your own assessment. More in the glossary
What do I need to do?
in plain wordsWho is affected?
Only those who run python python. The vendor name tells you whether the product is in use at your place.
How dangerous is it?
- Attackable over the network – including from the internet if the device or service is reachable there.
- No login is needed for it.
- Nobody has to click anything.
What to do?
- Include it in your next regular update.
- The vendor’s advisories (linked below) name the fixed version.
- If there is no update yet: keep the device or service off the internet (no port forwarding) and watch for the vendor’s announcement.
Generated automatically from the CVSS vector, KEV and EPSS – does not replace the vendor’s information. Terms explained
Description
NVDWhen 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.
- Vendor / product
- python python
- Published
- 21.01.2026
- Modified
- 17.06.2026
- CWE
- CWE-704
- Status
- Analyzed
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Vendor updates
6- Microsoft: Mariner 21.10.2026 · Medium · Patch day
- SUSE: SUSE-SU-2026:22493-1 – Security update 5.1.4 for Multi-Linux Manager Client Tools and Salt Bundle 06.07.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:20665-1 – Security update for python311 18.03.2026 · HIGH · Patch day
- SUSE: SUSE-SU-2026:20710-1 – Security update for python311 18.03.2026 · HIGH · Patch day
- SUSE: SUSE-SU-2026:0767-1 – Security update for python311 03.03.2026 · HIGH · Patch day
- SUSE: SUSE-SU-2026:0693-1 – Security update for python311 27.02.2026 · HIGH · Patch day
Sources: NVD (NIST), CISA KEV, EPSS (FIRST.org), vendors and authorities. No warranty.