Skip to content

Commit 84b91e1

Browse files
1 parent bc64e62 commit 84b91e1

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-8c75-8mhr-p7r9",
4+
"modified": "2026-04-22T21:17:32Z",
5+
"published": "2026-04-22T21:17:32Z",
6+
"aliases": [
7+
"CVE-2026-41678"
8+
],
9+
"summary": "rust-openssl has incorrect bounds assertion in aes key wrap",
10+
"details": "### Summary\n``aes::unwrap_key()`` has an incorrect bounds assertion on the out buffer size, which can lead to out-of-bounds write.\n\n### Details\n``aes::unwrap_key()`` contains an incorrect assertion: it checks that `out.len() + 8 <= in_.len()`, but this condition is reversed. The intended invariant is `out.len() >= in_.len() - 8`, ensuring the output buffer is large enough.\n\nBecause of the inverted check, the function only accepts buffers at or below the minimum required size and rejects larger ones. If a smaller buffer is provided the function will write past the end of `out` by `in_.len() - 8 - out.len()` bytes, causing an out-of-bounds write from a safe public function.\n\n### Impact\nVulnerable applications using AES keywrap and allowing attacker controlled buffer sizes could have an attacker trigger an out-of-bounds write.",
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.10.24"
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-8c75-8mhr-p7r9"
42+
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/rust-openssl/rust-openssl/pull/2604"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/rust-openssl/rust-openssl/commit/718d07ff8ff7be417d5b7a6a0047f1607520b3b6"
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-787"
63+
],
64+
"severity": "HIGH",
65+
"github_reviewed": true,
66+
"github_reviewed_at": "2026-04-22T21:17:32Z",
67+
"nvd_published_at": null
68+
}
69+
}

0 commit comments

Comments
 (0)