{"id":"CVE-2026-45784","aliases":["CVE-2026-45784","GHSA-phqj-4mhp-q6mq","RUSTSEC-2026-0477"],"related":[],"kind":"vulnerability","state":"published","title":"rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers","summary":"rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.50 until 0.10.80, CipherCtxRef::cipher_update_inplace in openssl/src/cipher_ctx.rs incorrectly sized output buffers when used with AES key-wrap-with-padding ciphers EVP_aes_{128,192,256}_wrap_pad. For a non-multiple-of-8 input, OpenSSL writes up to 7 bytes past the end of the caller's buffer or Vec, producing attacker-controllable heap corruption when the plaintext length is attacker-influenced. This issue is fixed in version 0.10.80.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.50 until 0.10.80, CipherCtxRef::cipher_update_inplace in openssl/src/cipher_ctx.rs incorrectly sized output buffers when used with AES key-wrap-with-padding ciphers EVP_aes_{128,192,256}_wrap_pad. For a non-multiple-of-8 input, OpenSSL writes up to 7 bytes past the end of the caller's buffer or Vec, producing attacker-controllable heap corruption when the plaintext length is attacker-influenced. This issue is fixed in version 0.10.80.","source":"cvelist"},{"lang":"en","text":"`CipherCtxRef::cipher_update_inplace` incorrectly sized output buffers when used with AES key-wrap-with-padding ciphers (EVP_aes_{128,192,256}_wrap_pad). For a non-multiple-of-8 input, OpenSSL writes up to 7 bytes past the end of the caller's buffer or Vec, producing attacker-controllable heap corruption when the plaintext length is attacker-influenced.\n\nThis only impacts users using AES key-wrap-with-padding ciphers.\n\nThis method was missed in the fix for GHSA-xv59-967r-8726","format":"markdown","source":"ghsa"},{"lang":"en","text":"`CipherCtxRef::cipher_update_inplace` had the same sizing error that 0.10.79 fixed in `cipher_update` (GHSA-xv59-967r-8726); that fix missed this method. It required room for `inlen + block_size` bytes, but with the AES key-wrap-with-padding ciphers OpenSSL writes up to 7 more bytes when `inlen` is not a multiple of 8, past the end of `data`.\n\nOnly users of the AES key-wrap-with-padding ciphers are affected. `cipher_update_inplace` was added in 0.10.50, and 0.10.80 applies the corrected size check to it.","format":"markdown","source":"rustsec"}],"published":"2026-05-16T12:00:00.000Z","modified":"2026-11-10T14:10:52.035Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":5.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-131","CWE-787"],"affected":[{"ranges":[{"version":">= 0.10.50, < 0.10.80","status":"affected"}],"vendor":"rust-openssl","product":"rust-openssl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.10.50","status":"affected","fixed":"0.10.80"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.10.50","status":"affected","fixed":"0.10.80"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"rustsec"},{"ranges":[{"status":"affected","introduced":"0.10.50","fixed":"0.10.80"}],"vendor":"sfackler","product":"openssl","cpe":"cpe:2.3:a:sfackler:openssl:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rust-openssl/rust-openssl/pull/2638","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","rustsec","nvd"]},{"url":"https://github.com/rust-openssl/rust-openssl/commit/19eceb26f2404aae187e5444e65c404ebc1348a7","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.80","tags":["product","release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rust-openssl/rust-openssl","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/openssl","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0477.html","tags":["advisory"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-20T13:49:44.811Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45784","url":"https://www.cve.org/CVERecord?id=CVE-2026-45784","licence":"CVE Terms of Use","modified":"2026-07-20T13:49:55.716Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-phqj-4mhp-q6mq","url":"https://github.com/advisories/GHSA-phqj-4mhp-q6mq","licence":"CC-BY-4.0","modified":"2026-11-10T14:10:52.035Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0477","url":"https://rustsec.org/advisories/RUSTSEC-2026-0477.html","licence":"CC0-1.0","modified":"2026-11-10T14:00:02.477Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45784","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45784","licence":"Public domain","modified":"2026-07-29T15:43:54.220Z"}],"updatedAt":"2026-11-25T22:59:28.566Z","epss":{"score":0.00134,"percentile":0.03109,"date":"2026-12-02T12:00:21.000Z"}}