CVE catalog

CVE-2025-12781

pypy3: CVE-2025-12781

[CVE catalog]

Severity
Low · CVSS 3.3CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.56% · Oct 22, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpypy3sid8.0.1+dfsg-1vulnerable
Debianpypy3forky8.0.1+dfsg-1vulnerable
Debianpypy3trixie7.3.19+dfsg-2vulnerable
Debianpypy3bookworm7.3.11+dfsg-2+deb12u3vulnerable
Debianpython3.11bookworm3.11.2-6+deb12u8vulnerable
Debianpython3.11bookworm-security3.11.2-6+deb12u9vulnerable
Opensusepython314tumbleweed3.14.3-1.1fixed
Opensusepython315tumbleweed3.15.0~a3-4.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpypy3sourcesid(unfixed)not yet assignedNot reported[1135117]
Debianpypy3sourceforky(unfixed)not yet assignedNot reported[1135117]
Debianpypy3sourcetrixie(unfixed)not yet assignedNot reported[1135117]
Debianpypy3sourcebookworm(unfixed)not yet assignedNot reported[1135117]
Debianpython3.11sourcebookworm(unfixed)not yet assignedNot reportedNot reported
Opensusepython314rpmtumbleweed3.14.3-1.1Not reportedOPENSUSE-SU-2026:10206-1Not reported
Opensusepython315rpmtumbleweed3.15.0~a3-4.1Not reportedOPENSUSE-SU-2026:10152-1Not reported

[Debian bug #1135117]

Notes

[trixie] pypy3: Not backported to older Python releases due to compat concerns [bookworm] pypy3: Minor issue [bookworm] python3.11: Not backported to older Python releases due to compat concerns

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [idle-python3.11]Affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · all · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · all · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • [libpython3.11]Affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · all · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · all · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • [pypy3]Affected
    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

  • [pypy3-dev]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

  • [pypy3-doc]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

  • [pypy3-lib]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

  • Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

  • [pypy3-tk]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

  • [pypy3-venv]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      dsa · pypy3 · debian · bookworm

  • [python3.11]Affected
    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • [python3.11-dbg]Affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • [python3.11-dev]Affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • [python3.11-doc]Affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · all · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · all · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · all · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · all · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

  • [python3.11-full]Affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Affected

      dsa · python3.11 · debian · bookworm

Next results

Observed:

References