{"id":"CVE-2026-45784","published":"2026-07-17T20:26:12Z","modified":"2026-07-20T13:49:55Z","title":"rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers","vendor":"rust-openssl","product":"rust-openssl","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00134,"percentile":0.02978,"provenance":"source"},"cwes":[{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rust-openssl/rust-openssl/pull/2638","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-openssl/rust-openssl/commit/19eceb26f2404aae187e5444e65c404ebc1348a7","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.80","tags":["x_refsource_MISC"]}],"priority":{"score":4.2,"factors":[{"name":"EPSS percentile","points":0.6},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"rust-openssl","affectedVersions":[{"vendor":"rust-openssl","product":"rust-openssl","versions":[">= 0.10.50, < 0.10.80"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T13:49:44.811733Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"openssl","vulnerableRanges":[">=0.10.50, <0.10.80"],"patched":["0.10.80"],"from":["GHSA-phqj-4mhp-q6mq","RUSTSEC-2026-0477"],"provenance":"source"}],"summary":{"text":"The rust-openssl crate, which provides OpenSSL bindings for Rust, has an out-of-bounds write flaw in CipherCtxRef::cipher_update_inplace in its cipher context module, affecting AES key-wrap-with-padding ciphers, where output buffers are incorrectly sized for non-multiple-of-8 inputs. An attacker who can influence the plaintext length, reachable through local access with no privileges and no user interaction, can cause up to 7 bytes to be written past the end of the caller's buffer, corrupting heap memory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:45Z"},"euvd":{"id":"EUVD-2026-45322","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-41898","published":"2026-04-24","fixed":"0.10.78","kev":false},{"cve":"CVE-2026-42327","published":"2026-05-14","fixed":"0.10.79","kev":false},{"cve":"CVE-2026-44662","published":"2026-05-14","fixed":"0.10.79","kev":false,"link":{"from":"CVE-2026-44662","to":"CVE-2026-45784","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:openssl","fromFixed":"0.10.79","toFixed":"0.10.80","daysApart":64}]}},{"cve":"CVE-2026-45784","published":"2026-07-17","fixed":"0.10.80","kev":false}],"package":"crates.io:openssl"}}