Buffer overflow in TCP syslog server (receiver) components in rsyslog
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-120 and the CVSS impact.
Summary
Rsyslog is a rocket-fast system for log processing. Modules for TCP syslog reception have a potential heap buffer overflow when octet-counted framing is used. This can result in a segfault or some other malfunction. As of our understanding, this vulnerability can not be used for remote code execution. But there may still be a slight chance for experts to do that. The bug occurs when the octet count is read. While there is a check for the maximum number of octets, digits are written to a heap buffer even when the octet count is over the maximum, This can be used to overrun the memory buffer. However, once the sequence of digits stop, no additional characters can be added to the buffer. In our opinion, this makes remote exploits impossible or at least highly complex. Octet-counted framing is one of two potential framing modes. It is relatively uncommon, but enabled by default on receivers. Modules `imtcp`, `imptcp`, `imgssapi`, and `imhttp` are used for regular syslog message reception. It is best practice not to directly expose them to the public. When this practice is followed, the risk is considerably lower. Module `imdiag` is a diagnostics module primarily intended for testbench runs. We do not expect it to be present on any production installation. Octet-counted framing is not very common. Usually, it needs to be specifically enabled at senders. If users do not need it, they can turn it off for the most important modules. This will mitigate the vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rsyslog | rsyslog | before 8.2204.1 | 8.2204.1 | Patch available | CNA |
- rsyslog Vendorrsyslog Affected before 8.2204.1 Fixed in 8.2204.1 Patch available CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rsyslog:rsyslog:*:*:*:*:*:*:*:* | before 8.2204.1 | Vulnerable | rsyslog |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 11.0 | Vulnerable | Debian |
| cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* | not specified by NVD | Vulnerable | NetApp |
- cpe:2.3:a:rsyslog:rsyslog:*:*:*:*:*:*:*:* Versions before 8.2204.1 Vulnerable ·rsyslog
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* Versions not specified by NVD Vulnerable ·NetApp
Remediation
- Fix · CNA rsyslog (rsyslog) Fixed in 8.2204.1
Red Hat 9 advisories
- RHSA-2022:5439 Released 2022-07-01 · Red Hat rating ImportantRHV-H security update (redhat-virtualization-host) 4.3.23
- RHEL 7-based RHEV-H for RHEV 4 (build requirements) redhat-virtualization-host-4.3.23-20220622.0.el7_9, redhat-virtualization-host-image-update-4.3.23-20220622.0.el7_9
- Red Hat Virtualization 4 Hypervisor for RHEL 7 redhat-virtualization-host-4.3.23-20220622.0.el7_9, redhat-virtualization-host-image-update-4.3.23-20220622.0.el7_9
- RHSA-2022:4896 Released 2022-06-03 · Red Hat rating ImportantRed Hat Virtualization security, bug fix, and enhancement update [ovirt-4.5.0]
- Red Hat Virtualization 4 Hypervisor for RHEL 8 redhat-virtualization-host-4.5.0-202205291010_8.6, redhat-virtualization-host-image-update-4.5.0-202205291010_8.6
- RHSA-2022:4808 Released 2022-05-31 · Red Hat rating Importantrsyslog and rsyslog7 security update
- Red Hat Enterprise Linux Server (v. 6 ELS) rsyslog-5.8.10-12.el6_10.1, rsyslog-gnutls-5.8.10-12.el6_10.1, rsyslog-gssapi-5.8.10-12.el6_10.1 +9
- Red Hat Enterprise Linux Server Optional (v. 6 ELS) rsyslog-snmp-5.8.10-12.el6_10.1, rsyslog7-elasticsearch-7.4.10-7.el6_10.1, rsyslog7-snmp-7.4.10-7.el6_10.1
Show 6 more Red Hat advisories
- RHSA-2022:4799 Released 2022-05-30 · Red Hat rating Importantrsyslog security update
- Red Hat Enterprise Linux AppStream (v. 8) rsyslog-8.2102.0-7.el8_6.1, rsyslog-crypto-8.2102.0-7.el8_6.1, rsyslog-doc-8.2102.0-7.el8_6.1 +17
- RHSA-2022:4802 Released 2022-05-30 · Red Hat rating Importantrsyslog security update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) rsyslog-8.1911.0-7.el8_4.3, rsyslog-crypto-8.1911.0-7.el8_4.3, rsyslog-doc-8.1911.0-7.el8_4.3 +15
- RHSA-2022:4800 Released 2022-05-30 · Red Hat rating Importantrsyslog security update
- Red Hat Enterprise Linux AppStream EUS (v. 8.2) rsyslog-8.1911.0-3.el8_2.1, rsyslog-crypto-8.1911.0-3.el8_2.1, rsyslog-doc-8.1911.0-3.el8_2.1 +13
- RHSA-2022:4803 Released 2022-05-30 · Red Hat rating Importantrsyslog security update
- RHV-M 4.3 rsyslog-elasticsearch-8.24.0-57.el7_9.3, rsyslog-mmnormalize-8.24.0-57.el7_9.3
- Red Hat Enterprise Linux Client (v. 7) rsyslog-8.24.0-57.el7_9.3, rsyslog-gnutls-8.24.0-57.el7_9.3, rsyslog-gssapi-8.24.0-57.el7_9.3 +3
- Red Hat Enterprise Linux Client Optional (v. 7) rsyslog-crypto-8.24.0-57.el7_9.3, rsyslog-doc-8.24.0-57.el7_9.3, rsyslog-elasticsearch-8.24.0-57.el7_9.3 +9
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) rsyslog-crypto-8.24.0-57.el7_9.3, rsyslog-doc-8.24.0-57.el7_9.3, rsyslog-elasticsearch-8.24.0-57.el7_9.3 +9
- Red Hat Enterprise Linux Server (v. 7) rsyslog-8.24.0-57.el7_9.3, rsyslog-gnutls-8.24.0-57.el7_9.3, rsyslog-gssapi-8.24.0-57.el7_9.3 +5
- Red Hat Enterprise Linux Server Optional (v. 7) rsyslog-crypto-8.24.0-57.el7_9.3, rsyslog-doc-8.24.0-57.el7_9.3, rsyslog-elasticsearch-8.24.0-57.el7_9.3 +8
- Red Hat Enterprise Linux Workstation (v. 7) rsyslog-8.24.0-57.el7_9.3, rsyslog-gnutls-8.24.0-57.el7_9.3, rsyslog-gssapi-8.24.0-57.el7_9.3 +5
- Red Hat Enterprise Linux Workstation Optional (v. 7) rsyslog-crypto-8.24.0-57.el7_9.3, rsyslog-doc-8.24.0-57.el7_9.3, rsyslog-elasticsearch-8.24.0-57.el7_9.3 +7
- Red Hat Virtualization 4 Management Agent for RHEL 7 Hosts rsyslog-8.24.0-57.el7_9.3, rsyslog-elasticsearch-8.24.0-57.el7_9.3, rsyslog-mmjsonparse-8.24.0-57.el7_9.3 +1
- RHSA-2022:4795 Released 2022-05-30 · Red Hat rating Importantrsyslog security update
- Red Hat Enterprise Linux AppStream (v. 9) rsyslog-8.2102.0-101.el9_0.1, rsyslog-crypto-8.2102.0-101.el9_0.1, rsyslog-doc-8.2102.0-101.el9_0.1 +18
- RHSA-2022:4801 Released 2022-05-30 · Red Hat rating Importantrsyslog security update
- Red Hat Enterprise Linux AppStream E4S (v. 8.1) rsyslog-8.37.0-13.el8_1.1, rsyslog-crypto-8.37.0-13.el8_1.1, rsyslog-doc-8.37.0-13.el8_1.1 +13
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| RHEL 7-based RHEV-H for RHEV 4 (build requirements) | Fixed | RHSA-2022:5439 |
| RHV-M 4.3 | Fixed | RHSA-2022:4803 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:4799 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2022:4795 |
| Red Hat Enterprise Linux AppStream E4S (v. 8.1) | Fixed | RHSA-2022:4801 |
| Red Hat Enterprise Linux AppStream EUS (v. 8.2) | Fixed | RHSA-2022:4800 |
| Red Hat Enterprise Linux AppStream EUS (v.8.4) | Fixed | RHSA-2022:4802 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2022:4803 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2022:4803 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2022:4803 |
| Red Hat Enterprise Linux Server (v. 6 ELS) | Fixed | RHSA-2022:4808 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2022:4803 |
| Red Hat Enterprise Linux Server Optional (v. 6 ELS) | Fixed | RHSA-2022:4808 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2022:4803 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2022:4803 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2022:4803 |
| Red Hat Virtualization 4 Hypervisor for RHEL 7 | Fixed | RHSA-2022:5439 |
| Red Hat Virtualization 4 Hypervisor for RHEL 8 | Fixed | RHSA-2022:4896 |
| Red Hat Virtualization 4 Management Agent for RHEL 7 Hosts | Fixed | RHSA-2022:4803 |
Not affected: 3 products
- RHEL 7-based RHEV-H for RHEV 4 (build requirements)
- RHEL 8-based RHEV-H for RHEV 4 (build requirements)
- Red Hat Virtualization 4 Hypervisor for RHEL 8
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24903
References
More Rsyslog vulnerabilities
- TI-2019-12711 An issue was discovered in Rsyslog v8.1908.0. CVSS 3.1CRITICAL 9.8
- TI-2019-12712 An issue was discovered in Rsyslog v8.1908.0. CVSS 3.1CRITICAL 9.8
- TI-2019-12710 contrib/pmdb2diag/pmdb2diag.c in Rsyslog v8.1908.0 allows out-of-bounds access because the level length is mishandled. CVSS 3.1CRITICAL 9.8
- TI-2017-09315 The zmq3 input and output modules in rsyslog before 8.28.0 interpreted description fields… CVSS 3.0CRITICAL 9.8
- TI-2014-02955 rsyslog before 7.6.6 and 8.x before 8.4.1 and sysklogd 1.5 and earlier allows remote… CVSS 2.0HIGH 7.5
- TI-2011-02830 Stack-based buffer overflow in the parseLegacySyslogMsg function in tools/syslogd.c in… CVSS 2.0MEDIUM 5.0
Sources
- CVE-2022-24903 · CVE Program
- CVE-2022-24903 · NVD
- FIRST EPSS
- CVE-2022-24903 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences