Known exploited
CVE-2021-45046 on Debian 11: affected packages and fixed versions
1 package on Debian 11 is affected by CVE-2021-45046 (Apache Log4j2 Deserialization of Untrusted Data 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 May 1, 2023, with a remediation date of May 22, 2023 for US federal agencies. It has been used in ransomware campaigns.
Affected packages
| Package | Fixed in | Severity | Advisory |
|---|---|---|---|
apache-log4j2 |
2.16.0-1~deb11u1 |
Not rated | none listed |
Check a host
Show the installed version and compare with the table above:
dpkg-query -W -f='${Package} ${Version}\n' apache-log4j2
Update to the fixed build:
sudo apt-get update && sudo apt-get install --only-upgrade apache-log4j2
The fixed version may look older than the upstream release that fixed the bug. Debian 11 carries the fix in the version it already ships.
What it is
It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in a denial of service (DOS) attack. Log4j 2.15.0 makes a best-effort attempt to restrict JNDI LDAP lookups to localhost by default. Log4j 2.16.0 fixes this issue by removing support for message lookup patterns and disabling JNDI functionality by default.
CVE-2021-45046 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.