VulnarioBlogLog4j vulnerabilities

Log4j Vulnerabilities: The 10 Most Critical Log4j Security Bugs (CVEs)

Log4j vulnerabilities are security flaws in Log4j that attackers can abuse to steal data, take over a server or interrupt a service. Apache Log4j is the Java logging library at the center of the Log4Shell crisis. The National Vulnerability Database (NVD) lists 20 CVEs for Log4j, 6 of them rated critical, and 7 were published in the last 12 months. CISA lists 2 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.

This guide lists the 10 most critical Log4j security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Log4j security basics and a free way to be told about the next Log4j CVE as soon as it is published.

Key takeaways

  • 2 CVEs are in CISA's KEV catalog, so attackers have exploited them in the wild.
  • 6 Log4j CVEs are rated critical (CVSS v3), and 7 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2026-34478, published Apr 10, 2026.
  • You can monitor Log4j for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these Log4j CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical Log4j CVEs at a glance

Most critical Log4j vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2021-4422810.0 Critical2021-12-10Apache Log4j2 Remote Code ExecutionYes (ransomware use known)
2CVE-2021-450469.0 Critical2021-12-14Apache Log4j2 Deserialization of Untrusted DataYes (ransomware use known)
3CVE-2022-233059.8 Critical2022-01-18SQL injectionNo
4CVE-2020-94939.8 Critical2021-06-16Insecure deserializationNo
5CVE-2019-175719.8 Critical2019-12-20Insecure deserializationNo
6CVE-2017-56459.8 Critical2017-04-17Insecure deserializationNo
7CVE-2022-233028.8 High2022-01-18Insecure deserializationNo
8CVE-2022-233078.8 High2022-01-18Insecure deserializationNo
9CVE-2026-344787.5 High2026-04-10Log injectionNo
10CVE-2026-344797.5 High2026-04-10Security flawNo

Each Log4j CVE explained

1. CVE-2021-44228: Apache Log4j2 Remote Code Execution

  • CVSS 10.0 Critical
  • In CISA KEV (added 2021-12-10)
  • Published 2021-12-10
  • CWE-20
What NVD says
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, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.0.1 to before 2.3.1; 2.4.0 to before 2.12.2; 2.13.0 to before 2.15.0; 2.0
What to do
Upgrade to the fixed release for your branch (2.3.1, 2.12.2, 2.15.0) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2021-44228 (opens in a new tab)

2. CVE-2021-45046: Apache Log4j2 Deserialization of Untrusted Data

  • CVSS 9.0 Critical
  • In CISA KEV (added 2023-05-01)
  • Published 2021-12-14
  • CWE-917
What NVD says
It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations.
How it can be attacked
Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.0.1 to before 2.12.2; 2.13.0 to before 2.16.0; 2.0
What to do
Upgrade to the fixed release for your branch (2.12.2, 2.16.0) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2021-45046 (opens in a new tab)

3. CVE-2022-23305: SQL injection

  • CVSS 9.8 Critical
  • Published 2022-01-18
  • CWE-89
What NVD says
By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the values to be inserted are converters from PatternLayout. The message converter, %m, is likely to always be included. This allows attackers to manipulate the SQL by entering crafted strings into input fields or headers of an application that are logged allowing unintended SQL queries to be executed.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
1.2 through 1.2.17
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2022-23305 (opens in a new tab)

4. CVE-2020-9493: Insecure deserialization

  • CVSS 9.8 Critical
  • Published 2021-06-16
  • CWE-502
What NVD says
A deserialization flaw was found in Apache Chainsaw versions prior to 2.1.0 which could lead to malicious code execution.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
1.2 to before 2.0
What to do
Upgrade to 2.0 or a later release, then restart the service.

NVD record for CVE-2020-9493 (opens in a new tab)

5. CVE-2019-17571: Insecure deserialization

  • CVSS 9.8 Critical
  • Published 2019-12-20
  • CWE-502
What NVD says
Included in Log4j 1.2 is a SocketServer class that is vulnerable to deserialization of untrusted data which can be exploited to remotely execute arbitrary code when combined with a deserialization gadget when listening to untrusted network traffic for log data. This affects Log4j versions up to 1.2 up to 1.2.17.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 1.2.17
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2019-17571 (opens in a new tab)

6. CVE-2017-5645: Insecure deserialization

  • CVSS 9.8 Critical
  • Published 2017-04-17
  • CWE-502
What NVD says
In Apache Log4j 2.x before 2.8.2, when using the TCP socket server or UDP socket server to receive serialized log events from another application, a specially crafted binary payload can be sent that, when deserialized, can execute arbitrary code.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.0 to before 2.8.2
What to do
Upgrade to 2.8.2 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2017-5645 (opens in a new tab)

7. CVE-2022-23302: Insecure deserialization

  • CVSS 8.8 High
  • Published 2022-01-18
  • CWE-502
What NVD says
JMSSink in all versions of Log4j 1.x is vulnerable to deserialization of untrusted data when the attacker has write access to the Log4j configuration or if the configuration references an LDAP service the attacker has access to. The attacker can provide a TopicConnectionFactoryBindingName configuration causing JMSSink to perform JNDI requests that result in remote code execution in a similar fashion to CVE-2021-4104.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
1.0.1 through 1.2.17
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2022-23302 (opens in a new tab)

8. CVE-2022-23307: Insecure deserialization

  • CVSS 8.8 High
  • Published 2022-01-18
  • CWE-502
What NVD says
CVE-2020-9493 identified a deserialization issue that was present in Apache Chainsaw. Prior to Chainsaw V2.0 Chainsaw was a component of Apache Log4j 1.2.x where the same issue exists.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
1.2 to before 2.0
What to do
Upgrade to 2.0 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2022-23307 (opens in a new tab)

9. CVE-2026-34478: Log injection

  • CVSS 7.5 High
  • Published 2026-04-10
  • CWE-117
What NVD says
Apache Log4j Core's Rfc5424Layout https://logging.apache.org/log4j/2.x/manual/layouts.html#RFC5424Layout , in versions 2.21.0 through 2.25.3, is vulnerable to log injection via CRLF sequences due to undocumented renames of security-relevant configuration attributes.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on integrity.
Affected versions
2.21.0 to before 2.25.4; 3.0.0
What to do
Upgrade to 2.25.4 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-34478 (opens in a new tab)

10. CVE-2026-34479: Security flaw

  • CVSS 7.5 High
  • Published 2026-04-10
  • CWE-116
What NVD says
The Log4j1XmlLayout from the Apache Log4j 1-to-Log4j 2 bridge fails to escape characters forbidden by the XML 1.0 standard, producing malformed XML output. Conforming XML parsers are required to reject documents containing such characters with a fatal error, which may cause downstream log processing systems to drop or fail to index affected records.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on integrity.
Affected versions
2.7 to before 2.25.4; 3.0.0
What to do
Upgrade to 2.25.4 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-34479 (opens in a new tab)

Log4j security checklist

  1. Run a supported release and move to the next branch before the current one reaches end of life.
  2. Apply patch releases promptly.
  3. Pin and audit your dependencies, and update the vulnerable ones.
  4. Run applications as an unprivileged user.
  5. Disable features and functions your application does not need.

Your stack is bigger than Log4j. A flaw anywhere in the chain can be the way in, so also review our guides to Java vulnerabilities, Apache Tomcat vulnerabilities and Elasticsearch vulnerabilities.

How to get alerted about new Log4j vulnerabilities

NVD received 7 new Log4j CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Log4j and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run Log4j alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about Log4j vulnerabilities

What are the most critical Log4j vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Log4j CVEs include CVE-2021-44228 (CVSS 10.0), CVE-2021-45046 (CVSS 9.0), CVE-2022-23305 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have Log4j vulnerabilities been exploited in real attacks?

Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 2 Log4j CVEs, including CVE-2021-44228, CVE-2021-45046. Treat these as the highest priority to patch.

How many vulnerabilities does Log4j have?

As of Nov 3, 2026 the National Vulnerability Database lists 20 CVEs for Log4j, with 6 rated critical by CVSS v3. 7 were published in the previous twelve months.

How can I get alerted when a new Log4j CVE is published?

Add Log4j to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Log4j and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is Log4j secure?

Log4j is as secure as its patch level. NVD published 7 new Log4j CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2021-44228?

CVE-2021-44228 is a critical Log4j vulnerability with a CVSS score of 10.0, published Dec 10, 2021. 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, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints.

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.