{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-123792","assignerOrgId":"596c5446-0ce5-4ba2-aa66-48b3b757a647","state":"PUBLISHED","assignerShortName":"Checkmarx","dateReserved":"2026-11-06T14:48:55.784Z","datePublished":"2026-11-06T15:19:58.366Z","dateUpdated":"2026-11-06T15:19:58.366Z"},"containers":{"cna":{"providerMetadata":{"orgId":"596c5446-0ce5-4ba2-aa66-48b3b757a647","shortName":"Checkmarx","dateUpdated":"2026-11-06T15:19:58.366Z"},"title":"Symfony: Exponential and Quadratic Parse Times in the YAML Parser Let a Single Document Hold a Process","datePublic":"2026-11-06T15:19:00.000Z","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-407","description":"CWE-407 Inefficient Algorithmic Complexity","type":"CWE"}]},{"descriptions":[{"lang":"en","cweId":"CWE-1333","description":"CWE-1333 Inefficient regular expression complexity","type":"CWE"}]}],"affected":[{"vendor":"sensiolabs","product":"symfony","collectionURL":"https://packagist.org/packages/symfony/yaml","packageName":"symfony/yaml","repo":"https://github.com/symfony/yaml","modules":["Symfony\\Component\\Yaml\\Inline","Symfony\\Component\\Yaml\\Parser"],"versions":[{"status":"affected","version":"0","lessThan":"5.4.56","versionType":"git"},{"status":"affected","version":"6.0.0","lessThan":"6.4.50","versionType":"git"},{"status":"affected","version":"7.0.0","lessThan":"7.4.23","versionType":"git"},{"status":"affected","version":"8.0.0","lessThan":"8.1.11","versionType":"git"}],"defaultStatus":"unaffected"}],"cpeApplicability":[{"operator":"OR","nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","versionStartIncluding":"0","versionEndExcluding":"5.4.56"},{"vulnerable":true,"criteria":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0.0","versionEndExcluding":"6.4.50"},{"vulnerable":true,"criteria":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.0","versionEndExcluding":"7.4.23"},{"vulnerable":true,"criteria":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","versionStartIncluding":"8.0.0","versionEndExcluding":"8.1.11"}]}]}],"descriptions":[{"lang":"en","value":"The Symfony Yaml components Inline and Parser, parse some YAML documents inefficiently, so that a small crafted document can take disproportionately long to process, keeping a PHP process busy for seconds or minutes, potentially causing a denial of service 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.\n\nThe parser repeats work it has already done in several places. An embedded mapping in a flow sequence is parsed again for every scalar appended to it, and so are the collections nested in it, so the parse time grows exponentially with the nesting depth. The patterns matching mapping keys and tags scan a run of spaces once per character of the run, and each scalar of a flow collection is matched against a copy of the rest of the collection, so the parse time grows quadratically with the size of the input. Nested blocks are also copied at each nesting level, which consumes memory as well as time. A few other constructs, such as an empty sequence item followed by a blank line or an anchor named 0, trigger similar repeated work.\n\n\nAny code parsing untrusted YAML is affected, with the default flags. In Symfony 7.4 and later, that includes #[MapRequestPayload] when the Yaml component is installed and the endpoint does not restrict acceptFormat. A single unauthenticated request with a YAML content type keeps a PHP worker busy until max_execution_time. JSON documents are valid YAML, so a JSON payload sent with a YAML content type is enough for the flow collection case. In Symfony 6.4, #[MapRequestPayload] accepts YAML only when the application registers a yaml request format.","supportingMedia":[{"type":"text/html","base64":false,"value":"<div>The Symfony Yaml components&nbsp;<code>Inline</code>&nbsp;and&nbsp;<code>Parser</code>, parse some YAML documents inefficiently, so that a small crafted document can take disproportionately long to process, keeping a PHP process busy for seconds or minutes, potentially causing a denial of service 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.</div><div>The parser repeats work it has already done in several places. An embedded mapping in a flow sequence is parsed again for every scalar appended to it, and so are the collections nested in it, so the parse time grows exponentially with the nesting depth. The patterns matching mapping keys and tags scan a run of spaces once per character of the run, and each scalar of a flow collection is matched against a copy of the rest of the collection, so the parse time grows quadratically with the size of the input. Nested blocks are also copied at each nesting level, which consumes memory as well as time. A few other constructs, such as an empty sequence item followed by a blank line or an anchor named <code>0</code>, trigger similar repeated work.</div><div>\nAny code parsing untrusted YAML is affected, with the default flags. In Symfony 7.4 and later, that includes <code>#[MapRequestPayload]</code> when the Yaml component is installed and the endpoint does not restrict <code>acceptFormat</code>. A single unauthenticated request with a YAML content type keeps a PHP worker busy until <code>max_execution_time</code>. JSON documents are valid YAML, so a JSON payload sent with a YAML content type is enough for the flow collection case. In Symfony 6.4, <code>#[MapRequestPayload]</code> accepts YAML only when the application registers a <code>yaml</code> request format.</div>"}]}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-hwfg-qwvh-2wfx","tags":["third-party-advisory"]},{"url":"https://github.com/symfony/symfony/commit/487f63bf2cacebc8ed8273c5c10d92955acd2402","tags":["patch"]},{"url":"https://github.com/symfony/symfony/commit/08db22d52e5d3e6ec2f5c50db30a4d818100ffb9","tags":["patch"]},{"url":"https://github.com/symfony/symfony/commit/49e03035eda3000e978a4612db74900013255ccd","tags":["patch"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.7,"vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}}],"credits":[{"lang":"en","value":"Sebastian Bergmann","type":"reporter"},{"lang":"en","value":"Nicolas Grekas","type":"remediation developer"}],"source":{"advisory":"GHSA-hwfg-qwvh-2wfx","discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.5"}}}}