CVE-2026-41898
rust-openssl: Unchecked callback-returned length in PSK and cookie generate trampolines can cause OpenSSL to leak adjacent memory to the network peer
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.24 to before 0.10.78, the FFI trampolines behind SslContextBuilder::set_psk_client_callback, set_psk_server_callback, set_cookie_generate_cb, and set_stateless_cookie_generate_cb forwarded the user closure's returned usize directly to OpenSSL without checking it against the &mut [u8] that was handed to the closure. This can lead to buffer overflows and other unintended consequences. This vulnerability is fixed in 0.10.78.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.280% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 8.3 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:58:30.878Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:30.878Z | CVE Program |
| epss | verified | 2026-11-19T16:04:50.042Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:41.218Z | OSV |
| affected | verified | 2026-11-19T12:58:30.878Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:30.878Z | CVE Program |
Affected versions and configuration
rust-openssl rust-openssl; default status: unknown: >= 0.9.24, < 0.10.78 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "rust-openssl",
"product": "rust-openssl",
"versions": [
{
"status": "affected",
"version": ">= 0.9.24, < 0.10.78"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-41898",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-04-24T18:01:38.714785Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-04-24T18:01:47.877Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-hppc-g8h3-xhp3",
"aliases": [
"CVE-2026-41898",
"RUSTSEC-2026-0478"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.9.24"
},
{
"fixed": "0.10.78"
}
]
}
],
"package": {
"name": "openssl",
"purl": "pkg:cargo/openssl",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-hppc-g8h3-xhp3/GHSA-hppc-g8h3-xhp3.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41898",
"type": "ADVISORY"
},
{
"url": "https://github.com/rust-openssl/rust-openssl/pull/2607",
"type": "WEB"
},
{
"url": "https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c",
"type": "WEB"
},
{
"url": "https://github.com/rust-openssl/rust-openssl",
"type": "PACKAGE"
},
{
"url": "https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-126",
"CWE-130"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2026-04-24T18:16:29Z",
"github_reviewed_at": "2026-04-22T21:00:57Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "RUSTSEC-2026-0478",
"aliases": [
"CVE-2026-41898",
"GHSA-hppc-g8h3-xhp3"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.9.24"
},
{
"fixed": "0.10.78"
}
]
}
],
"package": {
"name": "openssl",
"purl": "pkg:cargo/openssl",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"cvss": null,
"source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0478.json",
"categories": [
"memory-exposure"
],
"informational": null
},
"ecosystem_specific": {
"affects": {
"os": [],
"arch": [],
"functions": [
"openssl::ssl::SslContextBuilder::set_cookie_generate_cb",
"openssl::ssl::SslContextBuilder::set_psk_callback",
"openssl::ssl::SslContextBuilder::set_psk_client_callback",
"openssl::ssl::SslContextBuilder::set_psk_server_callback",
"openssl::ssl::SslContextBuilder::set_stateless_cookie_generate_cb"
]
},
"affected_functions": null
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://crates.io/crates/openssl",
"type": "PACKAGE"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0478.html",
"type": "ADVISORY"
},
{
"url": "https://github.com/rust-openssl/rust-openssl/pull/2607",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"license": "CC0-1.0"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | crates.io / package | openssl | Not a distribution channel | 0.10.78 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:41.218ZArchived source JSON
Source publication: 2026-04-22T21:00:57.000Z
Source modification: 2026-11-10T14:10:47.500ZDocument fingerprint
b4893349d125dcac092d9e2358308590d2c2d89d2e1bc56cc20d80a3920374c1 - OSVConsulted: 2026-11-19T12:52:41.218ZArchived source JSON
Source publication: 2026-04-19T12:00:00.000Z
Source modification: 2026-11-10T14:00:02.480ZDocument fingerprint
b4893349d125dcac092d9e2358308590d2c2d89d2e1bc56cc20d80a3920374c1 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:58:30.878ZArchived source JSON
Source publication: 2026-04-24T17:20:38.073Z
Source modification: 2026-04-24T18:01:47.877ZDocument fingerprint
fe380bf26799fc8fc18c374eb0c3eb1520efd1d011d53f7d8082f7a250f10d0c - FIRST EPSSConsulted: 2026-11-19T16:04:50.042ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
7e3baeaa25e4f4d3f88d7df0a5c946bd568f06b8497afa562ddc93c71aed8205
Official status history
- UNKNOWN → PUBLISHED · · evidence