Skip to content

Commit 7548721

Browse files
1 parent d299da6 commit 7548721

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-hppc-g8h3-xhp3",
4+
"modified": "2026-04-22T21:00:57Z",
5+
"published": "2026-04-22T21:00:57Z",
6+
"aliases": [],
7+
"summary": "rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer",
8+
"details": "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.",
9+
"severity": [
10+
{
11+
"type": "CVSS_V4",
12+
"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"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "crates.io",
19+
"name": "openssl"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0.9.24"
27+
},
28+
{
29+
"fixed": "0.10.78"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3"
40+
},
41+
{
42+
"type": "WEB",
43+
"url": "https://github.com/rust-openssl/rust-openssl/pull/2607"
44+
},
45+
{
46+
"type": "WEB",
47+
"url": "https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c"
48+
},
49+
{
50+
"type": "PACKAGE",
51+
"url": "https://github.com/rust-openssl/rust-openssl"
52+
},
53+
{
54+
"type": "WEB",
55+
"url": "https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78"
56+
}
57+
],
58+
"database_specific": {
59+
"cwe_ids": [
60+
"CWE-126",
61+
"CWE-130"
62+
],
63+
"severity": "HIGH",
64+
"github_reviewed": true,
65+
"github_reviewed_at": "2026-04-22T21:00:57Z",
66+
"nvd_published_at": null
67+
}
68+
}

0 commit comments

Comments
 (0)