CVE-2025-5449
July 25, 2025
In libssh 0.11.0 before 0.11.2 malicious clients can send invalid SFTP packets with payload size field set to
value 0x7ffffffc (2GB - 3B). This value incorrectly passes the validity check
on 32b platforms in the function sftp_decode_channel_data_to_packet().
This is caused by integer overflow in the packet length check. But the wrong
buffer bounds are not used for accessing beyond the buffer bounds as the
following call to `ssh_buffer_add_data()` will already fail to allocate buffer
of size > 256MB, leading to the self-DoS of the sftp server process.
This is exploitable for sftp servers running on on 32b platforms only.
Affected Packages
https://git.libssh.org/projects/libssh.git (SCM_GIT):
Affected version(s) >=libssh-0.11.0 <libssh-0.11.2Fix Suggestion:
Update to version libssh-0.11.2Related ResourcesĀ (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Exploit Maturity
UNPROVEN
Weakness Type (CWE)
Integer Overflow or Wraparound
EPSS
Base Score:
0.19