Компонент Symfony Config XmlUtils::parse() обеспечивает валидацию DTD, прежде чем отклонять документы, которые несут тип документа, позволяя впрыскивать внешний объект XML (XXE) в версии Symfony до 5.4.56, 6.x до 6.4.50, 7.x до 7.4.23 и 8.x до 8.1.11. Удаленный злоумышленник, который может предоставить XML этому методу, может определить, существуют ли локальные файлы, вызвать отказ в обслуживании и, в некоторых конфигурациях, эксфильтровать локальное содержимое файла через созданный документ XML, чей doctype объявляет внешний файл entity://. XmlUtils::parse() устанавливает $dom->validateOnParse true перед вызовом loadXML() и только после этого отклоняет документы, несущие doctype. Включение проверки DTD позволяет libxml разрешать внешние объекты во время loadXML(), а LIBXML_NONET блокирует http://, но не file://, поэтому объект file:// читается с диска до запуска отказа от doctype.
Содержимое файла не возвращается вызывающему абоненту, но отличительная ошибка libxml для отсутствующего пути показывает, существует ли файл, и объект, указывающий на большой или медленный файл, вызывает отказ в обслуживании. Если приложение регистрирует сетевую обёртку потока, такую как s3://, объект параметров может также отправлять содержимое локального файла на внешний сервер. Это та же проблема, что и CVE-2026-45071, которая была исправлена в компоненте DomCrawler, но не в Config.
Приложения затрагиваются, если они напрямую передают ненадежный XML XmlUtils::parse(). Компоненты Symfony, которые называют его process developer-configured или оператор-configured sources, такие как конфигурационные файлы и документы XLIFF, полученные поставщиками переводов.
Показать оригинальное описание (EN)
The Symfony Config component XmlUtils::parse() enables DTD validation before rejecting documents that carry a doctype, allowing XML external entity (XXE) injection in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. A remote attacker who can supply XML to this method can determine whether local files exist, cause a denial of service, and, in some configurations, exfiltrate local file content via a crafted XML document whose doctype declares an external file:// entity. XmlUtils::parse() sets $dom->validateOnParse = true before calling loadXML() and only rejects documents carrying a doctype afterwards. Enabling DTD validation makes libxml resolve external entities during loadXML(), and LIBXML_NONET blocks http:// but not file://, so a file:// entity is read from disk before the doctype rejection runs. The content of the file is not returned to the caller, but the distinct libxml error for a missing path reveals whether a file exists, and an entity pointing at a large or slow file causes a denial of service. If the application registers a network-capable stream wrapper such as s3://, a parameter entity can also send the content of a local file to an external server. This is the same issue as CVE-2026-45071, which was fixed in the DomCrawler component but not in Config. Applications are affected if they pass untrusted XML to XmlUtils::parse() directly. The Symfony components that call it process developer-provided or operator-configured sources, such as configuration files and the XLIFF documents fetched by the translation providers.
Характеристики атаки
Последствия
Строка CVSS v4.0