Known exploited
CVE-2021-44228 on CentOS Stream 9: affected packages and fixed versions
3 packages on CentOS Stream 9 are affected by CVE-2021-44228 (Apache Log4j2 Remote Code Execution Vulnerability). A host is fixed once the package is at the version below or newer.
This vulnerability is known to be exploited. CISA added it to its catalog on December 10, 2021, with a remediation date of December 24, 2021 for US federal agencies. It has been used in ransomware campaigns.
Affected packages
| Package | Fixed in | Severity | Advisory |
|---|---|---|---|
log4j |
2.15.0-1 |
Not rated | none listed |
log4j-jcl |
2.15.0-1 |
Not rated | none listed |
log4j-slf4j |
2.15.0-1 |
Not rated | none listed |
Check a host
Show the installed versions and compare with the table above:
rpm -q log4j log4j-jcl log4j-slf4j
Update to the fixed build:
sudo dnf upgrade log4j log4j-jcl log4j-slf4j
The fixed version may look older than the upstream release that fixed the bug. CentOS Stream 9 carries the fix in the version it already ships.
What it is
Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2,2.12.3, and 2.3.1) JNDI features used in configuration, log messages, andparameters do not protect against attacker controlled LDAP and other JNDIrelated endpoints. An attacker who can control log messages or log messageparameters can execute arbitrary code loaded from LDAP servers when messagelookup substitution is enabled. From log4j 2.15.0, this behavior has beendisabled by default. From version 2.16.0 (along with 2...
CVE-2021-44228 on other releases
Know which of your hosts are affected
SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.