CVE-2019-3863 is an out-of-bounds write in libssh2 before 1.8.1: a malicious SSH server sends keyboard-interactive responses whose total length overflows an unsigned char index, and the client copies memory past its buffer. NVD scores it 8.8 and Red Hat 7.5. Siemens lists it for the S7-1500 CPU 1518 MFP firmware before V3.1.5.
Vulnerability summary
CVSS base score
8.8
High severity
EPSS score (FIRST)
3.5%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2019-3863 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| libssh2 | cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:* | 0.1 up to and including 1.8.0 (fixed in 1.8.1, released 2019-03-18) |
| Debian libssh2 package | pkg:deb/debian/libssh2 | Fixed in 1.4.3-4.1+deb8u2 (jessie, DLA-1730-1), 1.7.0-1+deb9u1 (stretch, DSA-4431-1), 1.8.0-2.1 (unstable) (Debian security tracker) |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, CPU 1518F-4 PN/DP MFP and SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (GNU/Linux subsystem) | — | V3.1.0 to before V3.1.5; update to V3.1.5 or later (Siemens SSA-398330) |
What does this mean for affected devices?
CVE-2019-3863 is an integer overflow that leads to an out-of-bounds write in libssh2's keyboard-interactive authentication code. The libssh2 advisory says a server "could send a multiple keyboard interactive response messages whose total length are greater than unsigned char max characters", and that this value "is used as an index to copy memory", so the client writes past its buffer. All versions from 0.1 up to and including 1.8.0 are affected; libssh2 1.8.1, released on 2019-03-18, checks that the index plus the message length fits the buffer before copying. Chris Coulson of Canonical reported it on 2018-12-03.
Why do NVD, Red Hat and Siemens score it differently?
NVD's Primary score is 8.8, CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, with CWE-787 (NVD). Red Hat, the CNA that published the CVE record, gives 7.5 with the same vector except attack complexity High (AC:H) and lists CWE-190 and CWE-787. The difference is only that judgement: both agree the attacker needs the client to connect (user interaction) and can reach full confidentiality, integrity and availability impact. Siemens scores it 8.8 for its own product. CISA's SSVC entry records exploitation as "none", automatable as "no" and technical impact as "total".
Which devices and builds are affected?
libssh2 is a client library, so the attacker is the SSH server a device logs in to with keyboard-interactive authentication, or anyone who can impersonate it. Our libssh and libssh2 vulnerabilities in embedded firmware guide shows how libssh2 arrives through libcurl's SFTP and SCP support and how to read its version from an image.
Siemens ProductCERT SSA-398330 lists CVE-2019-3863 for the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518-4 PN/DP MFP and 1518F-4 PN/DP MFP and the SIPLUS S7-1500 CPU 1518-4 PN/DP MFP, firmware V3.1.0 to before V3.1.5, and recommends updating to V3.1.5 or later. CISA republished it as ICSA-23-348-10; the CSAF file lists the same five order numbers and the same fix.
Distributions backported the patch: the Debian security tracker shows 1.4.3-4.1+deb8u2 for jessie (DLA-1730-1) and 1.7.0-1+deb9u1 for stretch (DSA-4431-1), so a version below 1.8.1 can still be fixed.
How do you fix CVE-2019-3863?
Upgrade to libssh2 1.8.1 or later, or apply the upstream patch and rebuild, which is the libssh2 project's second option. It shipped with eight sibling CVEs, including CVE-2019-3855, so a build below 1.8.1 normally carries all nine. Our memory corruption fix guide covers proving that a bounds check reached the shipped binary. As defence in depth, limit which servers a device connects to and pin their host keys. Builds that ship libssh2 often also need the fix for Terrapin, CVE-2023-48795; a device that runs a libssh server should be checked for CVE-2018-10933.
The CVE is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18, 1,786 entries). FIRST EPSS gives it 0.03465, the 89.3rd percentile, in the 2026-11-18 dataset (CISA KEV, FIRST EPSS).
Evidence
- libssh2 advisory (2019-03-18): a server can send keyboard-interactive response messages whose total length exceeds unsigned char max, used as an index to copy memory, causing an out-of-bounds write (CWE-130); affected 0.1 to 1.8.0; fixed in 1.8.1; reported 2018-12-03 by Chris Coulson of Canonical; no known exploits at that time. Read 2026-11-19. — libssh2 security advisory
- NVD Primary CVSS v3.0 8.8 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, CWE-787; Red Hat secondary 7.5 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H, CWE-190 and CWE-787; CPE libssh2 before 1.8.1; published 2019-03-25. Read 2026-11-19. — NVD
- CVE.org: state PUBLISHED, CNA Red Hat, CNA CVSS 3.0 7.5; CISA-ADP SSVC exploitation none, automatable no, technical impact total; Siemens supplier ADP lists SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP and SIPLUS variant V3.1.0 to before V3.1.5. Read 2026-11-19. — CVE.org
- Siemens SSA-398330 (V2.8, last update 2026-10-13) lists CVE-2019-3863 (CVSS v3.1 8.8, CWE-787) for the GNU/Linux subsystem of SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, 1518F-4 PN/DP MFP and SIPLUS S7-1500 CPU 1518-4 PN/DP MFP, V3.1.0 to before V3.1.5; update to V3.1.5 or later. Read 2026-11-19. — Siemens ProductCERT
- CISA ICSA-23-348-10 CSAF (version 18, 2025-08-12) lists CVE-2019-3863 as known affected for five order numbers (6ES7518-4AX00-1AB0/-1AC0, 6ES7518-4FX00-1AB0/-1AC0, 6AG1518-4AX00-4AC0); vendor fix: update to V3.1.5 or later. Read 2026-11-19. — CISA ICS Advisory ICSA-23-348-10
- Debian: fixed in 1.4.3-4.1+deb8u2 (jessie, DLA-1730-1), 1.7.0-1+deb9u1 (stretch, DSA-4431-1) and 1.8.0-2.1 (unstable, bug 924965). Read 2026-11-19. — Debian security tracker
- Not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18, 1,786 entries). — CISA KEV
- EPSS 0.03465, percentile 0.89297, dataset 2026-11-18, read 2026-11-19. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which libssh2 version fixes CVE-2019-3863?
libssh2 1.8.1, released on 2019-03-18; versions 0.1 up to and including 1.8.0 are affected. Debian backported the fix to 1.4.3-4.1+deb8u2 and 1.7.0-1+deb9u1, so check the patch list as well as the version (per the libssh2 advisory and the Debian security tracker).
Who can exploit CVE-2019-3863 against a device?
The SSH server the device connects to. The flaw is on the client side: a server sends oversized keyboard-interactive response messages during authentication, so a compromised or impersonated backup, log or update server is the attacker (per the libssh2 advisory and NVD).
Why is CVE-2019-3863 scored 8.8 by NVD but 7.5 by Red Hat?
Both use CVSS 3.0 with network access, user interaction and high impact on confidentiality, integrity and availability. NVD rates attack complexity Low (8.8), while Red Hat, the CNA, rates it High (7.5). Siemens gives 8.8 for its product (per NVD, the CVE.org record and Siemens SSA-398330).
Which industrial products list CVE-2019-3863, and what if I cannot update?
Siemens lists the GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, 1518F-4 PN/DP MFP and SIPLUS S7-1500 CPU 1518-4 PN/DP MFP from V3.1.0 to before V3.1.5; the fix is V3.1.5 or later, and its interim advice is to build and run applications only from trusted sources (per Siemens SSA-398330 and CISA ICSA-23-348-10).
Is CVE-2019-3863 known to be exploited?
It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18), and CISA's SSVC entry records exploitation as none. FIRST EPSS gives it 0.03465, the 89.3rd percentile, in the 2026-11-18 dataset (per CISA KEV, CVE.org and FIRST EPSS).
Questions about this page?