github.com·10 november 2026

[NSF] [CVE-2026-121481] Buffer overflow in EVP_EncodeBlock() by nmouha · Pull Request #33652 · openssl/openssl

Image for the article: [NSF] [CVE-2026-121481] Buffer overflow in EVP_EncodeBlock() by nmouha · Pull Request #33652 · openssl/openssl
Image via 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.