USN-9274-1: Apache Log4j 2 vulnerabilities
It was discovered that Apache Log4j 2 was vulnerable to a remote code execution attack when configured to use a JDBC Appender with a JNDI LDAP data source URI. A remote attacker could possibly use this issue to cause a crash, leading to a denial of service. This issue only affected Ubuntu 16.04 LTS. (CVE-2021-44832)
Hideki Okamoto and Guy Lederfein discovered that Apache Log4j 2 did not protect against infinite recursion in lookup evaluation. A remote attacker could possibly use this issue to cause Apache Log4j 2 to crash, leading to a denial of service. This issue only affected Ubuntu 16.04 LTS. (CVE-2021-45105)
It was discovered that the Socket Appender in Apache Log4j 2 did not verify the hostname of the server certificate when using TLS, even when hostname verification was enabled. A remote attacker could possibly use this issue to perform a machine-in-the-middle attack and intercept or redirect log traffic. (CVE-2025-68161)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/liblog4j2-javato a version that resolves this vulnerability.Fixed in 2.19.0-2ubuntu0.26.10.1 - Upgrade
Upgrade
ubuntu/liblog4j2-javato a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/apache-log4j2to a version that resolves this vulnerability.Fixed in 2.4-2ubuntu0.1~esm2 - Upgrade
Upgrade
ubuntu/apache-log4j2to a version that resolves this vulnerability.Fixed in 2.12.4-0ubuntu0.1+esm1 - Upgrade
Upgrade
ubuntu/apache-log4j2to a version that resolves this vulnerability.Fixed in 2.17.1-0.20.04.1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/apache-log4j2to a version that resolves this vulnerability.Fixed in 2.17.1-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/apache-log4j2to a version that resolves this vulnerability.Fixed in 2.19.0-2ubuntu0.24.04.1~esm1 - Upgrade
Upgrade
ubuntu/apache-log4j2to a version that resolves this vulnerability.Fixed in 2.19.0-2ubuntu0.26.10.1 - Upgrade
Upgrade
ubuntu/apache-log4j2to a version that resolves this vulnerability.Fixed in 2.19.0-2ubuntu0.26.04.1~esm1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which systems are affected by the denial-of-service issues?
The JDBC Appender/JNDI LDAP issue (CVE-2021-44832) and the infinite lookup recursion issue (CVE-2021-45105) only affected Ubuntu 16.04 LTS.
What configuration is required for the JDBC Appender issue to be exploitable?
CVE-2021-44832 requires Apache Log4j 2 to be configured with a JDBC Appender that uses a JNDI LDAP data source URI. The described impact is a crash resulting in denial of service.
What traffic is at risk from the Socket Appender TLS issue?
CVE-2025-68161 affects Socket Appender connections using TLS when hostname verification is enabled but not actually enforced. A machine-in-the-middle attacker could intercept or redirect the log traffic.