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.
Conclusion & alert: CVE-2025-12781 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.02%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-06 | 0.05% | 0.02% | -0.04% |
| 2 | 2026-03-04 | 0.04% | 0.05% | +0.02% |
| 3 | 2026-02-03 | — | 0.04% | — |
Full EPSS history (5 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.3 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 5.3 | 3.1 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2025-12781 not yet assigned priority: Debian including 5 source packages (pypy3, python3.11, python3.13, python3.14, python3.9), 12 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 12. | https://security-tracker.debian.org/tracker/CVE-2025-12781 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2025-12781 |
suse
|
low | CVE-2025-12781 severity low: SUSE including 337 source package names (13.2-9.73:libpython3_11-1_0-3.11.14-slfo.1.1_3.1, 13.2-9.73:python311-base-3.11.14-slfo.1.1_3.1, …), 724 product×package rows across 72 product lines (Container suse/sl-micro/6.0/toolbox, Container suse/sl-micro/6.1/baremetal-os-container, … (72 product lines)): Fixed 294, Known Affected 231, Will Not Fix 139, Known Not Affected 60. | https://www.suse.com/security/cve/CVE-2025-12781/ |
ubuntu
|
medium | CVE-2025-12781 medium priority: Ubuntu including 13 source packages (pypy3, python2.7, …), 65 status rows across 8 suites (bionic, focal, jammy, noble, questing, trusty, upstream, xenial): DNE 30, ignored 22, needs-triage 13. | https://ubuntu.com/security/CVE-2025-12781 |