CVE-2023-53159: `openssl` `X509VerifyParamRef :set_host` Buffer Over-read Vulnerability
MODERATECVE-2023-53159 is a MODERATE (CVSS 4.5) :set_host` buffer over-read vulnerability (CWE-126: Buffer Over-read) affecting `openssl` `X509VerifyParamRef libraries in the crates.io ecosystem. The issue involves :set_host` buffer over-read. Remediation is available by upgrading affected packages to version 0.10.55.
CVE-2023-53159 at a Glance
Security Impact
CVSS: 4.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L).
How to Fix CVE-2023-53159
To remediate this vulnerability, upgrade all affected `openssl` `X509VerifyParamRef dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade openssl to 0.10.55
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for openssl
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-53159, inspect your project dependencies for `openssl` `X509VerifyParamRef:
inspect dependencies for openssl
Analyze the terminal output to locate any version of `openssl` `X509VerifyParamRef in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.55), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-126: Buffer Over-read, where the product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer. In `openssl` `X509VerifyParamRef, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-53159 Affected `openssl` `X509VerifyParamRef Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openssl
|
crates.io |
≥ 0.10.0
< 0.10.55
|
0.10.55
|
References
Frequently Asked Questions
What is CVE-2023-53159?
Which `openssl` `X509VerifyParamRef versions are affected?
What version fixes CVE-2023-53159?
Is openssl affected?
What is the CVSS score of CVE-2023-53159?
What CWE is associated with CVE-2023-53159?
How can I check crates.io dependencies for CVE-2023-53159?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xcf7-rvmh-g6q4",
"modified" : "2025-07-28T15:55:01Z",
"published" : "2023-06-21T22:07:52Z",
"aliases" : [ "CVE-2023-53159" ],
"summary" : "`openssl` `X509VerifyParamRef::set_host` buffer over-read",
"details" : "When this function was passed an empty string, `openssl` would attempt to call `strlen` on it, reading arbitrary memory until it reached a NUL byte.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "openssl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.10.0"
}, {
"fixed" : "0.10.55"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-53159"
}, {
"type" : "WEB",
"url" : "https://github.com/sfackler/rust-openssl/issues/1965"
}, {
"type" : "WEB",
"url" : "https://github.com/sfackler/rust-openssl/pull/1968"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sfackler/rust-openssl"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2023-0044.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-126" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-21T22:07:52Z",
"nvd_published_at" : null
}
}