Red Hat Enterprise Linux 10: Out-of-bounds Read
CVE-2025-5318 is a high-severity out-of-bounds read vulnerability in Red Hat Enterprise Linux 10 from Red Hat, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 1.89% chance of exploitation within 30 days, higher than 80% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Libssh to 0.11.2 or a later version.
- Read the advisory on libssh.org for workarounds and exact fixed builds.
Affected products and versions
Version data comes from the organisation that assigned the CVE; 3 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 5.4 | Medium | CNA (redhat.com) |
| CVSS 3.1 | 8.1 | High | NVD |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
How developers prevent this class of flaw
- Use a language that provides appropriate memory abstractions.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Third-party and government advisories
- access.redhat.com/errata/RHSA-2025:18231Third Party Advisory
- access.redhat.com/errata/RHSA-2025:18275Third Party Advisory
- access.redhat.com/errata/RHSA-2025:18286Third Party Advisory
- access.redhat.com/errata/RHSA-2025:19012Third Party Advisory
- access.redhat.com/errata/RHSA-2025:19098Third Party Advisory
- access.redhat.com/errata/RHSA-2025:19101Third Party Advisory
- access.redhat.com/security/cve/CVE-2025-5318Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2369131Issue Tracking, Third Party Advisory
Other references
- access.redhat.com/errata/RHSA-2025:19295
- access.redhat.com/errata/RHSA-2025:19300
- access.redhat.com/errata/RHSA-2025:19313
- access.redhat.com/errata/RHSA-2025:19400
- access.redhat.com/errata/RHSA-2025:19401
- access.redhat.com/errata/RHSA-2025:19470
- access.redhat.com/errata/RHSA-2025:19472
- access.redhat.com/errata/RHSA-2025:19807
- access.redhat.com/errata/RHSA-2025:19864
- access.redhat.com/errata/RHSA-2025:20943
- access.redhat.com/errata/RHSA-2025:21013
- access.redhat.com/errata/RHSA-2025:21329
- access.redhat.com/errata/RHSA-2025:21829
- access.redhat.com/errata/RHSA-2025:22275
- access.redhat.com/errata/RHSA-2025:23078
Other vulnerabilities in Red Hat Enterprise Linux 10
- 8.8 High severity
- 7.5 High severity
- 7.5 High severity
- 7.9 High severity
- 7.3 High severity
- 7.5 High severity
Recent Out-of-bounds Read vulnerabilities
- 9.1 Critical severity
- 7.5 High severity
- 7.1 High severity
- 7.1 High severity
- 7.1 High severity
- 7.1 High severity
Spotted an error? Tell us.