ubuntu-cve-2022-24903
Vulnerability from osv_ubuntu
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.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rsyslog",
"binary_version": "7.4.4-1ubuntu2.7"
},
{
"binary_name": "rsyslog-gnutls",
"binary_version": "7.4.4-1ubuntu2.7"
},
{
"binary_name": "rsyslog-gssapi",
"binary_version": "7.4.4-1ubuntu2.7"
},
{
"binary_name": "rsyslog-mysql",
"binary_version": "7.4.4-1ubuntu2.7"
},
{
"binary_name": "rsyslog-pgsql",
"binary_version": "7.4.4-1ubuntu2.7"
},
{
"binary_name": "rsyslog-relp",
"binary_version": "7.4.4-1ubuntu2.7"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "rsyslog",
"purl": "pkg:deb/ubuntu/rsyslog@7.4.4-1ubuntu2.7?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.8.11-2ubuntu4",
"7.4.4-1ubuntu1",
"7.4.4-1ubuntu2",
"7.4.4-1ubuntu2.1",
"7.4.4-1ubuntu2.3",
"7.4.4-1ubuntu2.5",
"7.4.4-1ubuntu2.6",
"7.4.4-1ubuntu2.7"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "rsyslog",
"binary_version": "8.16.0-1ubuntu3.1+esm2"
},
{
"binary_name": "rsyslog-elasticsearch",
"binary_version": "8.16.0-1ubuntu3.1+esm2"
},
{
"binary_name": "rsyslog-gnutls",
"binary_version": "8.16.0-1ubuntu3.1+esm2"
},
{
"binary_name": "rsyslog-gssapi",
"binary_version": "8.16.0-1ubuntu3.1+esm2"
},
{
"binary_name": "rsyslog-mysql",
"binary_version": "8.16.0-1ubuntu3.1+esm2"
},
{
"binary_name": "rsyslog-pgsql",
"binary_version": "8.16.0-1ubuntu3.1+esm2"
},
{
"binary_name": "rsyslog-relp",
"binary_version": "8.16.0-1ubuntu3.1+esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "rsyslog",
"purl": "pkg:deb/ubuntu/rsyslog@8.16.0-1ubuntu3.1+esm2?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8.16.0-1ubuntu3.1+esm2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8.12.0-1ubuntu2",
"8.12.0-1ubuntu3",
"8.14.0-2ubuntu1",
"8.14.0-2ubuntu2",
"8.16.0-1ubuntu1",
"8.16.0-1ubuntu2",
"8.16.0-1ubuntu3",
"8.16.0-1ubuntu3.1",
"8.16.0-1ubuntu3.1+esm1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "rsyslog",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-czmq",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-elasticsearch",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-gnutls",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-gssapi",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-hiredis",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-kafka",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-mongodb",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-mysql",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-pgsql",
"binary_version": "8.32.0-1ubuntu4.2"
},
{
"binary_name": "rsyslog-relp",
"binary_version": "8.32.0-1ubuntu4.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "rsyslog",
"purl": "pkg:deb/ubuntu/rsyslog@8.32.0-1ubuntu4.2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8.32.0-1ubuntu4.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8.16.0-1ubuntu9",
"8.16.0-1ubuntu10",
"8.32.0-1ubuntu3",
"8.32.0-1ubuntu4"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "rsyslog",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-czmq",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-elasticsearch",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-gnutls",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-gssapi",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-hiredis",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-kafka",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-mongodb",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-mysql",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-openssl",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-pgsql",
"binary_version": "8.2001.0-1ubuntu1.3"
},
{
"binary_name": "rsyslog-relp",
"binary_version": "8.2001.0-1ubuntu1.3"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "rsyslog",
"purl": "pkg:deb/ubuntu/rsyslog@8.2001.0-1ubuntu1.3?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8.2001.0-1ubuntu1.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8.1901.0-1ubuntu4",
"8.2001.0-1ubuntu1",
"8.2001.0-1ubuntu1.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "rsyslog",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-czmq",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-elasticsearch",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-gnutls",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-gssapi",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-hiredis",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-kafka",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-kubernetes",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-mongodb",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-mysql",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-openssl",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-pgsql",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-relp",
"binary_version": "8.2112.0-2ubuntu2.2"
},
{
"binary_name": "rsyslog-snmp",
"binary_version": "8.2112.0-2ubuntu2.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "rsyslog",
"purl": "pkg:deb/ubuntu/rsyslog@8.2112.0-2ubuntu2.2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8.2112.0-2ubuntu2.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8.2102.0-2ubuntu2",
"8.2110.0-3ubuntu1",
"8.2110.0-3ubuntu2",
"8.2110.0-4ubuntu1",
"8.2112.0-2ubuntu2"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2022-24903",
"modified": "2025-10-24T04:53:30Z",
"published": "2022-05-05T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2022-24903"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5404-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5404-2"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2022-24903"
}
],
"related": [
"USN-5404-1",
"USN-5404-2"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2022-24903"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.