# JLSEC-2025-58: In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD...

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-10-14T15:35:41.198Z
- Modified: 2026-07-25T18:23:43.303Z
- Related: CVE-2022-43680

## Description

In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in `XML_ExternalEntityParserCreate` in out-of-memory situations.

(As written by Julia Security Advisories.)

## Affected

- Expat_jll (Julia): before 2.5.0+0

## References

- <http://www.openwall.com/lists/oss-security/2023/12/28/5> (web)
- <http://www.openwall.com/lists/oss-security/2024/01/03/5> (web)
- <https://github.com/libexpat/libexpat/issues/649> (web)
- <https://github.com/libexpat/libexpat/pull/616> (web)
- <https://github.com/libexpat/libexpat/pull/650> (web)
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00033.html> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AJ5VY2VYXE4WTRGQ6LMGLF6FV3SY37YE/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BY4OPSIB33ETNUXZY2UPZ4NGQ3OKDY4D/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DPQVIF6TOJNY2T3ZZETFKR4G34FFREBQ/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FFCOMBSOJKLIKCGCJWHLJXO4EVYBG7AR/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUJ2BULJTZ2BMSKQHB6US674P55UCWWS/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XG5XOOB7CD55CEE6OJYKSACSIMQ4RWQ6/> (web)
- <https://security.gentoo.org/glsa/202210-38> (web)
- <https://security.netapp.com/advisory/ntap-20221118-0007/> (web)
- <https://www.debian.org/security/2022/dsa-5266> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-58](https://osv.dev/vulnerability/JLSEC-2025-58), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2025-58 · Whole record: https://cve.day/JLSEC-2025-58.json · Rebuilt by cve.day 2026-11-25T22:56:25.816Z
