{"answers":{"affected":"2 open source packages ship an affected version, including openssl. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-41676 in the wild and no public exploit code.","fix":"Upgrade openssl to 0.10.78 or later.","what":"CVE-2026-41676 is a high-severity memory corruption vulnerability in rust-openssl, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41676 and fix it if it is affected.\n\nWhat it is: CVE-2026-41676 is a high-severity memory corruption vulnerability in rust-openssl, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-41676 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openssl (crates.io): affected from 0.9.27; fixed in 0.10.78\n- openssl (crates.io): affected from 0.9.27; fixed in 0.10.78\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-41676/ (Markdown: https://insights.sbomify.com/CVE-2026-41676/index.md)","id":"CVE-2026-41676","markdown":"https://insights.sbomify.com/CVE-2026-41676/index.md","name":"CVE-2026-41676","record":{"aliases":["AZL-83618","DEBIAN-CVE-2026-41676","GHSA-pqf5-4pqq-29f5","MINI-5j43-74cc-qv3m","MINI-7jfp-pm77-w73v","MINI-933m-gpf6-qpwc","MINI-c32g-c38m-cjv9","MINI-c73x-f4gh-jg54","MINI-p9vr-4w3j-72c5","MINI-vhcm-cr85-prm7","MINI-w3p5-fpx2-rv6g","SUSE-SU-2026:22737-1","SUSE-SU-2026:22910-1","SUSE-SU-2026:2777-1","SUSE-SU-2026:3474-1","SUSE-SU-2026:3475-1","UBUNTU-CVE-2026-41676","openSUSE-SU-2026:11194-1","openSUSE-SU-2026:11205-1","openSUSE-SU-2026:11206-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust OpenSSL bindings","requires_auth":"none","summary":"Attackers can trigger heap or stack overflows via buffer mismanagement in key derivation, potentially leading to code execution or crashes.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rust-openssl","vendor":"rust-openssl_project"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"}],"description":"rust-openssl provides OpenSSL bindings for the Rust programming language.  From 0.9.27 to before 0.10.78, Deriver::derive (and PkeyCtxRef::derive) sets len = buf.len() and passes it as the in/out length to EVP_PKEY_derive, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519, X448, DH and HKDF-extract ignore the incoming *keylen, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL. This vulnerability is fixed in 0.10.78.","ecosystems":["SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Micro 6.0","SUSE:Linux Micro 6.1","crates.io","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1","id":"CVE-2026-41676","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":12,"n_references":1,"next":{"headline":"rust-openssl: Out-of-bounds read in PEM password callback when user callback returns an oversized length","id":"CVE-2026-41677"},"packages":[{"ecosystem":"crates.io","fixed":["0.10.78"],"introduced":["0.9.27"],"last_affected":[],"package":"openssl","purl":null,"source":"GHSA-pqf5-4pqq-29f5"},{"ecosystem":"crates.io","fixed":["0.10.78"],"introduced":["0.9.27"],"last_affected":[],"package":"openssl","purl":"pkg:cargo/openssl","source":"GHSA-pqf5-4pqq-29f5"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["2.31.0-150400.7.34.1"],"introduced":["0"],"last_affected":[],"package":"s390-tools","purl":"pkg:rpm/suse/s390-tools\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2026:3474-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["2.31.0-150400.7.34.1"],"introduced":["0"],"last_affected":[],"package":"s390-tools","purl":"pkg:rpm/suse/s390-tools\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2026:3474-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["2.31.0-150500.9.32.1"],"introduced":["0"],"last_affected":[],"package":"s390-tools","purl":"pkg:rpm/suse/s390-tools\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2026:3475-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","fixed":["2.8.4-150700.6.4.4"],"introduced":["0"],"last_affected":[],"package":"cryptsetup","purl":"pkg:rpm/suse/cryptsetup\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP7","source":"SUSE-SU-2026:2777-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","fixed":["2.41.0-150700.4.26.2"],"introduced":["0"],"last_affected":[],"package":"s390-tools","purl":"pkg:rpm/suse/s390-tools\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP7","source":"SUSE-SU-2026:2777-1"},{"ecosystem":"SUSE:Linux Micro 6.0","fixed":["2.31.0-4.1"],"introduced":["0"],"last_affected":[],"package":"s390-tools","purl":"pkg:rpm/suse/s390-tools\u0026distro=SUSE%20Linux%20Micro%206.0","source":"SUSE-SU-2026:22737-1"},{"ecosystem":"SUSE:Linux Micro 6.1","fixed":["2.31.0-slfo.1.1_4.1"],"introduced":["0"],"last_affected":[],"package":"s390-tools","purl":"pkg:rpm/suse/s390-tools\u0026distro=SUSE%20Linux%20Micro%206.1","source":"SUSE-SU-2026:22910-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.28.2~0-4.1"],"introduced":["0"],"last_affected":[],"package":"rustup","purl":"pkg:rpm/opensuse/rustup\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11205-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.16.0~0-2.1"],"introduced":["0"],"last_affected":[],"package":"sccache","purl":"pkg:rpm/opensuse/sccache\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11206-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1+git20260706.f9f4faf-1.1"],"introduced":["0"],"last_affected":[],"package":"sdbootutil","purl":"pkg:rpm/opensuse/sdbootutil\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11194-1"}],"prev":{"headline":"xmldom: XML node injection through unvalidated processing instruction serialization","id":"CVE-2026-41675"},"products":["rust-openssl"],"published":"2026-04-24","related":[{"cvss_score":9.8,"headline":"Use after free in openssl","id":"CVE-2018-20997","kev_date_added":null,"published":"2019-08-26"},{"cvss_score":8.3,"headline":"rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer","id":"CVE-2026-41898","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":8.1,"headline":"rust-openssl: MdCtxRef::digest_final() writes past caller buffer with no length check","id":"CVE-2026-41681","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":8.1,"headline":"Improper Certificate Validation in openssl","id":"CVE-2016-10931","kev_date_added":null,"published":"2019-08-26"},{"cvss_score":7.2,"headline":"rust-openssl: Incorrect bounds assertion in aes key wrap","id":"CVE-2026-41678","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":1.7,"headline":"rust-openssl: Out-of-bounds read in PEM password callback when user callback returns an oversized length","id":"CVE-2026-41677","kev_date_added":null,"published":"2026-04-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-24","vendors":["rust-openssl"]},"summary":"Attackers can trigger heap or stack overflows via buffer mismanagement in key derivation, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/CVE-2026-41676/"}