rust-openssl — security advisory
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.27 to before 0.10.78, 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. This vulnerability is fixed in 0.10.78.
- Products
- rust-openssl
- Affected versions
- 0.10.23-1, 0.10.23-1ubuntu0.1~esm1, 0.10.29-1, 0.10.36-1, 0.10.36-1ubuntu0.1~esm1, 0.10.45-1, 0.10.57-1, 0.10.57-1ubuntu0.1~esm1, 0.10.70-1, 0.10.72-1, 0.10.73-1, 0.10.81-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-41676
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:11 UTC · Revision 1
Source evidence
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.27 to before 0.10.78, 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. This vulnerability is fixed in 0.10.78.
osv:UBUNTU-CVE-2026-41676
rust-openssl
Fixed versions: Not specified
rust-openssl
Fixed versions: Not specified
rust-openssl
Fixed versions: Not specified
rust-openssl
Fixed versions: Not specified
rust-openssl
Fixed versions: Not specified
rust-openssl
Fixed versions: Not specified
Complete source record
{
"id": "63cfb0396363e17c871184bc766b73fe430b958ca58ca4e8323ee9924178d195",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-41676",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-41676",
"summary": "rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.27 to before 0.10.78, 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. This vulnerability is fixed in 0.10.78.",
"evidence": "osv:UBUNTU-CVE-2026-41676",
"products": [
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.23-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.10.23-1ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.29-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.10.36-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.10.36-1ubuntu0.1~esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.45-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.10.57-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.10.57-1ubuntu0.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.70-1",
"evidence": "/affected/3/versions"
},
{
"value": "0.10.72-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.73-1",
"evidence": "/affected/4/versions"
},
{
"value": "0.10.81-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.72-1",
"evidence": "/affected/5/versions"
},
{
"value": "0.10.73-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-41676",
"aliases": [
"UBUNTU-CVE-2026-41676"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-openssl",
"purl": "pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"0.10.23-1",
"0.10.23-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-openssl-dev",
"binary_version": "0.10.23-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-openssl",
"purl": "pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"0.10.29-1",
"0.10.36-1",
"0.10.36-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-openssl-dev",
"binary_version": "0.10.36-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-openssl",
"purl": "pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"0.10.45-1",
"0.10.57-1",
"0.10.57-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-openssl-dev",
"binary_version": "0.10.57-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-openssl",
"purl": "pkg:deb/ubuntu/rust-openssl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.10.70-1",
"0.10.72-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-openssl-dev",
"binary_version": "0.10.72-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-openssl",
"purl": "pkg:deb/ubuntu/rust-openssl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.10.73-1",
"0.10.81-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-openssl-dev",
"binary_version": "0.10.81-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-openssl",
"purl": "pkg:deb/ubuntu/rust-openssl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.10.72-1",
"0.10.73-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-openssl-dev",
"binary_version": "0.10.73-1"
}
]
}
}
],
"modified": "2026-10-17T12:58:16.039237866Z",
"provider": "osv",
"upstream": [
"CVE-2026-41676"
],
"references": [
"https://ubuntu.com/security/CVE-2026-41676",
"https://www.cve.org/CVERecord?id=CVE-2026-41676",
"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-pqf5-4pqq-29f5"
]
},
"related_cves": [
{
"value": "CVE-2026-41676",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 358475,
"published_at": "2026-04-24T18:16:00+00:00"
}