CVE-2018-1000140 json
rsyslog librelp version 1.2.14 and earlier contains a Buffer Overflow vulnerability in the checking of x509 certificates from a peer that c…
published 8y ago modified 4mo ago also EUVD-2018-1858
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 9.3%
- EPSS 9.3% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- librelp Debian 14, Debian 13, Debian 12 1.2.15-1
debian advisories DEBIAN-CVE-2018-1000140
- librelp Ubuntu 14.04 LTS 1.2.2-2ubuntu1.1
- librelp Ubuntu Pro 16.04 LTS 1.2.9-1ubuntu0.1~esm1
- librelp Ubuntu Pro 18.04 LTS 1.2.14-3ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2018-1000140
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- librelp RHEL 6 1.2.7-3.el6_9.1
- librelp RHEL 7 1.2.12-1.el7_5.1
- librelp RHEL 6.6 TUS, RHEL 6.6 AUS 1.2.7-3.el6_6.1
- librelp RHEL 6.7 EUS 1.2.7-3.el6_7.1
- librelp RHEL 7.2 TUS, RHEL 7.2 E4S, RHEL 7.2 AUS 1.2.0-4.el7_2
- librelp RHEL 7.3 EUS 1.2.0-4.el7_3
- librelp RHEL 7.4 EUS 1.2.12-1.el7_4.1
red hat advisories RHSA-2018:1701RHSA-2018:1702RHSA-2018:1703RHSA-2018:1707RHSA-2018:1704RHSA-2018:1225
- librelp SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +10 more 1.2.15-3.6.3
- librelp SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for Raspberry Pi 12 SP2 +5 more 1.2.7-3.3.1
- librelp SLES for SAP 12 SP3, SLES 12 SP3, SLE Software Development Kit 12 SP3 1.2.12-3.3.1
suse advisories SUSE-SU-2022:1891-1SUSE-SU-2018:0828-1SUSE-SU-2018:0822-1
Is CVE-2018-1000140 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-1000140 updated cvss 8.1
librelp: Stack-based buffer overflow in relpTcpChkPeerName function in src/tcp.c
-
Red Hat Enterprise Linux Client (v. 7) librelp 1.2.12-1.el7_5.1 Red Hat Enterprise Linux Client Optional (v. 7) librelp-devel 1.2.12-1.el7_5.1, librelp-debuginfo 1.2.12-1.el7_5.1 Red Hat Enterprise Linux ComputeNode (v. 7) librelp 1.2.12-1.el7_5.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1223
-
Red Hat Enterprise Linux ComputeNode EUS (v. 7.3) librelp 1.2.0-4.el7_3fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1707
-
Red Hat Enterprise Linux ComputeNode EUS (v. 7.4) librelp 1.2.12-1.el7_4.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1704
-
Red Hat Enterprise Linux ComputeNode Optional (v. 7) librelp-devel 1.2.12-1.el7_5.1, librelp-debuginfo 1.2.12-1.el7_5.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1223
-
Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.3) librelp-devel 1.2.0-4.el7_3, librelp-debuginfo 1.2.0-4.el7_3fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1707
-
Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.4) librelp-devel 1.2.12-1.el7_4.1, librelp-debuginfo 1.2.12-1.el7_4.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1704
-
Red Hat Enterprise Linux Desktop (v. 6) librelp 1.2.7-3.el6_9.1 Red Hat Enterprise Linux Desktop Optional (v. 6) librelp 1.2.7-3.el6_9.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1225
-
Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) librelp 1.2.12-1.el7_5.1 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) librelp-devel 1.2.12-1.el7_5.1, librelp-debuginfo 1.2.12-1.el7_5.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1223
show 26 moreshow fewer
-
Red Hat Enterprise Linux HPC Node (v. 6) librelp 1.2.7-3.el6_9.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1225
-
Red Hat Enterprise Linux HPC Node EUS (v. 6.7) librelp 1.2.7-3.el6_7.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1702
-
Red Hat Enterprise Linux HPC Node Optional (v. 6) librelp 1.2.7-3.el6_9.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1225
-
Red Hat Enterprise Linux HPC Node Optional EUS (v. 6.7) librelp 1.2.7-3.el6_7.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1702
-
Red Hat Enterprise Linux Server (v. 6) librelp 1.2.7-3.el6_9.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1225
-
Red Hat Enterprise Linux Server (v. 7) librelp 1.2.12-1.el7_5.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1223
-
Red Hat Enterprise Linux Server AUS (v. 6.6) librelp 1.2.7-3.el6_6.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1701
-
Red Hat Enterprise Linux Server AUS (v. 7.2) librelp 1.2.0-4.el7_2 Red Hat Enterprise Linux Server E4S (v. 7.2) librelp 1.2.0-4.el7_2fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1703
-
Red Hat Enterprise Linux Server EUS (v. 6.7) librelp 1.2.7-3.el6_7.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1702
-
Red Hat Enterprise Linux Server EUS (v. 7.3) librelp 1.2.0-4.el7_3fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1707
-
Red Hat Enterprise Linux Server EUS (v. 7.4) librelp 1.2.12-1.el7_4.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1704
-
Red Hat Enterprise Linux Server Optional (v. 6) librelp 1.2.7-3.el6_9.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1225
-
Red Hat Enterprise Linux Server Optional (v. 7) librelp-devel 1.2.12-1.el7_5.1, librelp-debuginfo 1.2.12-1.el7_5.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1223
-
Red Hat Enterprise Linux Server Optional AUS (v. 6.6) librelp 1.2.7-3.el6_6.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1701
-
Red Hat Enterprise Linux Server Optional AUS (v. 7.2) librelp-devel 1.2.0-4.el7_2, librelp-debuginfo 1.2.0-4.el7_2 Red Hat Enterprise Linux Server Optional E4S (v. 7.2) librelp-devel 1.2.0-4.el7_2, librelp-debuginfo 1.2.0-4.el7_2fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1703
-
Red Hat Enterprise Linux Server Optional EUS (v. 6.7) librelp 1.2.7-3.el6_7.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1702
-
Red Hat Enterprise Linux Server Optional EUS (v. 7.3) librelp-devel 1.2.0-4.el7_3, librelp-debuginfo 1.2.0-4.el7_3fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1707
-
Red Hat Enterprise Linux Server Optional EUS (v. 7.4) librelp-devel 1.2.12-1.el7_4.1, librelp-debuginfo 1.2.12-1.el7_4.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1704
-
Red Hat Enterprise Linux Server Optional TUS (v. 6.6) librelp 1.2.7-3.el6_6.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1701
-
Red Hat Enterprise Linux Server Optional TUS (v. 7.2) librelp-devel 1.2.0-4.el7_2, librelp-debuginfo 1.2.0-4.el7_2fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1703
-
Red Hat Enterprise Linux Server TUS (v. 6.6) librelp 1.2.7-3.el6_6.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1701
-
Red Hat Enterprise Linux Server TUS (v. 7.2) librelp 1.2.0-4.el7_2fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1703
-
Red Hat Enterprise Linux Workstation (v. 6) librelp 1.2.7-3.el6_9.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1225
-
Red Hat Enterprise Linux Workstation (v. 7) librelp 1.2.12-1.el7_5.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1223
-
Red Hat Enterprise Linux Workstation Optional (v. 6) librelp 1.2.7-3.el6_9.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1225
-
Red Hat Enterprise Linux Workstation Optional (v. 7) librelp-devel 1.2.12-1.el7_5.1, librelp-debuginfo 1.2.12-1.el7_5.1fixed: vendor fix “Users are strongly advised not to expose their logging RELP services to a public network.” RHSA-2018:1223
1 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
9.34% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- lgtm.com https://lgtm.com/rules/1505913226124/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
github.com
/rsyslog/librelp/blob/532aa362f0f7a8d037505b0a27a1df452f9bac9e/src/tcp.c#L1205
patch, third-party-advisory
-
lgtm.com
/rules/1505913226124/
exploit, third-party-advisory
-
usn.ubuntu.com
/3612-1/
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201804-21
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1703
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1704
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1702
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1225
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1707
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1223
vendor-advisory, third-party-advisory
-
debian.org
/security/2018/dsa-4151
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1701
vendor-advisory, third-party-advisory
- packetstormsecurity.com /files/172829/librelp-Remote-Code-Execution.html
Sources
- CVE List CVE-2018-1000140
- NVD CVE-2018-1000140
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.