CVE catalog

CVE-2026-32877

Botan is a C++ cryptography library. From version 2.3.0 to before version 3.11.0, during SM2 decryption, the code that checked the authentication code value (C3) failed to check that the encoded value

[CVE catalog]

Severity
High · CVSS 8.2
Published
Source
[NVD] · [CVE record]
EPSS
0.28% · Oct 25, 2026

Botan is a C++ cryptography library. From version 2.3.0 to before version 3.11.0, during SM2 decryption, the code that checked the authentication code value (C3) failed to check that the encoded value was of the expected length prior to comparison. An invalid ciphertext can cause a heap over-read of up to 31 bytes, resulting in a crash or potentially other undefined behavior. This issue has been patched in version 3.11.0.

Vulnerable and fixed packages

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

DistributionPackageReleaseVersionStatus
Debianbotantrixie2.19.5+dfsg-4vulnerable
Debianbotanbookworm2.19.3+dfsg-1+deb12u1vulnerable
CpebotanNot reportedNot reportedvulnerable
CpebotanNot reported3.11.0fixed
Alpinebotan33.243.11.0-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianbotansourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianbotansourcebookworm(unfixed)not yet assignedNot reportedNot reported
CpebotancpeNot reported3.11.0Not reportedNot reportedNot reported
Alpinebotan3apk3.243.11.0-r0Not reportedALPINE-CVE-2026-32877Not reported

Notes

[trixie] botan: Minor issue [bookworm] botan: Minor issue; SM2 C3 heap over-read; fix only in 3.11.0

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [botan]Affected
    Details (2)
    • 2.19.3+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

    • 2.19.3+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

  • [libbotan-2-19]Affected

    Source package: [botan]

    Details (2)
    • 2.19.3+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

    • 2.19.3+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

  • [libbotan-2-dev]Affected

    Source package: [botan]

    Details (2)
    • 2.19.3+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

    • 2.19.3+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

  • [libbotan-2-doc]Affected

    Source package: [botan]

    Details (2)
    • 2.19.3+dfsg-1+deb12u1 · all · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

    • 2.19.3+dfsg-1+deb12u1 · all · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

  • [python3-botan]Affected

    Source package: [botan]

    Details (2)
    • 2.19.3+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

    • 2.19.3+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · botan · debian · bookworm; nvd · botan · debian · 12

[Debian 13 (Trixie)]

  • [botan]Affected

    Source package: [botan3]

    Details (4)
    • 3.7.1+dfsg-2 · amd64 · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan · debian · 13; nvd · botan3 · debian · 13

    • 3.7.1+dfsg-2 · arm64 · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan · debian · 13; nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · amd64 · trixie-security

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan · debian · 13; nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · arm64 · trixie-security

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan · debian · 13; nvd · botan3 · debian · 13

  • [libbotan-2-19]Affected

    Source package: [botan]

    Details (2)
    • 2.19.5+dfsg-4 · amd64 · trixie

      Affected

      nvd · botan · debian · 13

    • 2.19.5+dfsg-4 · arm64 · trixie

      Affected

      nvd · botan · debian · 13

  • [libbotan-2-dev]Affected

    Source package: [botan]

    Details (2)
    • 2.19.5+dfsg-4 · amd64 · trixie

      Affected

      nvd · botan · debian · 13

    • 2.19.5+dfsg-4 · arm64 · trixie

      Affected

      nvd · botan · debian · 13

  • [libbotan-2-doc]Affected

    Source package: [botan]

    Details (2)
    • 2.19.5+dfsg-4 · all · trixie

      Affected

      nvd · botan · debian · 13

    • 2.19.5+dfsg-4 · all · trixie

      Affected

      nvd · botan · debian · 13

  • [libbotan-3-7]Affected

    Source package: [botan3]

    Details (2)
    • 3.7.1+dfsg-2 · amd64 · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.7.1+dfsg-2 · arm64 · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

  • [libbotan-3-dev]Affected

    Source package: [botan3]

    Details (4)
    • 3.7.1+dfsg-2 · amd64 · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.7.1+dfsg-2 · arm64 · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

  • [libbotan-3-doc]Affected

    Source package: [botan3]

    Details (4)
    • 3.7.1+dfsg-2 · all · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.7.1+dfsg-2 · all · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · all · trixie-security

      Fixed · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · all · trixie-security

      Fixed · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

  • [python3-botan]Affected

    Source package: [botan3]

    Details (4)
    • 3.7.1+dfsg-2 · amd64 · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.7.1+dfsg-2 · arm64 · trixie

      Affected · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

  • Source package: [botan3]

    Details (2)
    • 3.12.0+dfsg-2~deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

    • 3.12.0+dfsg-2~deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 3.11.0+dfsg-2

      nvd · botan3 · debian · 13

Observed:

References