{"id":"CVE-2025-54812","details":"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.","modified":"2026-04-12T17:14:04.749468Z","published":"2025-08-22T19:15:39.803Z","related":["openSUSE-SU-2025:15549-1"],"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/08/22/2"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00002.html"},{"type":"ADVISORY","url":"https://logging.apache.org/security.html#CVE-2025-54812"},{"type":"FIX","url":"https://github.com/apache/logging-log4cxx/pull/509"},{"type":"FIX","url":"https://github.com/apache/logging-log4cxx/pull/514"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/logging-log4cxx","events":[{"introduced":"0"},{"fixed":"36d829e9f6c3f9f4f9a42e22df326a9ed7b6e373"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"1.5.0"}]}}],"versions":["rel/v0.11.0","rel/v0.12.0","rel/v1.0.0","rel/v1.1.0","rel/v1.2.0","rel/v1.3.0","rel/v1.3.1","rel/v1.4.0","start@308070","v0.11.0","v0.11.0-RC2","v0.12.0-RC1","v0.12.0-RC2","v0_10_0","v0_10_0-rc1@630108","v0_10_0-rc2@630385","v0_10_0-rc3@642292","v0_10_0-rc4@642345","v0_10_0-rc5@642398","v0_10_0-rc6@642451","v0_10_0-rc7@642910","v0_10_0-rc8@1554779","v0_10_0-rc8@643170","v0_10_0@1554779","v0_10_0@643170","v0_10_0@644134","v0_9_4@308324","v0_9_5@308470","v0_9_6@308556","v0_9_7@308613","v1.0.0-RC1","v1.1.0-RC1","v1.1.0-RC2","v1.2.0-RC1","v1.3.0-RC1","v1.3.1-RC1","v1.4.0-RC1"],"database_specific":{"vanir_signatures_modified":"2026-04-12T17:14:04Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54812.json","vanir_signatures":[{"signature_version":"v1","signature_type":"Function","source":"https://github.com/apache/logging-log4cxx/commit/36d829e9f6c3f9f4f9a42e22df326a9ed7b6e373","digest":{"length":3056,"function_hash":"10636917034860357691950248520641527351"},"target":{"file":"src/main/cpp/htmllayout.cpp","function":"HTMLLayout::format"},"id":"CVE-2025-54812-120130bd","deprecated":false},{"signature_version":"v1","signature_type":"Line","source":"https://github.com/apache/logging-log4cxx/commit/36d829e9f6c3f9f4f9a42e22df326a9ed7b6e373","digest":{"threshold":0.9,"line_hashes":["115691767293790437547274272574744740826","60396630125891992715968264925339125937","327368558982129340238677189056450901036","7425681559027065050971577842272102878","101187088396883741962641609904519558325","249990908515447934987227464968077885223"]},"target":{"file":"src/main/cpp/htmllayout.cpp"},"id":"CVE-2025-54812-592ad030","deprecated":false}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}