CVSS 4.0
6.3 mediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NMedium (6.3) in python python. EPSS 0.9% estimated probability of exploitation activity in the next 30 days.
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExplain CVE-2025-12781 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-12781?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-12781?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-12781 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Python Software Foundation CPython | before 3.13.10 |
| Python Software Foundation CPython | from 3.14.0 before 3.14.1 |
| Python Software Foundation CPython | from 3.15.0a1 before 3.15.0a2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | pypy3, python3.11 | no fix listed | DEBIAN-CVE-2025-12781 |
| Debian | 13 | pypy3, python3.13 | no fix listed | DEBIAN-CVE-2025-12781 |
| Debian | 14 | pypy3 | no fix listed | DEBIAN-CVE-2025-12781 |
| Debian | 14 | python3.14 | 3.14.2-1 | DEBIAN-CVE-2025-12781 |
| Ubuntu | 20.04:LTS | pypy3 | no fix listed | UBUNTU-CVE-2025-12781 |
| Ubuntu | 22.04:LTS | pypy3, python2.7, python3.10 and 1 more | no fix listed | UBUNTU-CVE-2025-12781 |
| Ubuntu | 24.04:LTS | pypy3, python3.12 | no fix listed | UBUNTU-CVE-2025-12781 |
| Ubuntu | 25.10 | pypy3, python3.13, python3.14 | no fix listed | UBUNTU-CVE-2025-12781 |
| Ubuntu | 26.04:LTS, 26.10 | pypy3, python3.14 | no fix listed | UBUNTU-CVE-2025-12781 |
| Ubuntu | Pro:14.04:LTS | python2.7, python3.4, python3.5 | no fix listed | UBUNTU-CVE-2025-12781 |
| Ubuntu | Pro:16.04:LTS | python2.7, python3.5 | no fix listed | UBUNTU-CVE-2025-12781 |
| Ubuntu | Pro:18.04:LTS | python2.7, python3.6, python3.7 and 1 more | no fix listed | UBUNTU-CVE-2025-12781 |
| Ubuntu | Pro:20.04:LTS | python2.7, python3.8, python3.9 | no fix listed | UBUNTU-CVE-2025-12781 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 more | python311, python311-core, python311-documentation | 3.11.14-150400.9.75.1 | SUSE-SU-2026:0693-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP7 | python311-core | 3.11.14-150600.3.44.1 | SUSE-SU-2026:0767-1 |
| SUSE | Linux Enterprise Module for Public Cloud 15 SP4 | python311, python311-core | 3.11.14-150400.9.75.1 | SUSE-SU-2026:0693-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6 | python311, python311-core | 3.11.14-150600.3.44.1 | SUSE-SU-2026:0767-1 |
| SUSE | Linux Micro 6.0 | python311, python311-core | 3.11.14-3.1 | SUSE-SU-2026:20710-1 |
| SUSE | Linux Micro 6.1 | python311, python311-core | 3.11.14-slfo.1.1_3.1 | SUSE-SU-2026:20665-1 |
| openSUSE | Leap 15.6 | python311, python311-core, python311-documentation | 3.11.14-150600.3.44.1 | SUSE-SU-2026:0767-1 |
| openSUSE | Tumbleweed | python311 | 3.11.14-4.1 | openSUSE-SU-2026:10221-1 |
| openSUSE | Tumbleweed | python312 | 3.12.12-5.1 | openSUSE-SU-2026:10222-1 |
| openSUSE | Tumbleweed | python314 | 3.14.3-1.1 | openSUSE-SU-2026:10206-1 |
| openSUSE | Tumbleweed | python315 | 3.15.0~a3-4.1 | openSUSE-SU-2026:10152-1 |
| Azure Linux | 2 | python3 | no fix listed | AZL-75225 |
| Azure Linux | 3 | docbook5-style-xsl | no fix listed | AZL-84287 |
| Azure Linux | 3 | python-py | no fix listed | AZL-109683 |
| Azure Linux | 3 | python3 | no fix listed | AZL-75231 |
| Alpaquita | 23 | python3 | 3.11.13-r3 | BELL-CVE-2025-12781 |
| Alpaquita | 25 | python3 | 3.12.12-r2 | BELL-CVE-2025-12781 |
| Alpaquita | stream | python3 | 3.12.12-r3 | BELL-CVE-2025-12781 |
| BellSoft Hardened Containers | 23 | python3 | 3.11.13-r3 | BELL-CVE-2025-12781 |
| BellSoft Hardened Containers | 25 | python3 | 3.12.12-r2 | BELL-CVE-2025-12781 |
| BellSoft Hardened Containers | stream | python3 | 3.12.12-r3 | BELL-CVE-2025-12781 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.
Red Hat rates this Moderate.
This issue can only be exploited by Python applications that use the base64 functions to validate if a string is safe for a URL or filename without additional input validation. Additionally, this flaw affects only the base64 functions when an alternative alphabet is specified via the altchars parameter, limiting its exposure. This issue can cause logical errors and integrity issues but it does not allow direct access to system data or critical files, as the exploitation depends on how the application processes the decoded data. Due to these reasons, this vulnerability has been rated with a moderate severity.
To mitigate this issue, implement manual input validation before calling the base64 functions with an alternative alphabet, ensuring to reject any string containing the standard base64 characters, such as '+' and '/', that are not part of the expected alphabet.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | firefox | Fix deferred | |
| Red Hat Enterprise Linux 10 | python3.12 | Fix deferred | |
| Red Hat Enterprise Linux 10 | python3.14 | Fix deferred | |
| Red Hat Enterprise Linux 6 | python | Fix deferred | |
| Red Hat Enterprise Linux 7 | firefox | Fix deferred | |
| Red Hat Enterprise Linux 7 | python | Fix deferred | |
| Red Hat Enterprise Linux 7 | python3 | Fix deferred | |
| Red Hat Enterprise Linux 8 | firefox | Fix deferred | |
| Red Hat Enterprise Linux 8 | python3 | Fix deferred | |
| Red Hat Enterprise Linux 8 | python3.11 | Fix deferred | |
| Red Hat Enterprise Linux 8 | python3.12 | Fix deferred | |
| Red Hat Enterprise Linux 8 | python36:3.6/python36 | Fix deferred | |
| Red Hat Enterprise Linux 8 | python39-devel:3.9/python39 | Fix deferred | |
| Red Hat Enterprise Linux 9 | firefox | Fix deferred | |
| Red Hat Enterprise Linux 9 | python3.11 | Fix deferred | |
| Red Hat Enterprise Linux 9 | python3.12 | Fix deferred | |
| Red Hat Enterprise Linux 9 | python3.14 | Fix deferred | |
| Red Hat Enterprise Linux 9 | python3.9 | Fix deferred | |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rhelai3/bootc-aws-cuda-rhel9 | Fix deferred | |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rhelai3/bootc-azure-cuda-rhel9 | Fix deferred | |
| 10 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-12781.