# CVE-2025-5449: Libssh: integer overflow in libssh sftp server packet length validation leading to denial of service

- Severity: Medium 6.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 65% of CVEs (2026-12-01)
- Published: 2025-07-25T17:19:39.345Z
- Modified: 2026-11-24T21:17:27.653Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A flaw was found in the SFTP server message decoding logic of libssh. The issue occurs due to an incorrect packet length check that allows an integer overflow when handling large payload sizes on 32-bit systems. This issue leads to failed memory allocation and causes the server process to crash, resulting in a denial of service.

(As written by CVE List.)

## Affected

- libssh: from 0.11.0 up to 0.11.1
- libssh2: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- libssh libssh: 0.11.0; 0.11.1

## Every score

- redhat: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2025-5449> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2369705> (issue-tracking, third-party-advisory)
- <https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=261612179f740bc62ba363d98b3bd5e5573a811f> (patch)
- <https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=3443aec90188d6aab9282afc80a81df5ab72c4da> (patch)
- <https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=5504ff40515439a5fecbb17da7483000c4d12eb7> (patch)
- <https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=78485f446af9b30e37eb8f177b81940710d54496> (patch)
- <https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=f79ec51b7fd519dbc5737a7ba826e3ed093f6ceb> (patch)
- <https://www.libssh.org/security/advisories/CVE-2025-5449.txt> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-5449](https://www.cve.org/CVERecord?id=CVE-2025-5449), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2025-5449](https://nvd.nist.gov/vuln/detail/CVE-2025-5449), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2025-5449 · Whole record: https://cve.day/CVE-2025-5449.json · Rebuilt by cve.day 2026-11-25T22:59:01.742Z
