7.7

CVE-2026-66035: libssh2 Heap-based Buffer Overflow

CVSS: 7.7v4.0HighAnalyzed
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 39.4% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
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 listedIn no KEV catalog
RansomwareNone recordedNo known 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

10 scores · 7 sources · 2 versions

EPSS trend

Probability

0.47%

Chance of exploitation in the next 30 days

Percentile

39%

Versus all other CVEs

30-day change

0.00 pp

From 0.47% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.47%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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)
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

6 vendors · 12 products

References

16 links
Show all 16 references