Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Apache

CVE-2025-54812

Low · CVSS 2.1EPSS 1.5% First seen December 01, 2026
ApacheWebVulnerabilities

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 whe…

Excerpt from Ubuntu USN. No official description has been published yet.

Severity breakdown

Low · 2.1 CVSS 4.0 base score from the CNA (apache.org)

An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
high (only works under specific conditions)
Special conditions
none
Login needed
no
User action needed
yes, a user must deliberately do something
Impact
low on confidentiality and integrity, none on availability
Impact on other systems
low on confidentiality and integrity, none on availability

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:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 5.4 from NVD: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Weakness

  • CWE-117: Improper Output Neutralization for Logs

Affected and fixed versions

ProductAffected versionsFixed in
Apache Software Foundation Apache Log4cxx< 1.5.01.5.0

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain).

What to do

  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2025-54812?

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 whe… Weakness type: Improper Output Neutralization for Logs (CWE-117).

How severe is CVE-2025-54812?

CVE-2025-54812 has a CVSS 4.0 base score of 2.1 (low), from the CNA (apache.org). An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.

Is CVE-2025-54812 being exploited?

Not as far as is known: CVE-2025-54812 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 1.5% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2025-54812?

Apache Software Foundation Apache Log4cxx < 1.5.0 (fixed in 1.5.0).

How do I fix CVE-2025-54812?

Update to a fixed release: Apache Software Foundation Apache Log4cxx 1.5.0.

Timeline & sources

References

Related vulnerabilities & news