{"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-41681 in the wild and no public exploit code.","fix":"Upgrade openssl to 0.10.78 or later.","what":"CVE-2026-41681 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-41681 and fix it if it is affected.\n\nWhat it is: CVE-2026-41681 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-41681 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openssl (crates.io): affected from 0.10.39; fixed in 0.10.78\n- openssl (crates.io): affected from 0.10.39; 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-41681/ (Markdown: https://insights.sbomify.com/CVE-2026-41681/index.md)","id":"CVE-2026-41681","markdown":"https://insights.sbomify.com/CVE-2026-41681/index.md","name":"CVE-2026-41681","record":{"aliases":["AZL-83624","DEBIAN-CVE-2026-41681","GHSA-ghm9-cr32-g9qj","MINI-3vcv-5364-gfg5","MINI-4649-5mpw-6f4q","MINI-5h45-h27x-wp6r","MINI-763g-5jcc-w2fw","MINI-ch9w-85v4-35xx","MINI-ghrm-7fj2-c26f","MINI-gj76-h2g8-5xqc","MINI-wgv7-mp9h-7f24","UBUNTU-CVE-2026-41681"],"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 stack corruption via buffer overflow in digest_final, potentially leading to code execution or crashes in Rust applications using rust-openssl.","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":8.1,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"rust-openssl provides OpenSSL bindings for the Rust programming language.  From 0.10.39 to before 0.10.78, EVP_DigestFinal() always writes EVP_MD_CTX_size(ctx) to the out buffer. If out is smaller than that, MdCtxRef::digest_final() writes past its end, usually corrupting the stack. This is reachable from safe Rust. This vulnerability is fixed in 0.10.78.","ecosystems":["crates.io"],"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: MdCtxRef::digest_final() writes past caller buffer with no length check","id":"CVE-2026-41681","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"pupnp: Port truncation via atoi() cast in parse_uri() allows SSRF port confusion","id":"CVE-2026-41682"},"packages":[{"ecosystem":"crates.io","fixed":["0.10.78"],"introduced":["0.10.39"],"last_affected":[],"package":"openssl","purl":null,"source":"GHSA-ghm9-cr32-g9qj"},{"ecosystem":"crates.io","fixed":["0.10.78"],"introduced":["0.10.39"],"last_affected":[],"package":"openssl","purl":"pkg:cargo/openssl","source":"GHSA-ghm9-cr32-g9qj"}],"prev":{"headline":"Marked: OOM Denial of Service via Infinite Recursion in marked Tokenizer","id":"CVE-2026-41680"},"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":"Improper Certificate Validation in openssl","id":"CVE-2016-10931","kev_date_added":null,"published":"2019-08-26"},{"cvss_score":7.2,"headline":"rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1","id":"CVE-2026-41676","kev_date_added":null,"published":"2026-04-24"},{"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":"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 stack corruption via buffer overflow in digest_final, potentially leading to code execution or crashes in Rust applications using rust-openssl.","url":"https://insights.sbomify.com/CVE-2026-41681/"}