Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| randombit | botan | >= 2.3.0, < 3.11.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | botan3 | 3.11.0+dfsg-2 | — |
| Debian 13 | botan | No fix yet | — |
| Debian 13 | botan3 | 3.11.0+dfsg-2 | — |
| Debian 12 | botan | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | botan3 | No fix yet | — |
| Ubuntu 26.04 LTS | botan3 | No fix yet | — |
| Ubuntu 25.10 | botan +1 | No fix yet | — |
| Ubuntu 20.04 LTS | botan | No fix yet | — |
| Ubuntu 18.04 LTS | botan | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | botan1.10 | No fix yet | — |
| Ubuntu Pro 24.04 LTS | botan | No fix yet | — |
| Ubuntu Pro 22.04 LTS | botan | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | botan3 | 3.11.0-r0 | — |