跳到正文
hackernews100(github.com)· JacobHenner·· 3 天前品質評分43

OpenSSL 修補 Base64 編碼函式的緩衝區溢位漏洞

OpenSSL: Buffer overflow in EVP_EncodeBlock() (CVE-2026-121481, CVSS 9.8)

重點導讀

OpenSSL 的 EVP_EncodeBlock() 遇到不正確的輸入時,可能造成緩衝區溢位。

  • 這次修改會拒絕有問題的輸入,也替 EVP_DecodeBlock() 加上類似的檢查,並修正另一個 Base64 編碼函式的長度檢查錯誤。
  • 修改內容還更新了說明檔案,並補上測試。
  • 原文沒有說明哪些版本受影響、是否已有攻擊,或修補程式何時發布。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

@nmouha

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.

@nmouha

nhorman

nhorman previously approved these changes Nov 11, 2026

t8m

t8m requested changes Nov 12, 2026

Draft

1 task done

bob-beck

@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

Nov 13, 2026

bob-beck

@nmouha

@nmouha

@nmouha

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.

@nmouha

@andrewkdinh

Open

@nmouha

@nmouha

…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.

@nmouha

andrewkdinh

@nmouha

@nmouha

@nmouha

…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.

@nmouha

andrewkdinh

daedalus pushed a commit to daedalus/fuzzer that referenced this pull request

Nov 20, 2026

@claude

OpenSSL 4.x AVX2 encoder (openssl/openssl#33652 area) vs scalar via the
public API, toggling OPENSSL_ia32cap_P[2] bit 5; decode round trip as
second oracle. Mismatch raises SIGABRT (shim swallows abort()).

Vendor default 4.1.0, stale-tree guard, version in build stamp, asm
libcrypto variant, apps/include workaround for 4.1.0 Configure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XPHAxcmCVco7xEZjip8Axk

Merged

Merged

Open

@jogme

Open

來源: hackernews100 (github.com)
開啟原文

讀者討論

理性交流 · 即時討論