A pull request to the OpenSSL project addresses a buffer overflow in EVP_EncodeBlock(), tracked as CVE-2026-121481 and rated CVSS 9.8.

The change, submitted to OpenSSL's GitHub repository, targets a buffer overflow in EVP_EncodeBlock(), the function that performs Base64 encoding. Early versions of the patch had the function return -1 for invalid inputs. The latest revision instead calls OPENSSL_assert() for inputs that would lead to undefined behavior.
The same guard is applied to EVP_DecodeBlock(). The pull request also corrects an incorrect length check in the base64encode() function of http_client.c. Documentation is updated, and new tests are added to document how zero-length inputs behave.
The pull request is tagged for the master, openssl-4.0 and openssl-4.1 branches and labeled as a bug of important severity. When the page was captured, it was still awaiting review by a committer, and maintainers had requested changes and placed the item on hold for community discussion. The final approach may therefore still change before the fix is merged.
Source: GitHub







