# CVE-2019-17498: In libssh2 v1.9.0 and earlier versions, the SSH\_MSG\_DISCONNECT logic in packet.c has an integer overflow in a bounds ch…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.84% (percentile 91, 2026-11-26)
- **CWE:** CWE-190
- **Published:** 2019-10-21T00:00:00.000Z
- **Modified:** 2026-10-14T07:16:48.780Z

## Who should check

- Anyone running n/a (versions: see the vendor advisory)
- Anyone running Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5
- Anyone running Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP \>= V3.1.0, \< V3.1.5
- Anyone running Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5

## Description

In libssh2 v1.9.0 and earlier versions, the SSH\_MSG\_DISCONNECT logic in packet.c has an integer overflow in a bounds check, enabling an attacker to specify an arbitrary (out-of-bounds) offset for a subsequent memory read. A crafted SSH server may be able to disclose sensitive information or cause a denial of service condition on the client system when a user connects to the server.

## Affected and fixed versions

- n/a: see vendor advisory (nvd)
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2019-17498. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2019-17498.md
Affected: n/a; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5; Siemens SIPLUS S7-1500 CPU 1…
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for n/a, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2019-17498 being exploited?

There is no confirmed exploitation: CVE-2019-17498 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.84% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2019-17498?

High: CVSS 8.1 (v3.1, scored by NVD). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2019-17498?

n/a; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5.

### Is there a fix for CVE-2019-17498?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2019-17498?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TY7EEE34RFKCTXTMBQQWWSLXZWSCXNDB/>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00026.html>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22H4Q5XMGS3QNSA7OCL3U7UQZ4NXMR5O/>
- patch: <https://github.com/libssh2/libssh2/commit/dedcbd106f8e52d5586b0205bc7677e4c9868f9c>
- exploit: <https://github.com/libssh2/libssh2/blob/42d37aa63129a1b2644bf6495198923534322d64/src/packet.c#L480>
- exploit: <https://github.com/kevinbackhouse/SecurityExploits/tree/8cbdbbe6363510f7d9ceec685373da12e6fc752d/libssh2/out_of_bounds_read_disconnect_CVE-2019-17498>
- exploit: <http://packetstormsecurity.com/files/172835/libssh2-1.9.0-Out-Of-Bounds-Read.html>
- other: <https://blog.semmle.com/libssh2-integer-overflow-CVE-2019-17498/>
- other: <https://lists.debian.org/debian-lts-announce/2019/11/msg00010.html>
- other: <https://lists.debian.org/debian-lts-announce/2021/12/msg00013.html>
- other: <https://security.netapp.com/advisory/ntap-20220909-0004/>
- other: <https://lists.debian.org/debian-lts-announce/2023/09/msg00006.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2019-17498>

HTML: <https://flawdb.com/CVE-2019-17498> · JSON: <https://flawdb.com/api/v1/entries/CVE-2019-17498>
