github.com·10 november 2026
[NSF] [CVE-2026-121481] Buffer overflow in EVP_EncodeBlock() by nmouha · Pull Request #33652 · openssl/openssl
AVX2
base64 encoding
buffer overflow
CVE-2026-121481
documentation update
Error Handling
EVP_DecodeBlock
EVP_EncodeBlock
NULL pointer
OpenSSL
OpenSSL compatibility
security patch
testing
third-party callers
undefined behavior
github.com
A patch fixes a buffer overflow in OpenSSL's EVP_EncodeBlock() (CVE-2026-121481) and EVP_DecodeBlock() functions by returning -1 for invalid inputs. The update also addresses incorrect length checks in the base64encode() function of http_client.c, updates documentation, and adds new tests. Developers discussed the impact of returning -1 versus 0 for error cases, with concerns raised about third-party callers' ability to handle the change. The final decision favors using OPENSSL_assert() to avoid breaking existing callers.