CVE-2025-54812: USN-9358-1: Apache Log4cxx vulnerabilities
Vulnerability · Reported by Ubuntu Security Notices · · CWE-117
- Severity
- Low Risk score 21/100
- CVSS
- 2.1 v4.0 · from NVD
- Exploit chance (EPSS)
- 1.48% Higher than 75% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
It was discovered that Apache Log4cxx did not properly escape logger names when using HTMLLayout. If an application used untrusted data as a logger name, an attacker could possibly use this issue to perform cross-site scripting attacks when a user viewed the generated HTML log file. (CVE-2025-54812) It was discovered that Apache Log4cxx did not properly escape certain non-printable characters when using JSONLayout. An attacker could possibly use this issue to cause applications that consume the logs to misinterpret the logged information. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2025-54813)
How this vulnerability can be exploited
An attacker can exploit this vulnerability remotely over the network, without any login. Attack complexity is high, meaning specific conditions must exist first.
Is it being exploited?
The EPSS model estimates a 1.48% chance this CVE will be exploited in the next 30 days, which is elevated and higher than 75% of all published CVEs.
Patch priority and what to do
Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S
Tags
CVE-2025-54812, Linux
Sources & references
- Original article / advisory (Ubuntu Security Notices) ↗
- NIST NVD: CVE-2025-54812 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.