{"id":"CVE-2026-41677","aliases":["CVE-2026-41677","GHSA-xmgf-hq76-4vx2","RUSTSEC-2026-0479"],"related":[],"kind":"vulnerability","state":"published","title":"rust-openssl: Out-of-bounds read in PEM password callback when user callback returns an oversized length","summary":"rust-openssl provides OpenSSL bindings for the Rust programming language.  From 0.9.0 to before 0.10.78, 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. This vulnerability is fixed in 0.10.78.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"rust-openssl provides OpenSSL bindings for the Rust programming language.  From 0.9.0 to before 0.10.78, 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. This vulnerability is fixed in 0.10.78.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"The `*_from_pem_callback` functions, such as `EcKey::private_key_from_pem_callback`, pass the length returned by the user's password callback to OpenSSL without checking it against the size of the buffer the callback was given. If the callback reports more bytes than the buffer holds, some OpenSSL versions read past the end of the buffer while deriving the decryption key. OpenSSL 3.x is not affected.\n\n0.10.78 treats a returned length larger than the buffer as a failed callback.","format":"markdown","source":"rustsec"},{"lang":"es","text":"rust-openssl proporciona enlaces de OpenSSL para el lenguaje de programación Rust. Desde la versión 0.9.0 hasta antes de la 0.10.78, las API *_from_pem_callback no validaban la longitud devuelta por la función de callback del usuario. Una función de callback de contraseña que devuelve un valor mayor que el búfer que se le proporcionó puede hacer que algunas versiones de OpenSSL sobrelean este búfer. OpenSSL 3.x no se ve afectado por esto. Esta vulnerabilidad está corregida en la versión 0.10.78.","source":"nvd"}],"published":"2026-04-19T12:00:00.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":1.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":1.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-125","CWE-1284"],"affected":[{"ranges":[{"version":">= 0.9.0, < 0.10.78","status":"affected"}],"vendor":"rust-openssl","product":"rust-openssl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.9.0","status":"affected","fixed":"0.10.78"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.9.0","status":"affected","fixed":"0.10.78"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"rustsec"},{"ranges":[{"status":"affected","introduced":"0.9.0","fixed":"0.10.78"}],"vendor":"rust-openssl_project","product":"rust-openssl","cpe":"cpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xmgf-hq76-4vx2","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41677","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rust-openssl/rust-openssl/pull/2605","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/rust-openssl/rust-openssl/commit/5af6895c907773699f37f583f409b862284062b1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rust-openssl/rust-openssl","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78","tags":["web"],"sources":["ghsa"]},{"url":"https://crates.io/crates/openssl","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0479.html","tags":["advisory"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-24T18:02:18.350Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41677","url":"https://www.cve.org/CVERecord?id=CVE-2026-41677","licence":"CVE Terms of Use","modified":"2026-04-24T18:02:27.756Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xmgf-hq76-4vx2","url":"https://github.com/advisories/GHSA-xmgf-hq76-4vx2","licence":"CC-BY-4.0","modified":"2026-11-10T14:10:37.732Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0479","url":"https://rustsec.org/advisories/RUSTSEC-2026-0479.html","licence":"CC0-1.0","modified":"2026-11-10T14:00:02.495Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41677","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41677","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.552Z","epss":{"score":0.00305,"percentile":0.2512,"date":"2026-12-01T12:00:22.000Z"}}