PT-2022-3579 · Rsyslog+10 · Rsyslog+10

Peter Agten

·

Published

2022-05-05

·

Updated

2024-06-15

·

CVE-2022-24903

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Rsyslog (affected versions not specified)
Description The issue is related to a potential heap buffer overflow in TCP syslog reception modules when octet-counted framing is used. This can result in a segfault or other malfunction. Although it is believed that this issue cannot be used for remote code execution, there may still be a slight chance for experts to achieve this. The bug occurs when the octet count is read, and digits are written to a heap buffer even when the octet count exceeds the maximum, potentially overrunning the memory buffer. However, once the sequence of digits stops, no additional characters can be added to the buffer, making remote exploits highly complex. Modules imtcp, imptcp, imgssapi, and imhttp are used for regular syslog message reception, and it is best practice not to directly expose them to the public. Octet-counted framing is relatively uncommon and usually needs to be specifically enabled at senders.
Recommendations As a temporary workaround, consider disabling octet-counted framing for the most important modules if it is not needed. Turn off octet-counted framing for modules imtcp, imptcp, imgssapi, and imhttp to mitigate the vulnerability. Restrict access to these modules to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

RCE

Memory Corruption

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2022:4799
ALSA-2022_4799
ALT-PU-2022-1999
ALT-PU-2022-2089
ALT-PU-2022-2440
AZL-9736
BDU:2022-04363
CESA-2022_4799
CVE-2022-24903
DLA-3016-1
DSA-5150-1
GHSA-GGW7-XR6H-MMR8
MGASA-2022-0165
OESA-2022-1672
OPENSUSE-SU-2022_1583-1
OPENSUSE-SU-2024:12059-1
RHSA-2022:4795
RHSA-2022:4799
RHSA-2022:4800
RHSA-2022:4801
RHSA-2022:4802
RHSA-2022:4803
RHSA-2022:4808
RHSA-2022:4896
RHSA-2022:5439
RHSA-2022_4795
RHSA-2022_4799
RHSA-2022_4803
RHSA-2022_4808
RLSA-2022:4795
RLSA-2022:4799
SUSE-SU-2022:1583-1
SUSE-SU-2022:1817-1
SUSE-SU-2022:2314-1
SUSE-SU-2022:2331-1
SUSE-SU-2022:2333-1
SUSE-SU-2022_1583-1
SUSE-SU-2022_1817-1
SUSE-SU-2022_2314-1
SUSE-SU-2022_2331-1
SUSE-SU-2022_2333-1
USN-5404-1
USN-5404-2

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Rsyslog
Suse
Ubuntu