{"answers":{"affected":"3 open source packages ship an affected version, including openssl.","exploited":"There is no known exploitation of CVE-2025-24898 in the wild and no public exploit code.","fix":"Upgrade openssl to 0.10.70 or later.","what":"CVE-2025-24898 is a medium-severity use after free vulnerability in sfackler rust-openssl, published on 3 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-24898 and fix it if it is affected.\n\nWhat it is: CVE-2025-24898 is a medium-severity use after free vulnerability in sfackler rust-openssl, published on 3 Feb 2025. 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-2025-24898 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openssl (crates.io): affected from 0.0.0-0; fixed in 0.10.70\n- openssl (crates.io): affected from 0.10.0; fixed in 0.10.70\n- openssl (crates.io): affected from 0.10.0; fixed in 0.10.70\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-2025-24898/ (Markdown: https://insights.sbomify.com/CVE-2025-24898/index.md)","id":"CVE-2025-24898","markdown":"https://insights.sbomify.com/CVE-2025-24898/index.md","name":"CVE-2025-24898","record":{"aliases":["ALSA-2025:7147","ALSA-2025:7160","ALSA-2025:7241","ALSA-2025:7313","ALSA-2025:7317","AZL-56427","DEBIAN-CVE-2025-24898","DLA-4049-1","GHSA-rpmj-rpgj-qmpm","OESA-2025-1120","OESA-2025-1121","OESA-2026-3710","OESA-2026-3711","OESA-2026-3712","RHSA-2025:7147","RHSA-2025:7160","RHSA-2025:7241","RHSA-2025:7313","RHSA-2025:7317","RLSA-2025:7160","RLSA-2025:7241","RLSA-2025:7313","RLSA-2025:7317","RUSTSEC-2025-0004","UBUNTU-CVE-2025-24898","openSUSE-SU-2025:14814-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust OpenSSL bindings","requires_auth":"none","summary":"A use-after-free in rust-openssl allows attackers to crash the server or leak memory contents via improper lifetime handling in ALPN selection.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"rust-openssl is a set of OpenSSL bindings for the Rust programming language. In affected versions `ssl::select_next_proto` can return a slice pointing into the `server` argument's buffer but with a lifetime bound to the `client` argument. In situations where the `sever` buffer's lifetime is shorter than the `client` buffer's, this can cause a use after free. This could cause the server to crash or to return arbitrary memory contents to the client. The crate`openssl` version 0.10.70 fixes the signature of `ssl::select_next_proto` to properly constrain the output buffer's lifetime to that of both input buffers. Users are advised to upgrade. In standard usage of `ssl::select_next_proto` in the callback passed to `SslContextBuilder::set_alpn_select_callback`, code is only affected if the `server` buffer is constructed *within* the callback.","ecosystems":["AlmaLinux:9","Red Hat:enterprise_linux:9::appstream","Rocky Linux:9","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 ssl::select_next_proto use after free","id":"CVE-2025-24898","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"use_after_free","year":"2025"},"n_packages":35,"n_references":3,"next":{"headline":"Disclosure of Sensitive User Information via API in reNgine","id":"CVE-2025-24899"},"packages":[{"ecosystem":"crates.io","fixed":["0.10.70"],"introduced":["0.0.0-0"],"last_affected":[],"package":"openssl","purl":"pkg:cargo/openssl","source":"RUSTSEC-2025-0004"},{"ecosystem":"crates.io","fixed":["0.10.70"],"introduced":["0.10.0"],"last_affected":[],"package":"openssl","purl":null,"source":"GHSA-rpmj-rpgj-qmpm"},{"ecosystem":"crates.io","fixed":["0.10.70"],"introduced":["0.10.0"],"last_affected":[],"package":"openssl","purl":"pkg:cargo/openssl","source":"GHSA-rpmj-rpgj-qmpm"},{"ecosystem":"AlmaLinux:9","fixed":["1.1.6-3.el9_6"],"introduced":["0"],"last_affected":[],"package":"bootc","purl":"pkg:rpm/almalinux/bootc","source":"ALSA-2025:7160"},{"ecosystem":"AlmaLinux:9","fixed":["0.2.27-3.el9"],"introduced":["0"],"last_affected":[],"package":"bootupd","purl":"pkg:rpm/almalinux/bootupd","source":"ALSA-2025:7241"},{"ecosystem":"AlmaLinux:9","fixed":["0.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"keylime-agent-rust","purl":"pkg:rpm/almalinux/keylime-agent-rust","source":"ALSA-2025:7313"},{"ecosystem":"AlmaLinux:9","fixed":["41.0.7-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography","purl":"pkg:rpm/almalinux/python3.12-cryptography","source":"ALSA-2025:7317"},{"ecosystem":"AlmaLinux:9","fixed":["2025.5-1.el9"],"introduced":["0"],"last_affected":[],"package":"rpm-ostree","purl":"pkg:rpm/almalinux/rpm-ostree","source":"ALSA-2025:7147"},{"ecosystem":"AlmaLinux:9","fixed":["2025.5-1.el9"],"introduced":["0"],"last_affected":[],"package":"rpm-ostree-libs","purl":"pkg:rpm/almalinux/rpm-ostree-libs","source":"ALSA-2025:7147"},{"ecosystem":"AlmaLinux:9","fixed":["1.1.6-3.el9_6"],"introduced":["0"],"last_affected":[],"package":"system-reinstall-bootc","purl":"pkg:rpm/almalinux/system-reinstall-bootc","source":"ALSA-2025:7160"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.1.6-3.el9_6"],"introduced":["0"],"last_affected":[],"package":"bootc","purl":"pkg:rpm/redhat/bootc","source":"RHSA-2025:7160"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.1.6-3.el9_6"],"introduced":["0"],"last_affected":[],"package":"bootc-debuginfo","purl":"pkg:rpm/redhat/bootc-debuginfo","source":"RHSA-2025:7160"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.1.6-3.el9_6"],"introduced":["0"],"last_affected":[],"package":"bootc-debugsource","purl":"pkg:rpm/redhat/bootc-debugsource","source":"RHSA-2025:7160"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.2.27-3.el9"],"introduced":["0"],"last_affected":[],"package":"bootupd","purl":"pkg:rpm/redhat/bootupd","source":"RHSA-2025:7241"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.2.27-3.el9"],"introduced":["0"],"last_affected":[],"package":"bootupd-debuginfo","purl":"pkg:rpm/redhat/bootupd-debuginfo","source":"RHSA-2025:7241"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"keylime-agent-rust","purl":"pkg:rpm/redhat/keylime-agent-rust","source":"RHSA-2025:7313"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"keylime-agent-rust-debuginfo","purl":"pkg:rpm/redhat/keylime-agent-rust-debuginfo","source":"RHSA-2025:7313"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"keylime-agent-rust-debugsource","purl":"pkg:rpm/redhat/keylime-agent-rust-debugsource","source":"RHSA-2025:7313"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:41.0.7-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography","purl":"pkg:rpm/redhat/python3.12-cryptography","source":"RHSA-2025:7317"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:41.0.7-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography-debuginfo","purl":"pkg:rpm/redhat/python3.12-cryptography-debuginfo","source":"RHSA-2025:7317"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:41.0.7-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography-debugsource","purl":"pkg:rpm/redhat/python3.12-cryptography-debugsource","source":"RHSA-2025:7317"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2025.5-1.el9"],"introduced":["0"],"last_affected":[],"package":"rpm-ostree","purl":"pkg:rpm/redhat/rpm-ostree","source":"RHSA-2025:7147"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2025.5-1.el9"],"introduced":["0"],"last_affected":[],"package":"rpm-ostree-debuginfo","purl":"pkg:rpm/redhat/rpm-ostree-debuginfo","source":"RHSA-2025:7147"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2025.5-1.el9"],"introduced":["0"],"last_affected":[],"package":"rpm-ostree-debugsource","purl":"pkg:rpm/redhat/rpm-ostree-debugsource","source":"RHSA-2025:7147"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2025.5-1.el9"],"introduced":["0"],"last_affected":[],"package":"rpm-ostree-libs","purl":"pkg:rpm/redhat/rpm-ostree-libs","source":"RHSA-2025:7147"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2025.5-1.el9"],"introduced":["0"],"last_affected":[],"package":"rpm-ostree-libs-debuginfo","purl":"pkg:rpm/redhat/rpm-ostree-libs-debuginfo","source":"RHSA-2025:7147"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.2.27-3.el9"],"introduced":["0"],"last_affected":[],"package":"rust-bootupd","purl":"pkg:rpm/redhat/rust-bootupd","source":"RHSA-2025:7241"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.2.27-3.el9"],"introduced":["0"],"last_affected":[],"package":"rust-bootupd-debugsource","purl":"pkg:rpm/redhat/rust-bootupd-debugsource","source":"RHSA-2025:7241"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.1.6-3.el9_6"],"introduced":["0"],"last_affected":[],"package":"system-reinstall-bootc","purl":"pkg:rpm/redhat/system-reinstall-bootc","source":"RHSA-2025:7160"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.1.6-3.el9_6"],"introduced":["0"],"last_affected":[],"package":"system-reinstall-bootc-debuginfo","purl":"pkg:rpm/redhat/system-reinstall-bootc-debuginfo","source":"RHSA-2025:7160"},{"ecosystem":"Rocky Linux:9","fixed":["0:1.1.6-3.el9_6"],"introduced":["0"],"last_affected":[],"package":"bootc","purl":"pkg:rpm/rocky-linux/bootc?distro=rocky-linux-9-6\u0026epoch=0","source":"RLSA-2025:7160"},{"ecosystem":"Rocky Linux:9","fixed":["0:0.2.2-2.el9"],"introduced":["0"],"last_affected":[],"package":"keylime-agent-rust","purl":"pkg:rpm/rocky-linux/keylime-agent-rust?distro=rocky-linux-9-6\u0026epoch=0","source":"RLSA-2025:7313"},{"ecosystem":"Rocky Linux:9","fixed":["0:41.0.7-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3.12-cryptography","purl":"pkg:rpm/rocky-linux/python3.12-cryptography?distro=rocky-linux-9-6\u0026epoch=0","source":"RLSA-2025:7317"},{"ecosystem":"Rocky Linux:9","fixed":["0:0.2.27-3.el9"],"introduced":["0"],"last_affected":[],"package":"rust-bootupd","purl":"pkg:rpm/rocky-linux/rust-bootupd?distro=rocky-linux-9-6\u0026epoch=0","source":"RLSA-2025:7241"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.5.0-2.1"],"introduced":["0"],"last_affected":[],"package":"obs-service-cargo","purl":"pkg:rpm/opensuse/obs-service-cargo\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14814-1"}],"prev":{"headline":"Misskey CSRF vulnerability due to insecure configuration of authentication cookie attributes","id":"CVE-2025-24897"},"products":["rust-openssl"],"published":"2025-02-03","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-12","vendors":["sfackler"]},"summary":"A use-after-free in rust-openssl allows attackers to crash the server or leak memory contents via improper lifetime handling in ALPN selection.","url":"https://insights.sbomify.com/CVE-2025-24898/"}