セキュリティ
OpenSSL: EVP_EncodeBlock() におけるバッファオーバーフロー (CVE-2026-121481, CVSS 9.8)
OpenSSL: Buffer overflow in EVP_EncodeBlock() (CVE-2026-121481, CVSS 9.8) (github.com)
要約
OpenSSLのEVP_EncodeBlock()関数における深刻なバッファオーバーフロー脆弱性(CVE-2026-121481)に対する修正が含まれています。この修正は、無効な入力に対してOPENSSL_assert()を呼び出すことで未定義の動作を防ぎます。同様の保護策がEVP_DecodeBlock()にも適用され、http_client.cのbase64encode()関数における不正確な長さチェックも修正されています。ドキュメントの更新と新しいテストの追加も行われています。
全文翻訳
[NSF] [CVE-2026-121481] EVP_EncodeBlock() におけるバッファオーバーフロー - #33652
This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by returning `-1` for invalid inputs. It also provides a similar guard for `EVP_DecodeBlock()`, and fixes the incorrect length check in the `base64encode()` function of `http_client.c`. Also updates the documentation and adds new tests.
nhorman previously approved these changes Nov 11, 2026
t8m requested changes Nov 12, 2026
Draft
1 task done
画像: @bob-beck bob-beck added the hold: discussion
The community needs to establish a consensus how to move forward with the issue or PR
label
This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs.
Open
…ock()
This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs.
…ncodeBlock()
This fixes the buffer overflow in `EVP_EncodeBlock()` (CVE-2026-121481) by calling `OPENSSL_assert()` for inputs that lead to undefined behavior. The same fix is applied to `EVP_DecodeBlock()`, and the incorrect length check in `base64encode()` of `http_client.c` is fixed. Also updates the documentation and adds new tests to document the existing behavior for zero-length inputs.