---
title: "CVE-2025-12781"
canonical_url: "https://pkgseek.com/security/CVE-2025-12781"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2025-12781

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 you…

CVE-2025-12781 严重级别为 MEDIUM (5.3)，共索引 78 条受影响软件包构建记录，涉及 5 个发行版。

- **级别 / 评分**: MEDIUM (5.3)
- **受影响构建数**: 78
- **涉及发行版**: 5
- **已标明修复版本发行版**: Alibaba Cloud Linux, OpenAnolis, openSUSE

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 4 | python3 | 3.11.6-13.alnx4 | 3.11.6-16.alnx4 |
| Alibaba Cloud Linux | 4 | python3-debug | 3.11.6-13.alnx4 | 3.11.6-16.alnx4 |
| Alibaba Cloud Linux | 4 | python3-devel | 3.11.6-13.alnx4 | 3.11.6-16.alnx4 |
| Alibaba Cloud Linux | 4 | python3-idle | 3.11.6-13.alnx4 | 3.11.6-16.alnx4 |
| Alibaba Cloud Linux | 4 | python3-libs | 3.11.6-13.alnx4 | 3.11.6-16.alnx4 |
| Alibaba Cloud Linux | 4 | python3-test | 3.11.6-13.alnx4 | 3.11.6-16.alnx4 |
| Alibaba Cloud Linux | 4 | python3-tkinter | 3.11.6-13.alnx4 | 3.11.6-16.alnx4 |
| Alibaba Cloud Linux | 4 | python-unversioned-command | 3.11.6-13.alnx4 | 3.11.6-16.alnx4 |
| Debian | trixie | idle-python3.13 | 3.13.5-2+deb13u5 | — |
| Debian | trixie | libpython3.13 | 3.13.5-2+deb13u5 | — |
| Debian | trixie | libpython3.13-dbg | 3.13.5-2+deb13u5 | — |
| Debian | trixie | libpython3.13-dev | 3.13.5-2+deb13u5 | — |
| Debian | trixie | libpython3.13-minimal | 3.13.5-2+deb13u5 | — |
| Debian | trixie | libpython3.13-stdlib | 3.13.5-2+deb13u5 | — |
| Debian | trixie | libpython3.13-testsuite | 3.13.5-2+deb13u5 | — |
| Debian | trixie | pypy3 | 7.3.19+dfsg-2 | — |
| Debian | trixie | pypy3-dev | 7.3.19+dfsg-2 | — |
| Debian | trixie | pypy3-doc | 7.3.19+dfsg-2 | — |
| Debian | trixie | pypy3-lib | 7.3.19+dfsg-2 | — |
| Debian | trixie | pypy3-lib-testsuite | 7.3.19+dfsg-2 | — |
| Debian | trixie | pypy3-tk | 7.3.19+dfsg-2 | — |
| Debian | trixie | pypy3-venv | 7.3.19+dfsg-2 | — |
| Debian | trixie | python3.13 | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-dbg | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-dev | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-doc | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-examples | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-full | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-gdbm | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-minimal | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-nopie | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-tk | 3.13.5-2+deb13u5 | — |
| Debian | trixie | python3.13-venv | 3.13.5-2+deb13u5 | — |
| OpenAnolis | 23.4 | python3 | 3.11.6-16.an23 | 3.11.6-19.an23 |
| OpenAnolis | 23.4 | python3-debug | 3.11.6-16.an23 | 3.11.6-19.an23 |
| OpenAnolis | 23.4 | python3-devel | 3.11.6-16.an23 | 3.11.6-19.an23 |
| OpenAnolis | 23.4 | python3-idle | 3.11.6-16.an23 | 3.11.6-19.an23 |
| OpenAnolis | 23.4 | python3-libs | 3.11.6-16.an23 | 3.11.6-19.an23 |
| OpenAnolis | 23.4 | python3-test | 3.11.6-16.an23 | 3.11.6-19.an23 |
| OpenAnolis | 23.4 | python3-tkinter | 3.11.6-16.an23 | 3.11.6-19.an23 |
| OpenAnolis | 23.4 | python-unversioned-command | 3.11.6-16.an23 | 3.11.6-19.an23 |
| openSUSE | 15.6 | libpython3_11-1_0 | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | libpython3_11-1_0-32bit | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311 | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-32bit | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-base | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-base-32bit | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-curses | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-dbm | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-devel | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-doc | 3.11.14-150600.3.41.1 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-doc-devhelp | 3.11.14-150600.3.41.1 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-idle | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-testsuite | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-tk | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| openSUSE | 15.6 | python311-tools | 3.11.14-150600.3.41.2 | 3.11.14-150600.3.44.1 |
| Ubuntu | jammy | libpython3.10 | 3.10.4-3 | — |
| Ubuntu | jammy | libpython3.10-dbg | 3.10.4-3 | — |
| Ubuntu | jammy | libpython3.10-dev | 3.10.4-3 | — |
| Ubuntu | jammy | libpython3.10-minimal | 3.10.4-3 | — |
| Ubuntu | jammy | libpython3.10-stdlib | 3.10.4-3 | — |
| Ubuntu | jammy | python3.10 | 3.10.4-3 | — |
| Ubuntu | jammy | python3.10-dbg | 3.10.4-3 | — |
| Ubuntu | jammy | python3.10-dev | 3.10.4-3 | — |
| Ubuntu | jammy | python3.10-doc | 3.10.4-3 | — |
| Ubuntu | jammy | python3.10-examples | 3.10.4-3 | — |
| Ubuntu | jammy | python3.10-minimal | 3.10.4-3 | — |
| Ubuntu | noble | libpython3.12-dev | 3.12.3-1 | — |
| Ubuntu | noble | libpython3.12-minimal | 3.12.3-1 | — |
| Ubuntu | noble | libpython3.12-stdlib | 3.12.3-1 | — |
| Ubuntu | noble | libpython3.12t64 | 3.12.3-1 | — |
| Ubuntu | noble | libpython3.12t64-dbg | 3.12.3-1 | — |
| Ubuntu | noble | python3.12 | 3.12.3-1 | — |
| Ubuntu | noble | python3.12-dbg | 3.12.3-1 | — |
| Ubuntu | noble | python3.12-dev | 3.12.3-1 | — |
| Ubuntu | noble | python3.12-doc | 3.12.3-1 | — |
| Ubuntu | noble | python3.12-examples | 3.12.3-1 | — |
| Ubuntu | noble | python3.12-minimal | 3.12.3-1 | — |
