# CVE-2026-34479: Apache Log4j 1 to Log4j 2 bridge: Silent log event loss in Log4j1XmlLayout due to unescaped XML 1.0 forbidden characters

- Severity: Medium 6.9 (CVSS:4.0, scored by apache) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T15:41:07.888Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-h383-gmxw-35v2
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: apache

## Description

The Log4j1XmlLayout from the Apache Log4j 1-to-Log4j 2 bridge fails to escape characters forbidden by the XML 1.0 standard, producing malformed XML output. Conforming XML parsers are required to reject documents containing such characters with a fatal error, which may cause downstream log processing systems to drop or fail to index affected records.

Two groups of users are affected:

  *  Those using Log4j1XmlLayout directly in a Log4j Core 2 configuration file.
  *  Those using the Log4j 1 configuration compatibility layer with org.apache.log4j.xml.XMLLayout specified as the layout class.


Users are advised to upgrade to Apache Log4j 1-to-Log4j 2 bridge version 2.25.4, which corrects this issue.

Note: The Apache Log4j 1-to-Log4j 2 bridge is deprecated and will not be present in Log4j 3. Users are encouraged to consult the  Log4j 1 to Log4j 2 migration guide https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html , and specifically the section on eliminating reliance on the bridge.

(As written by CVE List.)

## Affected

- org.apache.logging.log4j:log4j-1.2-api: from 2.7 before 2.25.4; from 3.0.0-alpha1 up to 3.0.0-beta2
- org.apache.logging.log4j:log4j-core (Maven): from 2.7 before 2.25.4; from 3.0.0-beta1 up to 3.0.0-beta2
- apache log4j: from 2.7 before 2.25.4; 3.0.0

## Every score

- apache: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/apache/logging-log4j2/pull/4078> (exploit, issue-tracking, patch, web)
- <https://logging.apache.org/security.html#CVE-2026-34479> (vendor-advisory, web)
- <https://logging.apache.org/cyclonedx/vdr.xml> (vendor-advisory, web)
- <https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html> (mitigation, related, web)
- <https://lists.apache.org/thread/gd0hp6mj17rn3kj279vgy4p7kd4zz5on> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/04/10/8> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34479> (advisory)
- <https://github.com/apache/logging-log4j2> (package)

## Sources

- CVE List: [CVE-2026-34479](https://www.cve.org/CVERecord?id=CVE-2026-34479), CVE Terms of Use, modified 2026-04-10
- GitHub Advisory Database: [GHSA-h383-gmxw-35v2](https://github.com/advisories/GHSA-h383-gmxw-35v2), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2026-34479](https://nvd.nist.gov/vuln/detail/CVE-2026-34479), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-34479 · Whole record: https://cve.day/CVE-2026-34479.json · Rebuilt by cve.day 2026-11-25T22:59:18.500Z
