7.7

CVE-2026-66035: libssh2 Heap Buffer Overflow via ETM Cipher Negotiation

Analyzed
AliasesRHSA-2026:46955UBUNTU-CVE-2026-66035DEBIAN-CVE-2026-66035
Published 24-07-2026Last modified 28-07-2026

Vulnerability summary

CVE-2026-66035 is a high (CVSS 7.7) Heap-based Buffer Overflow vulnerability in libssh2. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 42.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.47%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 12

Timeline

  1. 24-07-2026
    PublishedVulnerability first disclosed.
  2. 28-07-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

11 scores · 8 sources · 2 versions

EPSS trend

Probability

0.47%

Chance of exploitation in the next 30 days

Percentile

42%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.47% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard3 products
  • libssh2All versions (No fix recorded)
  • libssh2-devAll versions (No fix recorded)
  • libssh2-docAll versions (No fix recorded)
Redhat3 products
  • libssh2< 0:1.11.1-10.3.hum1
  • libssh2-devel< 0:1.11.1-10.3.hum1
  • libssh2-docs< 0:1.11.1-10.3.hum1
Wolfi3 products
  • libssh2All versions (No fix recorded)
  • libssh2-devAll versions (No fix recorded)
  • libssh2-docAll versions (No fix recorded)
Alpine1 product
  • libssh2< 1.11.1-r3 | < 1.11.1-r4
Debian1 product
  • libssh2< 1.11.1-1+deb13u2 | < 1.11.1-5
Libssh21 product
Ubuntu1 product
  • libssh2All versions (No fix recorded) | < 1.11.0-4.1ubuntu0.24.04.4 | < 1.11.1-1ubuntu0.26.04.4

7 vendors · 13 products

References

17 links
Show all 17 references