Skip to content
HN On Hacker News ↗

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

▲ 376 points • 345 comments • by JacobHenner • 4d ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this entire text is human-written.

0 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 244
PEAK AI % 0% · §1
Analyzed
Nov 20
backend: pangram/v3.3
Segments scanned
1 windows
avg 244 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 244 words · 1 segments analyzed

Human AI-generated
§1 Human · 0%

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 added the hold: discussion The community needs to establish a consensus how to move forward with the issue or PR label Nov 13, 2026 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.