CVEfocus › CVE database › CVE-2022-24903

CVE-2022-24903Buffer overflow in TCP syslog server (receiver) components in rsyslog

CVSS 8.1 HighEPSS 3.5% (higher than 90% of CVEs)Published 2022-05-05Updated 2025-04-23Assigner: GitHub_M

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.

CWE-120

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

102Fixed
2Fix pending

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04rsyslogFixed8.2112.0-2ubuntu2.2UBUNTU-CVE-2022-24903
Ubuntu 20.04rsyslogFixed8.2001.0-1ubuntu1.3UBUNTU-CVE-2022-24903
Ubuntu 18.04rsyslogFixed8.32.0-1ubuntu4.2UBUNTU-CVE-2022-24903
Ubuntu 16.04rsyslogFix pending8.16.0-1ubuntu3.1+esm2 (Ubuntu Pro)UBUNTU-CVE-2022-24903
Ubuntu 14.04rsyslogFix pendingUBUNTU-CVE-2022-24903
Debian 14rsyslogFixed8.2204.1-1DEBIAN-CVE-2022-24903
Debian 13rsyslogFixed8.2204.1-1DEBIAN-CVE-2022-24903
Debian 12rsyslogFixed8.2204.1-1DEBIAN-CVE-2022-24903
Red Hat Enterprise Linux 9rsyslogFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-cryptoFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-docFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-elasticsearchFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-gnutlsFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-gssapiFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-kafkaFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-logrotateFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-mmauditFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-mmfieldsFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-mmjsonparseFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-mmkubernetesFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-mmnormalizeFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-mmsnmptrapdFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-mysqlFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-omamqp1Fixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-opensslFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-pgsqlFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-relpFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-snmpFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 9rsyslog-udpspoofFixed0:8.2102.0-101.el9_0.1RHSA-2022:4795
Red Hat Enterprise Linux 8rsyslogFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-cryptoFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-docFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-elasticsearchFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-gnutlsFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-gssapiFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-kafkaFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-mmauditFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-mmfieldsFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-mmjsonparseFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-mmkubernetesFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-mmnormalizeFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-mmsnmptrapdFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-mysqlFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-omamqp1Fixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-opensslFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-pgsqlFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-relpFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-snmpFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 8rsyslog-udpspoofFixed0:8.2102.0-7.el8_6.1RHSA-2022:4799
Red Hat Enterprise Linux 7redhat-virtualization-hostFixed0:4.3.23-20220622.0.el7_9RHSA-2022:5439
Red Hat Enterprise Linux 7redhat-virtualization-host-image-updateFixed0:4.3.23-20220622.0.el7_9RHSA-2022:5439
Red Hat Enterprise Linux 7rsyslogFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-cryptoFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-docFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-elasticsearchFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-gnutlsFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-gssapiFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-kafkaFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-libdbiFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-mmauditFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-mmjsonparseFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-mmkubernetesFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-mmnormalizeFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-mmsnmptrapdFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-mysqlFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-pgsqlFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-relpFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-snmpFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
Red Hat Enterprise Linux 7rsyslog-udpspoofFixed0:8.24.0-57.el7_9.3RHSA-2022:4803
AlmaLinux 8rsyslogFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-cryptoFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-docFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-elasticsearchFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-gnutlsFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-gssapiFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-kafkaFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-mmauditFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-mmfieldsFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-mmjsonparseFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-mmkubernetesFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-mmnormalizeFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-mmsnmptrapdFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-mysqlFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-omamqp1Fixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-opensslFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-pgsqlFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-relpFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-snmpFixed8.2102.0-7.el8ALSA-2022:4799
AlmaLinux 8rsyslog-udpspoofFixed8.2102.0-7.el8ALSA-2022:4799
Rocky Linux 9rsyslogFixed0:8.2102.0-101.el9_0.1RLSA-2022:4795
Rocky Linux 8rsyslogFixed0:8.2102.0-7.el8_6.1RLSA-2022:4799
Alpine Linux 3.24rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.23rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.22rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.21rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.20rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.19rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.18rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.17rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.16rsyslogFixed8.2204.1-r0ALPINE-CVE-2022-24903
Alpine Linux 3.15rsyslogFixed8.2108.0-r2ALPINE-CVE-2022-24903
Alpine Linux 3.14rsyslogFixed8.2012.0-r3ALPINE-CVE-2022-24903
Alpine Linux 3.13rsyslogFixed8.2012.0-r3ALPINE-CVE-2022-24903
Alpine Linux 3.12rsyslogFixed8.2004.0-r2ALPINE-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.

Vendor advisories:

References

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.