Skip to content
OpenAdvisories
Critical · 9.8 Scanner template Public exploit CVE-2017-5645 EUVD-2020-0263GHSA-fxph-q3j8-mv87

Deserialization of Untrusted Data in Log4j

Published Apr 17, 2017 · Updated Oct 8, 2026 · Assigned by apache

Description

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Log4j All versions between 2.0-alpha1 and 2.8.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache-log4j2 2.7-2 —
Debian 13 apache-log4j2 2.7-2 —
Debian 12 apache-log4j2 2.7-2 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS apache-log4j2 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 7 log4j +2 1.2.17-16.el7_4 RHSA-2017:2423
RHEL 2 rh-java-common-log4j +2 1.2.17-15.15.el6 RHSA-2017:1417
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 3 log4j-eap6 1.2.16-12.redhat_3.1.ep6.el6 RHSA-2017:1801
Red Hat JBoss Web Server 3 tomcat-native 1.2.8-10.redhat_10.ep7.el6 RHSA-2017:1801
Red Hat JBoss Web Server 3 tomcat7 +11 7.0.70-22.ep7.el6 RHSA-2017:1801
Red Hat JBoss Web Server 3 tomcat8 +11 8.0.36-24.ep7.el6 RHSA-2017:1801
Red Hat JBoss EAP 7 eap7-artemis-native +1 1.1.0-13.redhat_4.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-bouncycastle +3 1.56.0-3.redhat_2.2.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-hibernate-validator +1 5.2.5-2.Final_redhat_2.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-jasypt 1.9.2-2.redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-jboss-ec2-eap +1 7.0.8-1.GA_redhat_1.ep7.el6 RHSA-2017:2811
Red Hat JBoss EAP 7 eap7-jboss-jms-api_2.0_spec 1.0.1-2.Final_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-jboss-logmanager 2.0.7-2.Final_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-jboss-metadata +5 10.0.2-2.Final_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-jboss-remote-naming 2.0.5-1.Final_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-jboss-remoting 4.0.24-1.Final_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-log4j-jboss-logmanager 1.1.4-2.Final_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-picketlink-api +9 2.5.5-9.SP8_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-undertow 1.3.31-1.Final_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-wildfly +1 7.0.8-4.GA_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 7 eap7-wildfly-javadocs 7.0.8-1.GA_redhat_1.1.ep7.el6 RHSA-2017:2809, RHSA-2017:2808
Red Hat JBoss EAP 6 apache-cxf 2.7.18-7.SP6_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 codehaus-jackson +4 1.9.9-11.redhat_5.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 hibernate4-eap6 +4 4.2.27-1.Final_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 hornetq 2.3.25-22.SP20_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 infinispan +4 5.2.22-1.Final_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jboss-as-ee +60 7.5.17-2.Final_redhat_4.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jboss-ec2-eap +1 7.5.17-1.Final_redhat_4.ep6.el6 RHSA-2017:2638
Red Hat JBoss EAP 6 jboss-marshalling 1.4.10-3.SP3_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jboss-metadata +5 7.2.3-1.Final_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jboss-modules 1.3.10-1.Final_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jboss-remoting3 3.3.10-1.Final_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jboss-vfs2 3.2.12-1.Final_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jbossas-javadocs 7.5.17-4.Final_redhat_4.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jbossas-modules-eap 7.5.17-1.Final_redhat_4.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 jbossweb 7.5.24-1.Final_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 log4j-eap6 1.2.16-12.redhat_3.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 log4j-jboss-logmanager 1.1.4-1.Final_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 6 picketlink-bindings +1 2.5.4-17.SP15_redhat_1.1.ep6.el5 RHSA-2017:2637, RHSA-2017:2636, RHSA-2017:2635
Red Hat JBoss EAP 5 log4j 1.2.14-19.patch_01.ep5.el5 RHSA-2017:3399

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 log4j +2 1.2.17-17.amzn2 ALAS2-2022-1739

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 log4j +2 1.2.17-16.el7_4 ELSA-2017-2423

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

  • pimps/CVE-2017-5645 ★ 92 · Aug 4, 2017

    CVE-2017-5645 - Apache Log4j RCE due Insecure Deserialization

  • HynekPetrak/log4shell-finder ★ 39 · Dec 14, 2021

    Fastest filesystem scanner for log4shell (CVE-2021-44228, CVE-2021-45046) and other vulnerable (CVE-2017-5645, CVE-2019-17571, CVE-2022-23305, CVE-2022-23307 ... ) instances of log4j library. Excelle…

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.logging.log4j:log4j >= 2.0, < 2.8.2 2.8.2 GHSA-fxph-q3j8-mv87
Maven org.apache.logging.log4j:log4j-core >= 2.0, < 2.8.2 2.8.2 GHSA-fxph-q3j8-mv87

Advisories 16

References