CVE-2022-24903Buffer overflow in TCP syslog server (receiver) components in rsyslog
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | rsyslog | Fixed | 8.2112.0-2ubuntu2.2 | UBUNTU-CVE-2022-24903 |
| Ubuntu 20.04 | rsyslog | Fixed | 8.2001.0-1ubuntu1.3 | UBUNTU-CVE-2022-24903 |
| Ubuntu 18.04 | rsyslog | Fixed | 8.32.0-1ubuntu4.2 | UBUNTU-CVE-2022-24903 |
| Ubuntu 16.04 | rsyslog | Fix pending | 8.16.0-1ubuntu3.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2022-24903 |
| Ubuntu 14.04 | rsyslog | Fix pending | UBUNTU-CVE-2022-24903 | |
| Debian 14 | rsyslog | Fixed | 8.2204.1-1 | DEBIAN-CVE-2022-24903 |
| Debian 13 | rsyslog | Fixed | 8.2204.1-1 | DEBIAN-CVE-2022-24903 |
| Debian 12 | rsyslog | Fixed | 8.2204.1-1 | DEBIAN-CVE-2022-24903 |
| Red Hat Enterprise Linux 9 | rsyslog | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-crypto | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-doc | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-elasticsearch | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-gnutls | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-gssapi | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-kafka | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-logrotate | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-mmaudit | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-mmfields | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-mmjsonparse | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-mmkubernetes | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-mmnormalize | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-mmsnmptrapd | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-mysql | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-omamqp1 | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-openssl | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-pgsql | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-relp | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-snmp | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 9 | rsyslog-udpspoof | Fixed | 0:8.2102.0-101.el9_0.1 | RHSA-2022:4795 |
| Red Hat Enterprise Linux 8 | rsyslog | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-crypto | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-doc | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-elasticsearch | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-gnutls | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-gssapi | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-kafka | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-mmaudit | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-mmfields | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-mmjsonparse | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-mmkubernetes | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-mmnormalize | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-mmsnmptrapd | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-mysql | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-omamqp1 | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-openssl | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-pgsql | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-relp | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-snmp | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 8 | rsyslog-udpspoof | Fixed | 0:8.2102.0-7.el8_6.1 | RHSA-2022:4799 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host | Fixed | 0:4.3.23-20220622.0.el7_9 | RHSA-2022:5439 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host-image-update | Fixed | 0:4.3.23-20220622.0.el7_9 | RHSA-2022:5439 |
| Red Hat Enterprise Linux 7 | rsyslog | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-crypto | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-doc | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-elasticsearch | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-gnutls | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-gssapi | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-kafka | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-libdbi | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-mmaudit | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-mmjsonparse | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-mmkubernetes | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-mmnormalize | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-mmsnmptrapd | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-mysql | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-pgsql | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-relp | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-snmp | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| Red Hat Enterprise Linux 7 | rsyslog-udpspoof | Fixed | 0:8.24.0-57.el7_9.3 | RHSA-2022:4803 |
| AlmaLinux 8 | rsyslog | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-crypto | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-doc | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-elasticsearch | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-gnutls | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-gssapi | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-kafka | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-mmaudit | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-mmfields | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-mmjsonparse | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-mmkubernetes | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-mmnormalize | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-mmsnmptrapd | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-mysql | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-omamqp1 | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-openssl | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-pgsql | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-relp | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-snmp | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| AlmaLinux 8 | rsyslog-udpspoof | Fixed | 8.2102.0-7.el8 | ALSA-2022:4799 |
| Rocky Linux 9 | rsyslog | Fixed | 0:8.2102.0-101.el9_0.1 | RLSA-2022:4795 |
| Rocky Linux 8 | rsyslog | Fixed | 0:8.2102.0-7.el8_6.1 | RLSA-2022:4799 |
| Alpine Linux 3.24 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.23 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.22 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.21 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.20 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.19 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.18 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.17 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.16 | rsyslog | Fixed | 8.2204.1-r0 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.15 | rsyslog | Fixed | 8.2108.0-r2 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.14 | rsyslog | Fixed | 8.2012.0-r3 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.13 | rsyslog | Fixed | 8.2012.0-r3 | ALPINE-CVE-2022-24903 |
| Alpine Linux 3.12 | rsyslog | Fixed | 8.2004.0-r2 | ALPINE-CVE-2022-24903 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rsyslog: affected: < 8.2204.1
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2022/dsa-5150 (vendor-advisory)
References
- https://github.com/rsyslog/rsyslog/security/advisories/GHSA-ggw7-xr6h-mmr8
- https://github.com/rsyslog/rsyslog/commit/f211042ecbb472f9d8beb4678a65d272b6f07705
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GMNNXLCU2UORRVSZO24HL4KMVPK5PHVW/
- https://lists.debian.org/debian-lts-announce/2022/05/msg00028.html
- https://www.debian.org/security/2022/dsa-5150
- https://security.netapp.com/advisory/ntap-20221111-0002/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.