rust-openssl — security advisory
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.7 to before 0.10.79, X509Ref::ocsp_responders returns OCSP responder URLs from a certificate's AIA extension as OpensslString, whose Deref wraps the raw bytes with str::from_utf8_unchecked. OpenSSL does not enforce that the underlying IA5String is ASCII, so a certificate with non-UTF-8 bytes in its OCSP accessLocation causes safe Rust code to construct a &str that violates the UTF-8 invariant — resulting in undefined behavior. This vulnerability is fixed in 0.10.79.
- 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-42327
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:03 UTC · Revision 1
Source evidence
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.7 to before 0.10.79, X509Ref::ocsp_responders returns OCSP responder URLs from a certificate's AIA extension as OpensslString, whose Deref wraps the raw bytes with str::from_utf8_unchecked. OpenSSL does not enforce that the underlying IA5String is ASCII, so a certificate with non-UTF-8 bytes in its OCSP accessLocation causes safe Rust code to construct a &str that violates the UTF-8 invariant — resulting in undefined behavior. This vulnerability is fixed in 0.10.79.
osv:UBUNTU-CVE-2026-42327
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": "9481fb1d7f3a7db14a50e4b2f4064df8ed7f6c0c76e2cf113b59107d2c9b8048",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-42327",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-42327",
"summary": "rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.7 to before 0.10.79, X509Ref::ocsp_responders returns OCSP responder URLs from a certificate's AIA extension as OpensslString, whose Deref wraps the raw bytes with str::from_utf8_unchecked. OpenSSL does not enforce that the underlying IA5String is ASCII, so a certificate with non-UTF-8 bytes in its OCSP accessLocation causes safe Rust code to construct a &str that violates the UTF-8 invariant — resulting in undefined behavior. This vulnerability is fixed in 0.10.79.",
"evidence": "osv:UBUNTU-CVE-2026-42327",
"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-42327",
"aliases": [
"UBUNTU-CVE-2026-42327"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
},
{
"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-42327.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-42327.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-42327.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-42327.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-42327.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-42327.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-openssl-dev",
"binary_version": "0.10.73-1"
}
]
}
}
],
"modified": "2026-10-17T13:00:05.436581379Z",
"provider": "osv",
"upstream": [
"CVE-2026-42327"
],
"references": [
"https://ubuntu.com/security/CVE-2026-42327",
"https://www.cve.org/CVERecord?id=CVE-2026-42327",
"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xp3w-r5p5-63rr"
]
},
"related_cves": [
{
"value": "CVE-2026-42327",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360305,
"published_at": "2026-05-14T21:16:00+00:00"
}