rust-openssl — security advisory
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.39 to before 0.10.78, EVP_DigestFinal() always writes EVP_MD_CTX_size(ctx) to the out buffer. If out is smaller than that, MdCtxRef::digest_final() writes past its end, usually corrupting the stack. This is reachable from safe Rust. This vulnerability is fixed in 0.10.78.
- Products
- rust-openssl
- Affected versions
- 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-41681
- 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.10.39 to before 0.10.78, EVP_DigestFinal() always writes EVP_MD_CTX_size(ctx) to the out buffer. If out is smaller than that, MdCtxRef::digest_final() writes past its end, usually corrupting the stack. This is reachable from safe Rust. This vulnerability is fixed in 0.10.78.
osv:UBUNTU-CVE-2026-41681
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": "63e6ba079b8b2bea26e0976f42d7dd3394d7e747b89d82dc3d1802450218ff3d",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-41681",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-41681",
"summary": "rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.39 to before 0.10.78, EVP_DigestFinal() always writes EVP_MD_CTX_size(ctx) to the out buffer. If out is smaller than that, MdCtxRef::digest_final() writes past its end, usually corrupting the stack. This is reachable from safe Rust. This vulnerability is fixed in 0.10.78.",
"evidence": "osv:UBUNTU-CVE-2026-41681",
"products": [
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.45-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.10.57-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.10.57-1ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.70-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.10.72-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.73-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.10.81-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "rust-openssl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.72-1",
"evidence": "/affected/3/versions"
},
{
"value": "0.10.73-1",
"evidence": "/affected/3/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-41681",
"aliases": [
"UBUNTU-CVE-2026-41681"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/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%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-41681.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-41681.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-41681.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-41681.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-openssl-dev",
"binary_version": "0.10.73-1"
}
]
}
}
],
"modified": "2026-10-17T12:58:15.631091934Z",
"provider": "osv",
"upstream": [
"CVE-2026-41681"
],
"references": [
"https://ubuntu.com/security/CVE-2026-41681",
"https://www.cve.org/CVERecord?id=CVE-2026-41681",
"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-ghm9-cr32-g9qj",
"https://github.com/rust-openssl/rust-openssl/pull/2608",
"https://github.com/rust-openssl/rust-openssl/commit/826c3888b77add418b394770e2b2e3a72d9f92fe"
]
},
"related_cves": [
{
"value": "CVE-2026-41681",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 358467,
"published_at": "2026-04-24T18:16:00+00:00"
}