{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-54812","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","state":"PUBLISHED","assignerShortName":"apache","dateReserved":"2025-07-30T01:08:11.079Z","datePublished":"2025-08-22T18:46:46.205Z","dateUpdated":"2025-11-04T21:12:52.982Z"},"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Apache Log4cxx","vendor":"Apache Software Foundation","versions":[{"lessThan":"1.5.0","status":"affected","version":"0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"sponsor","value":"Sovereign Tech Agency"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Improper Output Neutralization for Logs vulnerability in Apache Log4cxx.</p>\n<p>When using <code>HTMLLayout</code>, logger names are not properly escaped when writing out to the HTML file.\nIf untrusted data is used to retrieve the name of a logger, an attacker could theoretically inject HTML or Javascript in order to hide information from logs or steal data from the user.\nIn order to activate this, the following sequence must occur:</p>\n<ol>\n<li>Log4cxx is configured to use <code>HTMLLayout</code>.</li>\n<li>Logger name comes from an untrusted string</li>\n<li>Logger with compromised name logs a message</li>\n<li>User opens the generated HTML log file in their browser, leading to potential XSS</li>\n</ol>\n<p>Because logger names are generally constant strings, we assess the impact to users as LOW</p>\n<p>This issue affects Apache Log4cxx: before <code>1.5.0</code>.</p>\n<p>Users are recommended to upgrade to version <code>1.5.0</code>, which fixes the issue.</p>"}],"value":"Improper Output Neutralization for Logs vulnerability in Apache Log4cxx.\n\n\nWhen using HTMLLayout, logger names are not properly escaped when writing out to the HTML file.\nIf untrusted data is used to retrieve the name of a logger, an attacker could theoretically inject HTML or Javascript in order to hide information from logs or steal data from the user.\nIn order to activate this, the following sequence must occur:\n\n\n\n  *  Log4cxx is configured to use HTMLLayout.\n\n  *  Logger name comes from an untrusted string\n\n  *  Logger with compromised name logs a message\n\n  *  User opens the generated HTML log file in their browser, leading to potential XSS\n\n\nBecause logger names are generally constant strings, we assess the impact to users as LOW\n\n\nThis issue affects Apache Log4cxx: before 1.5.0.\n\n\nUsers are recommended to upgrade to version 1.5.0, which fixes the issue."}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"HIGH","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":2.1,"baseSeverity":"LOW","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]},{"other":{"content":{"text":"low"},"type":"Textual description of severity"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-117","description":"CWE-117 Improper Output Neutralization for Logs","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","shortName":"apache","dateUpdated":"2025-08-22T18:46:46.205Z"},"references":[{"tags":["vendor-advisory"],"url":"https://logging.apache.org/security.html#CVE-2025-54812"},{"tags":["patch"],"url":"https://github.com/apache/logging-log4cxx/pull/509"},{"tags":["patch"],"url":"https://github.com/apache/logging-log4cxx/pull/514"}],"source":{"discovery":"UNKNOWN"},"title":"Apache Log4cxx: Improper HTML escaping in HTMLLayout","x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-08-22T19:07:34.778098Z","id":"CVE-2025-54812","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2025-08-22T19:07:53.330Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00002.html"},{"url":"http://www.openwall.com/lists/oss-security/2025/08/22/2"}],"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2025-11-04T21:12:52.982Z"}}]}}