Pre-authentication heap buffer overflow in libssh2 via Encrypt-then-MAC
libssh2 libssh2
At a glance
libssh2 through 1.11.1, fixed in commit 42e33d8, contains a pre-authentication heap buffer overflow vulnerability that allows a malicious SSH server to corrupt heap metadata in any connecting client by sending a packet with a packet_length smaller than the cipher's block size during Encrypt-then-MAC cipher negotiation. In the fullpacket() function in src/transport.c, the ETM path allocates a buffer of packet_length bytes but copies blocksize minus one bytes via memcpy, causing an overflow that on 32-bit glibc writes attacker-controlled bytes into an adjacent chunk's SIZE field, enabling tcache bin confusion, overlapping live objects, and function pointer overwrite during the session handshake before authentication.
Source description · CVE List / CNA
System impact
CVSS summary v4.0
- Published:
- Updated:
- EPSS:
- 0.551%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:libssh2 | libssh2 | Affected versions:≤ 1.11.1Show full version range for libssh2
|
| Vendor:Red Hat | Red Hat Enterprise Linux 6 | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Hardened Images | Affected versions:Source does not specify a version range |
| Vendor:SUSE | SUSE Linux Enterprise Desktop 15 SP7 | Affected versions:Source does not specify a version range |
| Vendor:SUSE | SUSE Linux Enterprise High Performance Computing 15 SP1 | Affected versions:Source does not specify a version range |
| Vendor:SUSE | SUSE Linux Enterprise High Performance Computing 15 SP2 | Affected versions:Source does not specify a version range |
| Vendor:SUSE | SUSE Linux Enterprise High Performance Computing 15 SP3 | Affected versions:Source does not specify a version range |
| Vendor:SUSE | SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected versions:Source does not specify a version range |
| Vendor:SUSE | SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected versions:Source does not specify a version range |
| Vendor:SUSE | SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected versions:Source does not specify a version range |
1–10 of 33 · Page 1 of 4
CVSS scores and metrics7
VulnCheck · CVE List / CNA (cna)Primary7.7 / 10HighCVSS 4.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Passive
- Attack requirements
- None
- Subsequent confidentiality
- None
- Subsequent integrity
- None
- Subsequent availability
- None
Source vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N[email protected] · NVD (Secondary)7.7 / 10HighCVSS 4.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Passive
- Attack requirements
- None
- Subsequent confidentiality
- None
- Subsequent integrity
- None
- Subsequent availability
- None
Source vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XCVE-2026-66035 · OSV (source-vector)7.7 / 10HighCVSS 4.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Passive
- Attack requirements
- None
- Subsequent confidentiality
- None
- Subsequent integrity
- None
- Subsequent availability
- None
Source vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck · CVE List / CNA (cna)7.5 / 10HighCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H[email protected] · NVD (Secondary)7.5 / 10HighCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HRed Hat · Red Hat VEX (adp)5.3 / 10MediumCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:HSUSE · SUSE VEX (adp)7.5 / 10HighCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences