CVE-2019-5105
n/a 3S: Improper Restriction of Operations within the Bounds of a Memory Buffer
Check your servers for CVE-2019-5105
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-5105 affects 3s, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
An exploitable memory corruption vulnerability exists in the Name Service Client functionality of 3S-Smart Software Solutions CODESYS GatewayService. A specially crafted packet can cause a large memcpy, resulting in an access violation and termination of the process. An attacker can send a packet to a device running the GatewayService.exe to trigger this vulnerability. All variants of the CODESYS V3 products in all versions prior V3.5.16.10 containing the CmpRouter or CmpRouterEmbedded component are affected, regardless of the CPU type or operating system: CODESYS Control for BeagleBone, CODESYS Control for emPC-A/iMX6, CODESYS Control for IOT2000, CODESYS Control for Linux, CODESYS Control for PLCnext, CODESYS Control for PFC100, CODESYS Control for PFC200, CODESYS Control for Raspberry Pi, CODESYS Control RTE V3, CODESYS Control RTE V3 (for Beckhoff CX), CODESYS Control Win V3 (also part of the CODESYS Development System setup), CODESYS Control V3 Runtime System Toolkit, CODESYS V3 Embedded Target Visu Toolkit, CODESYS V3 Remote Target Visu Toolkit, CODESYS V3 Safety SIL2, CODESYS Edge Gateway V3, CODESYS Gateway V3, CODESYS HMI V3, CODESYS OPC Server V3, CODESYS PLCHandler SDK, CODESYS V3 Simulation Runtime (part of the CODESYS Development System).
Severity (CVSS)
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 2.65%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 86.0% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
3S
n/a
|
affected 3S-Smart Software Solutions CODESYS 3.5.15.0
|
Is my server affected?
Find the installed version of 3s and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i 3s
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-5105 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-5105RHEL, Rocky, Alma, Fedora
rpm -q 3s
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-5105Alpine
apk list --installed | grep -i 3sWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-5105
trivy image --scanners vuln IMAGE | grep CVE-2019-5105
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://customers.codesys.com/index.php?eID=dumpFile&t=f&f=13077&token=3bfc6d1d08415a6260b96093520071f5786e7fd4&download= customers.codesys.com
- https://talosintelligence.com/vulnerability_reports/TALOS-2019-0897 talosintelligence.com
Source: the record CVE-2019-5105 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse