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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | librelp | 1.2.15-1 | — |
| Debian 13 | librelp | 1.2.15-1 | — |
| Debian 12 | librelp | 1.2.15-1 | — |
| Debian 9 | librelp | 1.2.12-1+deb9u1 | DSA-4151-1 |
| Debian 8 | librelp | 1.2.7-2+deb8u1 | DSA-4151-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | librelp | 1.2.2-2ubuntu1.1 | USN-3612-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | librelp | 1.2.14-3ubuntu0.1~esm1 | USN-4828-1 |
| Ubuntu Pro 16.04 LTS | librelp | 1.2.9-1ubuntu0.1~esm1 | USN-4828-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | librelp +1 | 1.2.12-1.el7_5.1 | RHSA-2018:1223 |
| RHEL 6 | librelp +1 | 1.2.7-3.el6_9.1 | RHSA-2018:1225 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7.4 EUS | librelp +1 | 1.2.12-1.el7_4.1 | RHSA-2018:1704 |
| RHEL 7.3 EUS | librelp +1 | 1.2.0-4.el7_3 | RHSA-2018:1707 |
| RHEL 7.2 TUS | librelp +1 | 1.2.0-4.el7_2 | RHSA-2018:1703 |
| RHEL 7.2 E4S | librelp +1 | 1.2.0-4.el7_2 | RHSA-2018:1703 |
| RHEL 7.2 AUS | librelp +1 | 1.2.0-4.el7_2 | RHSA-2018:1703 |
| RHEL 6.7 EUS | librelp +1 | 1.2.7-3.el6_7.1 | RHSA-2018:1702 |
| RHEL 6.6 TUS | librelp +1 | 1.2.7-3.el6_6.1 | RHSA-2018:1701 |
| RHEL 6.6 AUS | librelp +1 | 1.2.7-3.el6_6.1 | RHSA-2018:1701 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
| SLES 12 SP4 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
| SLES 12 SP3 | librelp | 1.2.12-3.3.1 | SUSE-SU-2022:1891-1, SUSE-SU-2018:0822-1 |
| SLES 12 SP2 | librelp | 1.2.7-3.3.1 | SUSE-SU-2018:0828-1 |
| SLES 12 SP1 | librelp | 1.2.7-3.3.1 | SUSE-SU-2018:0828-1 |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | librelp | 1.2.7-3.3.1 | SUSE-SU-2018:0828-1 |
| SLES for SAP 12 SP5 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
| SLES for SAP 12 SP4 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
| SLES for SAP 12 SP3 | librelp | 1.2.12-3.3.1 | SUSE-SU-2022:1891-1, SUSE-SU-2018:0822-1 |
| SLES for SAP 12 SP2 | librelp | 1.2.7-3.3.1 | SUSE-SU-2018:0828-1 |
| SLES for SAP 12 SP1 | librelp | 1.2.7-3.3.1 | SUSE-SU-2018:0828-1 |
| SUSE OpenStack Cloud Crowbar 9 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
| SUSE OpenStack Cloud Crowbar 8 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
| SUSE OpenStack Cloud 9 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
| SUSE OpenStack Cloud 8 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
| SUSE OpenStack Cloud 6 | librelp | 1.2.7-3.3.1 | SUSE-SU-2018:0828-1 |
| SUSE HPE Helion OpenStack 8 | librelp | 1.2.15-3.6.3 | SUSE-SU-2022:1891-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | librelp +1 | 1.2.12-1.amzn2.0.1 | ALAS2-2018-998 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | librelp +1 | 1.2.12-1.el7_5.1 | ELSA-2018-1223 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
s0/rsyslog-librelp-CVE-2018-1000140 ★ 0 · May 14, 2019
Pinned version of rsyslov vulnerable to CVE-2018-1000140
-
s0/rsyslog-librelp-CVE-2018-1000140-fixed ★ 0 · May 14, 2019
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 15
- RHSA-2018:1703 Red Hat Security Advisory: librelp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2018:1701 Red Hat Security Advisory: librelp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2018:1707 Red Hat Security Advisory: librelp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2018:1704 Red Hat Security Advisory: librelp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2018:1702 Red Hat Security Advisory: librelp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2018:1225 Red Hat Security Advisory: librelp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2018:1223 Red Hat Security Advisory: librelp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-4828-1 librelp vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-3612-1 librelp vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4151-1 librelp - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:0828-1 Security update for librelp SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1891-1 Security update for librelp SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0822-1 Security update for librelp SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2018-1223 Critical: librelp security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Apr 24, 2018
- ALAS2-2018-998 Critical: librelp security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 19, 2018
References
- USN-3612-1 vendor-advisory
- GLSA-201804-21 vendor-advisory
- https://github.com/rsyslog/librelp/blob/532aa362f0f7a8d037505b0a27a1df452f9bac9e/src/tcp.c#L1205
- RHSA-2018:1703 vendor-advisory
- RHSA-2018:1704 vendor-advisory
- RHSA-2018:1702 vendor-advisory
- RHSA-2018:1225 vendor-advisory
- RHSA-2018:1707 vendor-advisory
- https://lgtm.com/rules/1505913226124/
- RHSA-2018:1223 vendor-advisory
- DSA-4151 vendor-advisory
- RHSA-2018:1701 vendor-advisory
- http://packetstormsecurity.com/files/172829/librelp-Remote-Code-Execution.html