CVE-2022-23305: By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the val CRITICAL 9.8 REMOTE WATCHLIST UPGRADE MITIGATE MITIGATE
CVE-2022-23305 is a critical-severity flaw (CVSS 9.8) affecting log4j, snapmanager, snapmanager. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority Critical severity EPSS top 1%: very likely to be exploited Public exploit reference CISA SSVC: automatable with total technical impact Remotely exploitable, no login, no user action On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 9.8 (Critical) Attack vector Network (remote) Attack complexity Low Privileges needed None User interaction None EPSS exploit chance 66.5% (top 1%) CISA exploited list No Weakness CWE-89 Published 2022-01-18 Last modified 2026-06-17
Share: LinkedIn · X · Reddit
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2022-01-18 16:15 UTC Published CVE record published2026-06-17 04:29 UTC Updated Record last modifiedapache log4j UPGRADE
Affected: >= 1.2 and <= 1.2.17
Fixed in: newer than 1.2.17
Safe to downgrade to: a release before 1.2
1. Check installed version
Copy apt-cache policy log4j || rpm -q log4j || log4j --version
2. UPGRADE to newer than 1.2.17 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade log4j
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade log4j
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 1.2 (Debian / Ubuntu)
Copy apt-cache madison log4j
sudo apt install log4j=<VERSION_BEFORE_1.2>
sudo apt-mark hold log4j
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list log4j
sudo dnf downgrade log4j-<VERSION_BEFORE_1.2>
sudo dnf versionlock add log4j
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
netapp snapmanager MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy snapmanager || rpm -q snapmanager || snapmanager --version
No fixed or unaffected release known
Copy Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
netapp snapmanager MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy snapmanager || rpm -q snapmanager || snapmanager --version
No fixed or unaffected release known
Copy Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
broadcom brocade sannav MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy brocade-sannav || rpm -q brocade-sannav || brocade-sannav --version
No fixed or unaffected release known
Copy Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
qos reload4j UPGRADE
Affected: < 1.2.18.2
Fixed in: 1.2.18.2
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy reload4j || rpm -q reload4j || reload4j --version
2. UPGRADE to 1.2.18.2 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade reload4j
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade reload4j
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
oracle advanced supply chain planning DOWNGRADE
Affected: 12.1 · 12.2
Fixed in: no fixed release known
Safe to downgrade to: a release before 12.1
1. Check installed version
Copy apt-cache policy advanced-supply-chain-planning || rpm -q advanced-supply-chain-planning || advanced-supply-chain-planning --version
2. No fixed release: DOWNGRADE to a release before 12.1 (Debian / Ubuntu)
Copy apt-cache madison advanced-supply-chain-planning
sudo apt install advanced-supply-chain-planning=<VERSION_BEFORE_12.1>
sudo apt-mark hold advanced-supply-chain-planning
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list advanced-supply-chain-planning
sudo dnf downgrade advanced-supply-chain-planning-<VERSION_BEFORE_12.1>
sudo dnf versionlock add advanced-supply-chain-planning
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
Exact fixes by distribution Show all
A distro patch exists: prefer upgrading over downgrading.
Maven · log4j:log4j ·
NO FIX YET · vulnerable: <= 1.2.17 ·
source Maven · org.zenframework.z8.dependencies.commons:log4j-1.2.17 ·
NO FIX YET · vulnerable: <= 2.0 ·
source Fedora 46 · root ·
FIXED · 6.40.04-7.fc46 · FEDORA-2026-7329868400 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-7329868400
Ubuntu 22.04 · apache-log4j1.2 · NOT AFFECTED
Ubuntu 20.04 · apache-log4j1.2 · FIXED · 1.2.17-9ubuntu0.2
Copy sudo apt update && sudo apt install --only-upgrade apache-log4j1.2
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache-log4j1.2)" ge "1.2.17-9ubuntu0.2" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 24.04 · apache-log4j1.2 · NOT AFFECTED
Ubuntu 24.10 · apache-log4j1.2 · NOT AFFECTED
Ubuntu 25.04 · apache-log4j1.2 · NOT AFFECTED
Debian 12 · apache-log4j1.2 · FIXED · 1.2.17-11
Copy sudo apt update && sudo apt install --only-upgrade apache-log4j1.2
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache-log4j1.2)" ge "1.2.17-11" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · apache-log4j1.2 · FIXED · 1.2.17-11
Copy sudo apt update && sudo apt install --only-upgrade apache-log4j1.2
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache-log4j1.2)" ge "1.2.17-11" && echo PATCHED || echo STILL-VULNERABLE
RHEL 6 Extended Lifecycle Support · log4j · FIXED · log4j-1.2.14-6.6.el6_10
Copy sudo dnf upgrade --advisory=RHSA-2022:0442
rpm -q log4j
RHEL 7 · log4j · FIXED · log4j-1.2.17-18.el7_4
Copy sudo dnf upgrade --advisory=RHSA-2022:0442
rpm -q log4j
RHEL 7.3 Advanced Update Support · log4j · FIXED · log4j-1.2.17-17.el7_3
Copy sudo dnf upgrade --advisory=RHSA-2022:0442
rpm -q log4j
RHEL 7.4 Advanced Update Support · log4j · FIXED · log4j-1.2.17-18.el7_4
Copy sudo dnf upgrade --advisory=RHSA-2022:0442
rpm -q log4j
RHEL 7.6 Advanced Update Support · log4j · FIXED · log4j-1.2.17-18.el7_4
Copy sudo dnf upgrade --advisory=RHSA-2022:0442
rpm -q log4j
Copy sudo yum update --advisory=ALAS2-2022-1750
Copy sudo yum update --advisory=ALAS-2023-1718
Public exploits and detection Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Verify at the official source NVD ·
CVE Program ·
Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems. Quick answers How do I fix CVE-2022-23305? log4j: upgrade to newer than 1.2.17; snapmanager: mitigate or apply the listed mitigation; snapmanager: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-23305 being exploited? CVE-2022-23305 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-23305 affect? CVE-2022-23305 affects log4j, snapmanager, snapmanager. Severity is critical (CVSS 9.8). 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 atta
How urgent is CVE-2022-23305? Priority 77/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist
Software pages Apache Log4j vulnerabilities
Related CVEs CVE-2026-34478 HIGH 7.5 UPGRADE Apache Log4j Core's Rfc5424Layout https://logging.apache.org/log4j/2.x/manual/layouts.html#RFC5424Layout , inCVE-2026-34480 HIGH 7.5 UPGRADE Apache Log4j Core's XmlLayout https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout , in versionCVE-2026-34481 HIGH 7.5 UPGRADE Apache Log4j's JsonTemplateLayout https://logging.apache.org/log4j/2.x/manual/json-template-layout.html , in CVE-2026-34477 MEDIUM 5.9 UPGRADE The fix for CVE-2025-68161 https://logging.apache.org/security.html#CVE-2025-68161 was incomplete: it addresCVE-2026-34479 HIGH 7.5 UPGRADE The Log4j1XmlLayout from the Apache Log4j 1-to-Log4j 2 bridge fails to escape characters forbidden by the XML References ← Back to latest CVEs