Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceAdvisoriesAdvisory

GHSA-pqf5-4pqq-29f5

rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1

In short

What to know.

Package
  • openssl crates.iofrom 0.9.27 before 0.10.78
What to do
Upgrade openssl to 0.10.78 or later.
Source's rating
HighNoumen has not assessed it.
Noumen finding
NMN-2026-0123Candidate. Severity high, confidence high.

3 December 2026

Source

  1. OSV record GHSA-pqf5-4pqq-29f5osv.devRetrieved 3 December 2026

Full record

Identifier
GHSA-pqf5-4pqq-29f5
Aliases
CVE-2026-41676, RUSTSEC-2026-0473
Severity
High, as rated by the source. Noumen has not assessed it.
CVSS
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Fixed versions
0.10.78
Published
22 April 2026
Modified
10 November 2026
Source
OSV record GHSA-pqf5-4pqq-29f5, retrieved 3 December 2026, 00:00 UTC

Affected packages and ranges

Affected packages
PackageAffected versionsFixed in
openssl
crates.io
from 0.9.27 before 0.10.780.10.78

Affected means inside a published range, not that the code path is reachable in your project.

Details, as published by the source
As published by the source
`Deriver::derive` (and `PkeyCtxRef::derive`) sets `len = buf.len()` and passes it as the in/out length to `EVP_PKEY_derive`, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519, X448, DH and HKDF-extract ignore the incoming `*keylen`, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL.