SQL injection in JDBC Appender in Apache Log4j V1
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. Note this issue only affects Log4j 1.x when specifically configured to use the JDBCAppender, which is not the default. Beginning in version 2.0-beta8, the JDBCAppender was re-introduced with proper support for parameterized SQL queries and further customization over the columns written to in logs. 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.
- BDU:2023-07205
- GHSA-65fg-84f6-3jq3
- ALSA-2022:0290
- DLA-2905-1
- openSUSE-SU-2022:0038-1
- openSUSE-SU-2022:0214-1
- openSUSE-SU-2022:0226-1
- RHSA-2022:0289
- RHSA-2022:0290
- RHSA-2022:0291
- RHSA-2022:0294
- RHSA-2022:0436
- RHSA-2022:0438
- RHSA-2022:0439
- RHSA-2022:0442
- RHSA-2022:0447
- RHSA-2022:0448
- RHSA-2022:0475
- RHSA-2022:0524
- RHSA-2022:1296
- Published
- Jan 18, 2022
- Updated
- Jun 17, 2026
- EPSS
- 66.5% · 99th percentile
- CWE
- CWE-89
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
59
Plan
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 20 / 30 · 66.5%
CISA SSVC decision
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| apache | log4j | cpe:2.3:a:apache:log4j |
| netapp | snapmanager | cpe:2.3:a:netapp:snapmanager |
| broadcom | brocade sannav | cpe:2.3:a:broadcom:brocade_sannav |
| qos | reload4j | cpe:2.3:a:qos:reload4j |
| oracle | advanced supply chain planning | cpe:2.3:a:oracle:advanced_supply_chain_planning |
| oracle | business intelligence | cpe:2.3:a:oracle:business_intelligence |
| oracle | business process management suite | cpe:2.3:a:oracle:business_process_management_suite |
| oracle | communications eagle ftp table base retrieval | cpe:2.3:a:oracle:communications_eagle_ftp_table_base_retrieval |
| oracle | communications instant messaging server | cpe:2.3:a:oracle:communications_instant_messaging_server |
| oracle | communications messaging server | cpe:2.3:a:oracle:communications_messaging_server |
| oracle | communications network integrity | cpe:2.3:a:oracle:communications_network_integrity |
| oracle | communications offline mediation controller | cpe:2.3:a:oracle:communications_offline_mediation_controller |
and 16 more
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apache log4j1.2 and later · up to 1.2.17 inclusive
- broadcom brocade sannavall versions
- netapp snapmanagerall versions
- oracle advanced supply chain planning12.1
- oracle advanced supply chain planning12.2
- oracle business intelligence12.2.1.3.0
- oracle business intelligence12.2.1.4.0
- oracle business intelligence5.9.0.0.0
- oracle business process management suite12.2.1.3.0
- oracle business process management suite12.2.1.4.0
- oracle communications eagle ftp table base retrieval4.5
- oracle communications instant messaging server10.0.1.5.0
- oracle communications messaging server8.1
- oracle communications network integrity7.3.6
- oracle communications offline mediation controllerbefore 12.0.0.4.4
- oracle communications offline mediation controller12.0.0.5.0
- oracle communications unified inventory management7.4.1
- oracle communications unified inventory management7.4.2
- oracle e-business suite cloud manager and cloud backup modulebefore 2.2.1.1.1
- oracle e-business suite cloud manager and cloud backup module2.2.1.1.1
Versions reported by the vendor
Affected version ranges reported by the assigning authority (apache). Independent of NVD's CPE analysis and usually ahead of it.
Apache Software Foundation Apache Log4j 1.x
- 1.2.1 and later · before unspecifiedaffected
- unspecified and later · before 2.0-alpha1affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | parfait | before 0.5.4-4.module_el8.5.0+2610+de2b8c0b | 0.5.4-4.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | parfait | before 0.5.4-4.module_el8.5.0+235+62ea7738 | 0.5.4-4.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | parfait-examples | before 0.5.4-4.module_el8.5.0+235+62ea7738 | 0.5.4-4.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | parfait-examples | before 0.5.4-4.module_el8.5.0+2610+de2b8c0b | 0.5.4-4.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | parfait-javadoc | before 0.5.4-4.module_el8.5.0+2610+de2b8c0b | 0.5.4-4.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | parfait-javadoc | before 0.5.4-4.module_el8.5.0+235+62ea7738 | 0.5.4-4.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | pcp-parfait-agent | before 0.5.4-4.module_el8.5.0+235+62ea7738 | 0.5.4-4.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | pcp-parfait-agent | before 0.5.4-4.module_el8.5.0+2610+de2b8c0b | 0.5.4-4.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | si-units | before 0.6.5-2.module_el8.5.0+235+62ea7738 | 0.6.5-2.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | si-units | before 0.6.5-2.module_el8.5.0+2610+de2b8c0b | 0.6.5-2.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | si-units-javadoc | before 0.6.5-2.module_el8.5.0+235+62ea7738 | 0.6.5-2.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | si-units-javadoc | before 0.6.5-2.module_el8.5.0+2610+de2b8c0b | 0.6.5-2.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | unit-api | before 1.0-5.module_el8.5.0+235+62ea7738 | 1.0-5.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | unit-api | before 1.0-5.module_el8.5.0+2610+de2b8c0b | 1.0-5.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | unit-api-javadoc | before 1.0-5.module_el8.5.0+2610+de2b8c0b | 1.0-5.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | unit-api-javadoc | before 1.0-5.module_el8.5.0+235+62ea7738 | 1.0-5.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | uom-lib | before 1.0.1-6.module_el8.5.0+2610+de2b8c0b | 1.0.1-6.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | uom-lib | before 1.0.1-6.module_el8.5.0+235+62ea7738 | 1.0.1-6.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | uom-lib-javadoc | before 1.0.1-6.module_el8.5.0+235+62ea7738 | 1.0.1-6.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | uom-lib-javadoc | before 1.0.1-6.module_el8.5.0+2610+de2b8c0b | 1.0.1-6.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | uom-parent | before 1.0.3-3.module_el8.5.0+2610+de2b8c0b | 1.0.3-3.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | uom-parent | before 1.0.3-3.module_el8.5.0+235+62ea7738 | 1.0.3-3.module_el8.5.0+235+62ea7738 |
| AlmaLinux:8 | uom-se | before 1.0.4-3.module_el8.5.0+2610+de2b8c0b | 1.0.4-3.module_el8.5.0+2610+de2b8c0b |
| AlmaLinux:8 | uom-se | before 1.0.4-3.module_el8.5.0+235+62ea7738 | 1.0.4-3.module_el8.5.0+235+62ea7738 |
+96
Same product
apache: all recordsOther highest-scoring records for the same primary product.
- CVE-2021-44228Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpointsKEV100Now
- CVE-2021-45046Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attackKEV96Now
- CVE-2017-5645In 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 applic66This week
- CVE-2019-17571Included in Log4j 1.2 is a SocketServer class that is vulnerable to deserialization of untrusted data which can be exploited to remotely exe60This week
- CVE-2021-44832Apache Log4j2 vulnerable to RCE via JDBC Appender when attacker controls configuration55Plan
- CVE-2022-23302Deserialization of untrusted data in JMSSink in Apache Log4j 1.x54Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| AlmaLinux:parfait | 0.5.4-4.module_el8.5.0+235+62ea7738 · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:parfait-examples | 0.5.4-4.module_el8.5.0+2610+de2b8c0b · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:parfait-javadoc | 0.5.4-4.module_el8.5.0+235+62ea7738 · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:pcp-parfait-agent | 0.5.4-4.module_el8.5.0+2610+de2b8c0b · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:si-units | 0.6.5-2.module_el8.5.0+235+62ea7738 · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:si-units-javadoc | 0.6.5-2.module_el8.5.0+2610+de2b8c0b · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:unit-api | 1.0-5.module_el8.5.0+2610+de2b8c0b · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:unit-api-javadoc | 1.0-5.module_el8.5.0+2610+de2b8c0b · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:uom-lib | 1.0.1-6.module_el8.5.0+2610+de2b8c0b · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:uom-lib-javadoc | 1.0.1-6.module_el8.5.0+2610+de2b8c0b · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:uom-parent | 1.0.3-3.module_el8.5.0+235+62ea7738 · AlmaLinux:8 | Package registry (OSV) |
| AlmaLinux:uom-se | 1.0.4-3.module_el8.5.0+235+62ea7738 · AlmaLinux:8 | Package registry (OSV) |
| Debian:apache-log4j1.2 | 1.2.17-11 · Debian:12 | Package registry (OSV) |
| openSUSE:kafka | 2.1.0-bp153.2.6.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| openSUSE:kafka-kit | 2.1.0-bp153.2.6.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| openSUSE:log4j | 1.2.17-5.9.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| openSUSE:log4j12 | 1.2.17-4.9.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| Red Hat:parfait | 0:0.5.4-4.module+el8.4.0+13998+1b70e2b7 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:parfait-examples | 0:0.5.4-4.module+el8.4.0+13998+1b70e2b7 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:parfait-javadoc | 0:0.5.4-4.module+el8.4.0+13998+1b70e2b7 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:pcp-parfait-agent | 0:0.5.4-4.module+el8.4.0+13998+1b70e2b7 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:si-units | 0:0.6.5-2.module+el8+2463+615f6896 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:si-units-javadoc | 0:0.6.5-2.module+el8+2463+615f6896 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:unit-api | 0:1.0-5.module+el8+2463+615f6896 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:unit-api-javadoc | 0:1.0-5.module+el8+2463+615f6896 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:uom-lib | 0:1.0.1-6.module+el8+2463+615f6896 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:uom-lib-javadoc | 0:1.0.1-6.module+el8+2463+615f6896 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:uom-parent | 0:1.0.3-3.module+el8+2463+615f6896 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Red Hat:uom-se | 0:1.0.4-3.module+el8+2463+615f6896 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| Rocky Linux:parfait | 0:0.5.4-4.module+el8.5.0+728+553fbdb8 · Rocky Linux:8 | Package registry (OSV) |
+20
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×3
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:39 | 2021-12-14 |
| Proof-of-concept repository on GitHub | stars:5 | 2022-01-21 |
| Proof-of-concept repository on GitHub | stars:1 | 2023-07-24 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-36 d
- Published
- TodaySep 29, 2026+1715 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
The query text is built by concatenating user input. The database cannot tell where the data ends and the command begins.
The bug in code
The whole CWE-89 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const owner = req.query.owner;const rows = await db.query( "SELECT * FROM files WHERE owner = '" + owner + "'");Fixed
const owner = req.query.owner;const rows = await db.query( "SELECT * FROM files WHERE owner = $1", [owner]);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Expanding Control over the Operating System from the DatabaseCAPEC-470Very High
- SQL InjectionCAPEC-66likelihood: High · High
- Blind SQL InjectionCAPEC-7likelihood: High · High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.oracle.com/security-alerts/cpujul2022.html
- www.openwall.com/lists/oss-security/2022/01/18/4
- lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
- logging.apache.org/log4j/1.2/index.html
- security.netapp.com/advisory/ntap-20220217-0007/
- www.oracle.com/security-alerts/cpuapr2022.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.