GHSA-pqf5-4pqq-29f5

Suggest an improvement
Source
https://github.com/advisories/GHSA-pqf5-4pqq-29f5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-pqf5-4pqq-29f5/GHSA-pqf5-4pqq-29f5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pqf5-4pqq-29f5
Aliases
  • CVE-2026-41676
Downstream
Related
Published
2026-04-22T21:22:00Z
Modified
2026-05-05T16:09:21.784178Z
Severity
  • 7.2 (High) CVSS_V4 - 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 CVSS Calculator
Summary
rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1
Details

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.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-22T21:22:00Z",
    "cwe_ids": [
        "CWE-131",
        "CWE-787"
    ],
    "severity": "HIGH",
    "nvd_published_at": "2026-04-24T18:16:29Z"
}
References

Affected packages

crates.io / openssl

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.9.27
Fixed
0.10.78

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-pqf5-4pqq-29f5/GHSA-pqf5-4pqq-29f5.json"