{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2025-5351 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2025-5351 is a medium-severity use after free vulnerability in Redhat Enterprise Linux, published on 4 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-5351 and fix it if it is affected.\n\nWhat it is: CVE-2025-5351 is a medium-severity use after free vulnerability in Redhat Enterprise Linux, published on 4 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-5351 in the wild and no public exploit code.\n\nAffected product: Redhat Enterprise Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-5351/ (Markdown: https://insights.sbomify.com/CVE-2025-5351/index.md)","id":"CVE-2025-5351","markdown":"https://insights.sbomify.com/CVE-2025-5351/index.md","name":"CVE-2025-5351","record":{"aliases":["AZL-64653","AZL-64659","BELL-CVE-2025-5351","DEBIAN-CVE-2025-5351","GHSA-pfqf-mv4p-9j4r","JLSEC-2025-98","MINI-qx37-856f-g4jv","UBUNTU-CVE-2025-5351"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"libssh library","requires_auth":"low_privilege","summary":"A double free vulnerability in libssh key export functions can cause heap corruption and application instability, leading to denial of service.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"libssh","vendor":"libssh"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"openshift_container_platform","vendor":"redhat"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-415","name":"Double Free"}],"description":"A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.","ecosystems":[],"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":"Libssh: double free vulnerability in libssh key export functions","id":"CVE-2025-5351","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux","redhat:openshift_container_platform"],"type":"use_after_free","year":"2025"},"n_packages":0,"n_references":3,"next":{"headline":"Environment Variable XSS in Analytics Component in lunary-ai/lunary","id":"CVE-2025-5352"},"packages":[],"prev":{"headline":"SSRF and Reflected XSS Vulnerability in Deprecated Try-It Feature of Multiple WSO2 Products","id":"CVE-2025-5350"},"products":["Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9","Red Hat OpenShift Container Platform 4","libssh"],"published":"2025-07-04","related":[{"cvss_score":8.8,"headline":"Libssh: libssh: authentication bypass via missing gssapi principal check","id":"CVE-2026-59851","kev_date_added":null,"published":"2026-07-21"},{"cvss_score":8.1,"headline":"Libssh: invalid return code for chacha20 poly1305 with openssl backend","id":"CVE-2025-5987","kev_date_added":null,"published":"2025-07-07"},{"cvss_score":7.8,"headline":"Libssh: libssh: insecure default configuration leads to local man-in-the-middle attacks on windows","id":"CVE-2025-14821","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2012-4560","kev_date_added":null,"published":"2012-11-30"},{"cvss_score":7.5,"headline":"Integer overflow in n/a","id":"CVE-2012-4562","kev_date_added":null,"published":"2012-11-30"},{"cvss_score":7.5,"headline":"Use after free in n/a","id":"CVE-2012-6063","kev_date_added":null,"published":"2012-11-30"},{"cvss_score":6.9,"headline":"libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds","id":"CVE-2026-3731","kev_date_added":null,"published":"2026-03-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-01","vendors":["Red Hat","libssh"]},"summary":"A double free vulnerability in libssh key export functions can cause heap corruption and application instability, leading to denial of service.","url":"https://insights.sbomify.com/CVE-2025-5351/"}