{"id":"CVE-2026-44662","aliases":["CVE-2026-44662","GHSA-xv59-967r-8726","RUSTSEC-2026-0476"],"related":[],"kind":"vulnerability","state":"published","title":"rust-openssl: Heap buffer overflow when encrypting with AES key-wrap-with-padding","summary":"rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.0 to before 0.10.79, CipherCtxRef::cipher_update, CipherCtxRef::cipher_update_vec, and symm::Crypter::update 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 only impacts users using AES key-wrap-with-padding ciphers. This vulnerability is fixed in 0.10.79.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.0 to before 0.10.79, CipherCtxRef::cipher_update, CipherCtxRef::cipher_update_vec, and symm::Crypter::update 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 only impacts users using AES key-wrap-with-padding ciphers. This vulnerability is fixed in 0.10.79.","source":"cvelist"},{"lang":"en","text":"`CipherCtxRef::cipher_update`, `CipherCtxRef::cipher_update_vec`, and `symm::Crypter::update` 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"`CipherCtxRef::cipher_update`, `CipherCtxRef::cipher_update_vec` and `symm::Crypter::update` require (or allocate) `input.len() + block_size` bytes of output. With the AES key-wrap-with-padding ciphers (`EVP_aes_128_wrap_pad`, `EVP_aes_192_wrap_pad`, `EVP_aes_256_wrap_pad`), OpenSSL pads the input to a multiple of 8 bytes and adds an 8-byte block, so when the input length is not a multiple of 8 it writes up to 7 bytes past the end of the caller's buffer or `Vec`. If an attacker can influence the plaintext length, this is heap corruption they can partly control.\n\nOnly users of the AES key-wrap-with-padding ciphers are affected. 0.10.79 sizes the output for these ciphers as the input length rounded up to a multiple of 8, plus 8.","format":"markdown","source":"rustsec"}],"published":"2026-05-04T12:00:00.000Z","modified":"2026-11-10T14:11:00.353Z","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"}],"cwes":["CWE-122"],"affected":[{"ranges":[{"version":">= 0.10.0, < 0.10.79","status":"affected"}],"vendor":"rust-openssl","product":"rust-openssl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.10.0","status":"affected","fixed":"0.10.79"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.10.0","status":"affected","fixed":"0.10.79"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"rustsec"}],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xv59-967r-8726","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44662","tags":["advisory"],"sources":["ghsa"]},{"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-0476.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/rust-openssl/rust-openssl/pull/2630","tags":["web"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-16T01:01:24.891Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44662","url":"https://www.cve.org/CVERecord?id=CVE-2026-44662","licence":"CVE Terms of Use","modified":"2026-05-16T01:01:45.712Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xv59-967r-8726","url":"https://github.com/advisories/GHSA-xv59-967r-8726","licence":"CC-BY-4.0","modified":"2026-11-10T14:11:00.353Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0476","url":"https://rustsec.org/advisories/RUSTSEC-2026-0476.html","licence":"CC0-1.0","modified":"2026-11-10T14:00:02.484Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44662","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44662","licence":"Public domain","modified":"2026-06-17T10:51:12.570Z"}],"updatedAt":"2026-11-25T22:59:21.788Z","epss":{"score":0.00172,"percentile":0.06958,"date":"2026-12-01T12:00:22.000Z"}}