{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2025-5318 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2025-5318 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 24 Jun 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-5318 and fix it if it is affected.\n\nWhat it is: CVE-2025-5318 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 24 Jun 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-5318 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-5318/ (Markdown: https://insights.sbomify.com/CVE-2025-5318/index.md)","id":"CVE-2025-5318","markdown":"https://insights.sbomify.com/CVE-2025-5318/index.md","name":"CVE-2025-5318","record":{"aliases":["ALSA-2025:18231","ALSA-2025:18275","ALSA-2025:18286","ALSA-2025:20943","ALSA-2025:21013","AZL-64346","AZL-64358","BELL-CVE-2025-5318","CLSA-2025-1757499160","CLSA-2025-1757662564","CLSA-2025-1757691233","CLSA-2025-1758705355","CLSA-2025-1759157346","CLSA-2025-1759248061","CLSA-2025-1759248327","DEBIAN-CVE-2025-5318","GHSA-98qw-prqm-9f4p","JLSEC-2025-96","MINI-v466-42qh-99qf","OESA-2025-1707","OESA-2025-1804","OESA-2025-1805","OESA-2025-1806","OESA-2025-1807","OESA-2025-1808","RHSA-2025:18231","RHSA-2025:18275","RHSA-2025:18286","RHSA-2025:19012","RHSA-2025:19098","RHSA-2025:19101","RHSA-2025:19400","RHSA-2025:19401","RHSA-2025:19470","RHSA-2025:19472","RHSA-2025:20943","RHSA-2025:21013","RLSA-2025:18231","RLSA-2025:18275","RLSA-2025:18286","RLSA-2025:20943","UBUNTU-CVE-2025-5318"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"libssh library","requires_auth":"low_privilege","summary":"An authenticated remote attacker can trigger an out-of-bounds read in libssh's sftp_handle function, potentially exposing sensitive memory or causing service disruption.","user_interaction":"not_required","vuln_class":"information_disclosure"},"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":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"A flaw was found in the libssh library in versions less than 0.11.2. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.2::baseos","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.4::baseos","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.6::baseos","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_e4s:9.0::baseos","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_e4s:9.2::baseos","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.4::baseos","Red Hat:rhel_eus_long_life:8.4::appstream","Red Hat:rhel_eus_long_life:8.4::baseos","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.6::baseos","Red Hat:rhel_tus:8.8::appstream","Red Hat:rhel_tus:8.8::baseos","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9"],"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: out-of-bounds read in sftp_handle()","id":"CVE-2025-5318","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux","redhat:openshift_container_platform"],"type":"information_disclosure","year":"2025"},"n_packages":125,"n_references":30,"next":{"headline":"SQLi in Emit Informatics' DIGITA Efficiency Management System","id":"CVE-2025-5319"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["0.11.1-4.el10_1"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/almalinux/libssh","source":"ALSA-2025:21013"},{"ecosystem":"AlmaLinux:10","fixed":["0.11.1-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/almalinux/libssh-config","source":"ALSA-2025:18231"},{"ecosystem":"AlmaLinux:10","fixed":["0.11.1-4.el10_1"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/almalinux/libssh-config","source":"ALSA-2025:21013"},{"ecosystem":"AlmaLinux:10","fixed":["0.11.1-4.el10_1"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/almalinux/libssh-devel","source":"ALSA-2025:21013"},{"ecosystem":"AlmaLinux:8","fixed":["0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/almalinux/libssh","source":"ALSA-2025:18286"},{"ecosystem":"AlmaLinux:8","fixed":["0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/almalinux/libssh-config","source":"ALSA-2025:18286"},{"ecosystem":"AlmaLinux:8","fixed":["0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/almalinux/libssh-devel","source":"ALSA-2025:18286"},{"ecosystem":"AlmaLinux:9","fixed":["0.10.4-15.el9_6"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/almalinux/libssh","source":"ALSA-2025:18275"},{"ecosystem":"AlmaLinux:9","fixed":["0.10.4-15.el9_7"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/almalinux/libssh","source":"ALSA-2025:20943"},{"ecosystem":"AlmaLinux:9","fixed":["0.10.4-15.el9_6"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/almalinux/libssh-config","source":"ALSA-2025:18275"},{"ecosystem":"AlmaLinux:9","fixed":["0.10.4-15.el9_7"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/almalinux/libssh-config","source":"ALSA-2025:20943"},{"ecosystem":"AlmaLinux:9","fixed":["0.10.4-15.el9_6"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/almalinux/libssh-devel","source":"ALSA-2025:18275"},{"ecosystem":"AlmaLinux:9","fixed":["0.10.4-15.el9_7"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/almalinux/libssh-devel","source":"ALSA-2025:20943"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:0.11.1-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/redhat/libssh","source":"RHSA-2025:18231"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:0.11.1-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/redhat/libssh-config","source":"RHSA-2025:18231"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:0.11.1-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"libssh-debuginfo","purl":"pkg:rpm/redhat/libssh-debuginfo","source":"RHSA-2025:18231"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:0.11.1-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"libssh-debugsource","purl":"pkg:rpm/redhat/libssh-debugsource","source":"RHSA-2025:18231"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:0.11.1-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/redhat/libssh-devel","source":"RHSA-2025:18231"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:0.11.1-4.el10_1"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/redhat/libssh","source":"RHSA-2025:21013"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:0.11.1-4.el10_1"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/redhat/libssh-config","source":"RHSA-2025:21013"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:0.11.1-4.el10_1"],"introduced":["0"],"last_affected":[],"package":"libssh-debuginfo","purl":"pkg:rpm/redhat/libssh-debuginfo","source":"RHSA-2025:21013"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:0.11.1-4.el10_1"],"introduced":["0"],"last_affected":[],"package":"libssh-debugsource","purl":"pkg:rpm/redhat/libssh-debugsource","source":"RHSA-2025:21013"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:0.11.1-4.el10_1"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/redhat/libssh-devel","source":"RHSA-2025:21013"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh-debuginfo","purl":"pkg:rpm/redhat/libssh-debuginfo","source":"RHSA-2025:18286"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh-debugsource","purl":"pkg:rpm/redhat/libssh-debugsource","source":"RHSA-2025:18286"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/redhat/libssh-devel","source":"RHSA-2025:18286"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/redhat/libssh","source":"RHSA-2025:18286"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/redhat/libssh-config","source":"RHSA-2025:18286"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh-debuginfo","purl":"pkg:rpm/redhat/libssh-debuginfo","source":"RHSA-2025:18286"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:0.9.6-15.el8_10"],"introduced":["0"],"last_affected":[],"package":"libssh-debugsource","purl":"pkg:rpm/redhat/libssh-debugsource","source":"RHSA-2025:18286"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.10.4-15.el9_6"],"introduced":["0"],"last_affected":[],"package":"libssh-debuginfo","purl":"pkg:rpm/redhat/libssh-debuginfo","source":"RHSA-2025:18275"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.10.4-15.el9_7"],"introduced":["0"],"last_affected":[],"package":"libssh-debuginfo","purl":"pkg:rpm/redhat/libssh-debuginfo","source":"RHSA-2025:20943"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.10.4-15.el9_6"],"introduced":["0"],"last_affected":[],"package":"libssh-debugsource","purl":"pkg:rpm/redhat/libssh-debugsource","source":"RHSA-2025:18275"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.10.4-15.el9_7"],"introduced":["0"],"last_affected":[],"package":"libssh-debugsource","purl":"pkg:rpm/redhat/libssh-debugsource","source":"RHSA-2025:20943"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.10.4-15.el9_6"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/redhat/libssh-devel","source":"RHSA-2025:18275"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.10.4-15.el9_7"],"introduced":["0"],"last_affected":[],"package":"libssh-devel","purl":"pkg:rpm/redhat/libssh-devel","source":"RHSA-2025:20943"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:0.10.4-15.el9_6"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/redhat/libssh","source":"RHSA-2025:18275"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:0.10.4-15.el9_7"],"introduced":["0"],"last_affected":[],"package":"libssh","purl":"pkg:rpm/redhat/libssh","source":"RHSA-2025:20943"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:0.10.4-15.el9_6"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/redhat/libssh-config","source":"RHSA-2025:18275"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:0.10.4-15.el9_7"],"introduced":["0"],"last_affected":[],"package":"libssh-config","purl":"pkg:rpm/redhat/libssh-config","source":"RHSA-2025:20943"}],"prev":{"headline":"Improper access restriction to critical folder in Bitdefender Endpoint Security Tools for Mac","id":"CVE-2025-5317"},"products":["Red Hat AI Inference Server 3.2","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 8.2 Advanced Update Support","Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On","Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.6 Telecommunications Update Service","Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions","Red Hat Enterprise Linux 8.8 Telecommunications Update Service","Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.4 Extended Update Support","Red Hat OpenShift Container Platform 4","Red Hat OpenShift Container Platform 4.12","Red Hat OpenShift Container Platform 4.13","Red Hat OpenShift Container Platform 4.14","Red Hat OpenShift Container Platform 4.15","Red Hat OpenShift Container Platform 4.16","Red Hat OpenShift Container Platform 4.17","Red Hat OpenShift Container Platform 4.18","Red Hat OpenShift Container Platform 4.19","Red Hat OpenShift Container Platform 4.20","Red Hat OpenShift distributed tracing 3.7.0"],"published":"2025-06-24","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":"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":"Red Hat","prefix":"RHSA"},{"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":"total"},"state":"PUBLISHED","updated":"2026-09-08","vendors":["Red Hat"]},"summary":"An authenticated remote attacker can trigger an out-of-bounds read in libssh's sftp_handle function, potentially exposing sensitive memory or causing service disruption.","url":"https://insights.sbomify.com/CVE-2025-5318/"}