CVE-2021-4104
A public proof of concept exists; no exploitation attested.
- Published2021-12-14
- WeaknessCWE-502
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
JMSAppender in Log4j 1.2 is vulnerable to deserialization of untrusted data when the attacker has write access to the Log4j configuration. The attacker can provide TopicBindingName and TopicConnectionFactoryBindingName configurations causing JMSAppender to perform JNDI requests that result in remote code execution in a similar fashion to CVE-2021-44228. Note this issue only affects Log4j 1.2 when specifically configured to use JMSAppender, which is not the default. Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions.
Timeline
dates in UTC- 2021-12-1412:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-4104?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-4104?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.2 | = 1.2 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.3 | = 7.3.4 | no fix published | NVD |
| 7.3 | = 7.3.5 | no fix published | NVD |
| 7.4 | = 7.4.1 | no fix published | NVD |
| 7.4 | = 7.4.2 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 14.1 | = 14.1.3.2 | no fix published | NVD |
| 15.0 | = 15.0.3.1 | no fix published | NVD |
| 16.0 | = 16.0.3 | no fix published | NVD |
| 19.0 | = 19.0.1 | no fix published | NVD |
45 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache Log4j 1.xAffected
- = Apache Log4j 1.2 1.2.xno fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-12-22
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apache-druidMinimOSall versions · fixed in 0and 1 other package
- apache-hiveCleanStartall versions · fixed in 3.1.3-r1
- apache-log4j1.2Ubuntu:Pro:16.04:LTSall versions · fixed in 1.2.17-7ubuntu1+esm1
- apache-log4j1.2Ubuntu:Pro:14.04:LTSall versions · fixed in 1.2.17-4ubuntu3+esm1
- apache-log4j1.2Ubuntu:20.04:LTSall versions · fixed in 1.2.17-9ubuntu0.1
- apache-log4j1.2Ubuntu:18.04:LTSall versions · fixed in 1.2.17-8+deb10u1ubuntu0.1
- apache-log4j1.2Debian:14all versions · fixed in 1.2.17-11
- apache-log4j1.2Debian:13all versions · fixed in 1.2.17-11
416 more package ranges on OSV.dev
Vendor advisories
log4j: Remote code execution in Log4j 1.x when application is configured to use JMSAppender
log4j.src as a component of A-MQ Clients 2 · log4j.src as a component of Red Hat AMQ Broker 7 · log4j.src as a component of Red Hat JBoss Fuse Service Works 6 · +4 more
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.11 Security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.7 on RHEL 7 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 6.4.24 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 6.4.24 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 6.4.24 security update
34 more advisories
Fix
- Vendor fix Red Hat Product Security RHSA-2024:10207 · 59 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://access…
- Vendor fix Red Hat Product Security RHSA-2022:5460 · 130 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2022:5459 · 130 productsBefore applying this update, back up your existing Red Hat JBoss Enterprise Application Platform installation and deployed applications. For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2022:5458 · 1 productBefore applying this update, back up your existing Red Hat JBoss Enterprise Application Platform installation and deployed applications. The References section of this erratum contains a download link (you must log in to download the update).
- Vendor fix Red Hat Product Security RHSA-2022:0661 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Installation instructions are available from the Fuse 7.10 product documentation page: https://access.redhat.com/documentation/en-us/red_hat_…
- Vendor fix Red Hat Product Security RHSA-2022:0553 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Installation instructions are located in the download section of the customer portal. The References section of this erratum contains a down…
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 3 repositories, unverifiedcckuailong/log4shell_1.xopen-AIMS/log4jcuijiung/log4j-CVE-2021-4104 PoC-in-GitHub
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2023-12-20
- OpenCVESSVC decisionnone—
- CISA-ADPCVSS 3.17.52026-05-28
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.06read 2026-10-23
- CNAweakness (CWE)CWE-502known since 2026-10-23
- NVDweakness (CWE)CWE-502read 2026-10-23
- FIRST EPSSEPSS score80.6 %read 2026-11-03
- PoC-in-GitHubproof of concept3read 2026-11-03
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2021-12-14
Identifiers
- CGA-2g58-2j66-w9mmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4p7c-4rm5-xvpfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6c68-vp29-f4wrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6hgv-r7r8-r24qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-78rv-3ffc-9v6vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cm98-5vpf-c3w2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-j4cg-w4gf-x7v9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-p7v8-q868-9h87same flawChainguard · CC-BY-NC-ND-4.0
- CGA-wc49-3g64-xfx4same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2021-2514same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-fp5r-v3w9-4333same flawGitHub Advisory Database · CC-BY-4.0
- MINI-5vpg-q97w-mqxpsame flawMinimOS · LicenseRef-unstated
- MINI-phqj-qvjr-xvw4same flawMinimOS · LicenseRef-unstated
- ALSA-2022:0290advisory covering several CVEsAlmaLinux · MIT
- DLA-2905-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2023-0141advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2022-1513advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2022-2065advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:1612-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:1631-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:4111-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:4112-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2022:0038-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11681-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11696-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2021:5206advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:5269advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0289advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0290advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0291advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0294advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0436advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0438advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0447advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0448advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0475advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0524advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:1296advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:1297advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:5459advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:5460advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:10207advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:5856advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:0290advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2021:14866-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:4096-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:4097-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:4111-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:4112-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:4115-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-12-14
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-fp5r-v3w9-4333
Frequently asked questions
What is CVE-2021-4104?
Is CVE-2021-4104 actively exploited?
What is the CVSS score for CVE-2021-4104?
Running Apache Log4j? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-fp5r-v3w9-4333
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0