← All Advisories
Reported from OT-Advisories.com as of

A Malicious SSH Server Can Double-Free libssh2's SFTP Response Buffer During sftp_open, Enabling Heap Corruption on glibc Clients

Last refreshed2026-11-19

Status: UPDATED  |  Advisory ID: CVE-2026-66032

Key Details

CVECVE-2026-66032
CVSS Score / Version
8.8 (High) / CVSS v3.1
Updated2026-11-10
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is network; attack complexity is low; privileges required is none; user interaction is required; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
see table below
Classified as
CWE-415 (Double Free)
Exploitation prediction (EPSS)
0.58% probability of exploitation in the next 30 days (49% percentile) -- FIRST.org's EPSS model.

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
libssh2libssh2
SubsystemsControllers & Field I/O
SectorsMultiple

What to Know

libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the sftp_open() function in src/sftp.c that allows a malicious SSH server to corrupt the heap of any authenticated client opening an SFTP session. When a server responds to SSH_FXP_OPEN with SSH_FXP_STATUS containing FX_OK, the response data buffer is freed, and if a subsequent sftp_packet_require() call returns a specific error such as LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED, the same pointer is freed a second time, enabling tcache dup conditions on glibc systems that allow overlapping allocations and function pointer overwrites. (NVD)

What to Do

Currently no fix is available. See further recommendations from section Mitigations.
Source: Siemens SSA-457936

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-66032
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-66032
Vendor advisoryhttps://cert-portal.siemens.com/productcert/html/ssa-457936.html
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.