CVE-2018-1000140
librelp: Stack-based buffer overflow in relpTcpChkPeerName function in src/tcp.c
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Red Hat, Amazon, Oracle, Photon OS. Rated lower by Ubuntu (medium).
Description
rsyslog librelp version 1.2.14 and earlier contains a Buffer Overflow vulnerability in the checking of x509 certificates from a peer that can result in Remote code execution. This attack appear to be exploitable a remote attacker that can connect to rsyslog and trigger a stack buffer overflow by sending a specially crafted x509 certificate.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 2 | librelp, librelp-debuginfo, librelp-devel | 1.2.12-1.amzn2.0.1 |
| Oracle Linux 6 | librelp, librelp-devel | 1.2.7-3.el6_9.1 |
| Oracle Linux 7 | librelp, librelp-devel | 1.2.12-1.el7_5.1 |
| Photon OS 1.0 | librelp | 1.2.9-3.ph1 |
| Photon OS 2.0 | librelp | 1.2.13-2.ph2 |
| debian 11 | librelp | 1.2.15-1 |
| debian 12 | librelp | 1.2.15-1 |
| debian 13 | librelp | 1.2.15-1 |
| debian 14 | librelp | 1.2.15-1 |
| debian 8 | librelp | 1.2.7-2+deb8u1 |
| debian 9 | librelp | 1.2.12-1+deb9u1 |
| echo | librelp | 1.2.15-1 |
Show all 20 entries from 16 sources
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 2 | librelp | 1.2.12-1.amzn2.0.1 |
| amazon linux 2 | librelp-debuginfo | 1.2.12-1.amzn2.0.1 |
| amazon linux 2 | librelp-devel | 1.2.12-1.amzn2.0.1 |
| Oracle Linux 6 | librelp | 1.2.7-3.el6_9.1 |
| Oracle Linux 6 | librelp-devel | 1.2.7-3.el6_9.1 |
| Oracle Linux 7 | librelp | 1.2.12-1.el7_5.1 |
| Oracle Linux 7 | librelp-devel | 1.2.12-1.el7_5.1 |
| Photon OS 1.0 | librelp | 1.2.9-3.ph1 |
| Photon OS 2.0 | librelp | 1.2.13-2.ph2 |
| debian 11 | librelp | 1.2.15-1 |
| debian 12 | librelp | 1.2.15-1 |
| debian 13 | librelp | 1.2.15-1 |
| debian 14 | librelp | 1.2.15-1 |
| debian 8 | librelp | 1.2.7-2+deb8u1 |
| debian 9 | librelp | 1.2.12-1+deb9u1 |
| echo | librelp | 1.2.15-1 |
| ubuntu 14.04 | librelp | 1.2.2-2ubuntu1.1 |
| ubuntu 14.04-ESM | librelp | 1.2.2-2ubuntu1.1 |
| ubuntu 16.04-ESM | librelp | 1.2.9-1ubuntu0.1~esm1 |
| ubuntu 18.04-ESM | librelp | 1.2.14-3ubuntu0.1~esm1 |
References
- http://packetstormsecurity.com/files/172829/librelp-Remote-Code-Execution.html
- https://access.redhat.com/errata/RHSA-2018:1223
- https://access.redhat.com/errata/RHSA-2018:1225
- https://access.redhat.com/errata/RHSA-2018:1701
- https://access.redhat.com/errata/RHSA-2018:1702
- https://access.redhat.com/errata/RHSA-2018:1703
- https://access.redhat.com/errata/RHSA-2018:1704
- https://access.redhat.com/errata/RHSA-2018:1707
All 21 references
- https://access.redhat.com/security/cve/CVE-2018-1000140
- https://github.com/rsyslog/librelp/blob/532aa362f0f7a8d037505b0a27a1df452f9bac9e/src/tcp.c#L1205
- https://lgtm.com/rules/1505913226124/
- https://linux.oracle.com/cve/CVE-2018-1000140.html
- https://linux.oracle.com/errata/ELSA-2018-1225.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000140
- https://security.gentoo.org/glsa/201804-21
- https://ubuntu.com/security/notices/USN-3612-1
- https://ubuntu.com/security/notices/USN-4828-1
- https://usn.ubuntu.com/3612-1/
- https://www.cve.org/CVERecord?id=CVE-2018-1000140
- https://www.debian.org/security/2018/dsa-4151
- https://www.rsyslog.com/cve-2018-1000140/