Skip to content

Commit 3b0c02a

Browse files
1 parent 84b91e1 commit 3b0c02a

2 files changed

Lines changed: 140 additions & 0 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-pqf5-4pqq-29f5",
4+
"modified": "2026-04-22T21:22:00Z",
5+
"published": "2026-04-22T21:22:00Z",
6+
"aliases": [
7+
"CVE-2026-41676"
8+
],
9+
"summary": "rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1",
10+
"details": "`Deriver::derive` (and `PkeyCtxRef::derive`) sets `len = buf.len()` and passes it as the in/out length to `EVP_PKEY_derive`, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519, X448, DH and HKDF-extract ignore the incoming `*keylen`, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V4",
14+
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "crates.io",
21+
"name": "openssl"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0.9.27"
29+
},
30+
{
31+
"fixed": "0.10.78"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-pqf5-4pqq-29f5"
42+
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/rust-openssl/rust-openssl/pull/2606"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/rust-openssl/rust-openssl/commit/09b425e5f59a2466d806e71a83a9a449c914c596"
50+
},
51+
{
52+
"type": "PACKAGE",
53+
"url": "https://github.com/rust-openssl/rust-openssl"
54+
},
55+
{
56+
"type": "WEB",
57+
"url": "https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78"
58+
}
59+
],
60+
"database_specific": {
61+
"cwe_ids": [
62+
"CWE-131",
63+
"CWE-787"
64+
],
65+
"severity": "HIGH",
66+
"github_reviewed": true,
67+
"github_reviewed_at": "2026-04-22T21:22:00Z",
68+
"nvd_published_at": null
69+
}
70+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-xmgf-hq76-4vx2",
4+
"modified": "2026-04-22T21:20:04Z",
5+
"published": "2026-04-22T21:20:04Z",
6+
"aliases": [
7+
"CVE-2026-41677"
8+
],
9+
"summary": "rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length",
10+
"details": "The `*_from_pem_callback` APIs did not validate the length returned by the user's callback. A password callback that returns a value larger than the buffer it was given can cause some versions of OpenSSL to over-read this buffer. OpenSSL 3.x is not affected by this.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V4",
14+
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "crates.io",
21+
"name": "openssl"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0.9.0"
29+
},
30+
{
31+
"fixed": "0.10.78"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xmgf-hq76-4vx2"
42+
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/rust-openssl/rust-openssl/pull/2605"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/rust-openssl/rust-openssl/commit/5af6895c907773699f37f583f409b862284062b1"
50+
},
51+
{
52+
"type": "PACKAGE",
53+
"url": "https://github.com/rust-openssl/rust-openssl"
54+
},
55+
{
56+
"type": "WEB",
57+
"url": "https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78"
58+
}
59+
],
60+
"database_specific": {
61+
"cwe_ids": [
62+
"CWE-125",
63+
"CWE-1284"
64+
],
65+
"severity": "LOW",
66+
"github_reviewed": true,
67+
"github_reviewed_at": "2026-04-22T21:20:04Z",
68+
"nvd_published_at": null
69+
}
70+
}

0 commit comments

Comments
 (0)