Skip to content

Known exploited

CVE-2021-45046 on SLES 15 SP7: affected packages and fixed versions

5 packages on SLES 15 SP7 are 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

PackageFixed inSeverityAdvisory
jakarta-servlet 5.0.0-5.3.1 Important none listed
log4j 2.16.0-4.10.1 Important none listed
log4j-javadoc 2.16.0-4.10.1 Important none listed
log4j-jcl 2.16.0-4.10.1 Important none listed
log4j-slf4j 2.16.0-4.10.1 Important none listed

Check a host

Show the installed versions and compare with the table above:

rpm -q jakarta-servlet log4j log4j-javadoc log4j-jcl

Update to the fixed build:

sudo zypper refresh && sudo zypper update jakarta-servlet log4j log4j-javadoc log4j-jcl

The fixed version may look older than the upstream release that fixed the bug. SLES 15 SP7 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.

Get started free Check one server now, no signup