{"id":"CVE-2026-108082","kind":"vulnerability","aliases":["CVE-2026-108082","GHSA-r925-mgvr-h9cc"],"related":[],"title":"Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header","description":"### Description\n\n`HeaderUtils::split()` parsed header values with a pattern whose token alternative also matched whitespace, followed by a `(?<!\\s)` lookbehind. A run of whitespace placed before a separator could be divided among the iterations of the enclosing repetition in exponentially many ways, and the engine tried all of them before settling. `HeaderBag` calls it for the `Cache-Control` header whenever a `Request` is built, so any application handling HTTP requests is reachable, with no authentication.\n\nA single request carrying such a header costs close to a second of CPU (813 ms for a run of 17 spaces in an 8 KB header on PHP 8.5, doubling with each extra space). From 18 spaces on, `preg_match_all()` gives up at `pcre.backtrack_limit` and `split()` returns an empty array, so every directive of the header is silently dropped.\n\n### Resolution\n\nThe pattern now consumes whitespace only when more of the value follows it, so a value can no longer end on whitespace, nothing has to be given back, and every quantifier is possessive. The first release of this fix broke splitting on a whitespace separator: `HeaderUtils::split('foo bar', ' ')` returned a single value in 6.4.46 to 6.4.47, 7.4.19 to 7.4.20 and 8.1.7 to 8.1.8. Whitespace characters used as separators are now left out of the whitespace branch, which 6.4.48, 7.4.21 and 8.1.9 contain.\n\nThe patches for this issue are available [here](https://github.com/symfony/symfony/commit/343a1772ce6ac03e48b228d2d7168d19750e3f36) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).\n\n### Credits\n\nSymfony would like to thank [r3verii](https://github.com/r3verii) for reporting the issue and Nicolas Grekas for providing the fix.\n\nSymfony would also like to thank [Bruno Dias](https://github.com/cx-bruno-dias) from Checkmarx for his help getting a CVE assigned.","summary":"HeaderUtils::split() in Symfony's HttpFoundation uses a regular expression that backtracks exponentially on runs of whitespace in the Cache-Control header. A single unauthenticated request with such a header costs close to a second of CPU per 17 spaces, doubling with each extra space, and from 18 spaces on the header's directives are silently dropped.","severity":"high","cvss":8.7,"epss":0.0048,"exploited":false,"exploited_at":null,"products":[{"name":"symfony/http-foundation","fixed":["6.4.46"],"affected":">= 6.0.1, < 6.4.46","ecosystem":"composer"},{"name":"symfony/http-foundation","fixed":["7.4.19"],"affected":">= 7.0.0, < 7.4.19","ecosystem":"composer"},{"name":"symfony/http-foundation","fixed":["8.1.7"],"affected":">= 8.0.0, < 8.1.7","ecosystem":"composer"},{"name":"symfony/symfony","fixed":["6.4.46"],"affected":">= 6.0.1, < 6.4.46","ecosystem":"composer"},{"name":"symfony/symfony","fixed":["7.4.19"],"affected":">= 7.0.0, < 7.4.19","ecosystem":"composer"},{"name":"symfony/symfony","fixed":["8.1.7"],"affected":">= 8.0.0, < 8.1.7","ecosystem":"composer"},{"name":"symfony/http-foundation","fixed":["5.4.54"],"affected":">= 4.1.0, < 5.4.54","ecosystem":"composer"},{"name":"symfony/symfony","fixed":["5.4.54"],"affected":">= 4.1.0, < 5.4.54","ecosystem":"composer"}],"ecosystems":["composer"],"tags":["composer","cwe-1333","package","php","self-hosted","symfony","web-app"],"not_affected_if":["auth-required"],"how_to_check":"- Run `composer show symfony/http-foundation` and `composer show symfony/symfony` and compare against the fixed versions below.\n- Check the installed version of the Symfony packages in `composer.lock`.","fix":"- Upgrade symfony/http-foundation and symfony/symfony to `6.4.48`, `7.4.21` or `8.1.9` on their branches (the 6.4.46 to 6.4.47, 7.4.19 to 7.4.20 and 8.1.7 to 8.1.8 releases broke whitespace separators).\n- Upgrade 5.4 installs to `5.4.54`.","status":"open","published_at":"2026-10-15T15:17:22+00:00","first_seen_at":"2026-10-27T19:04:56+00:00","triaged_at":"2026-10-27T19:05:56+00:00","updated_at":"2026-10-27T19:33:18+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-27T19:05:56Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade symfony/http-foundation and symfony/symfony to `6.4.48`, `7.4.21` or `8.1.9` on their branches (the 6.4.46 to 6.4.47, 7.4.19 to 7.4.20 and 8.1.7 to 8.1.8 releases broke whitespace separators).\n- Upgrade 5.4 installs to `5.4.54`.","reach":"internet","title":"Symfony: crafted Cache-Control header makes requests burn CPU","impact":"low","summary":"HeaderUtils::split() in Symfony's HttpFoundation uses a regular expression that backtracks exponentially on runs of whitespace in the Cache-Control header. A single unauthenticated request with such a header costs close to a second of CPU per 17 spaces, doubling with each extra space, and from 18 spaces on the header's directives are silently dropped.","category":"package","nicknames":[],"who_cares":["symfony","php","composer","self-hosted","web-app"],"confidence":0.8,"needs_auth":"no","worst_case":"Single request ties up a PHP worker, causing CPU exhaustion and slowdown","analyst_note":"","how_to_check":"- Run `composer show symfony/http-foundation` and `composer show symfony/symfony` and compare against the fixed versions below.\n- Check the installed version of the Symfony packages in `composer.lock`.","needs_analyst":false,"not_affected_if":["auth-required"],"who_is_affected":"Any application built on Symfony HttpFoundation that builds a Request from incoming HTTP traffic is reachable, because HeaderBag parses Cache-Control on every Request. Exposure is over the internet with no authentication, so public-facing services are the priority. Command-line jobs that never build a Request from untrusted headers are less exposed.","user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000756,"input_tokens":4259,"output_tokens":660,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-108082':16A,24A '-1333':35B '-2026':15A,23A '/cx-bruno-dias)':380C '/r3verii)':358C '/symfony/symfony/commit/343a1772ce6ac03e48b228d2d7168d19750e3f36)':335C '17':84B,199C '18':93B,215C '5.4':338C '6.4':344C '6.4.46':296C '6.4.47':298C '6.4.48':320C '7.4':345C '7.4.19':299C '7.4.20':301C '7.4.21':321C '8':203C '8.1':346C '8.1.7':303C '8.1.8':305C '8.1.9':323C '8.2':348C '8.5':208C '813':193C 'also':115C,372C 'altern':114C 'among':134C 'app':44B 'applic':170C 'array':231C 'assign':389C 'authent':178C 'avail':331C 'back':269C 'backtrack':56B 'bar':290C 'branch':318C,337C 'broke':281C 'bruno':376C 'built':167C 'cach':10A,65B,160C 'cache-control':9A,64B,159C 'call':155C 'carri':182C 'charact':307C 'checkmarx':382C 'close':77B,187C 'compos':33B 'consum':245C 'contain':324C 'control':11A,66B,161C 'cost':76B,186C 'could':131C 'cpu':82B,192C 'credit':349C 'cve':14A,22A,388C 'cwe':34B 'descript':103C 'dia':377C 'direct':99B,234C 'divid':133C 'doubl':86B,209C 'drop':102B,240C 'empti':230C 'enclos':139C 'end':261C 'engin':147C 'everi':233C,271C 'exponenti':57B,142C 'express':54B 'extra':89B,212C 'first':276C 'fix':280C,369C 'follow':118C,253C 'foo':289C 'forward':341C 'forward-port':340C 'get':386C 'ghsa':18A 'ghsa-r925-mgvr-h9cc':17A 'github.com':334C,357C,379C 'github.com/cx-bruno-dias)':378C 'github.com/r3verii)':356C 'github.com/symfony/symfony/commit/343a1772ce6ac03e48b228d2d7168d19750e3f36)':333C 'give':221C 'given':268C 'greka':365C 'h9cc':21A 'handl':171C 'header':13A,67B,75B,97B,107C,162C,185C,205C,237C 'headerbag':154C 'headerutil':4A,45B,104C,287C 'help':385C 'host':40B 'http':172C 'httpfoundat':50B 'issu':329C,362C 'iter':136C 'kb':204C 'left':313C 'like':352C,373C 'limit':225C 'longer':260C 'lookbehind':122C 'mani':143C 'match':116C,219C 'mgvr':20A 'ms':194C 'nicola':364C 'noth':264C 'packag':36B 'pars':106C 'patch':326C 'pattern':111C,243C 'pcre.backtrack':224C 'per':83B 'php':37B,207C 'place':127C 'port':342C 'possess':274C 'preg':218C 'provid':367C 'quantifi':272C 'r3verii':355C 'r925':19A 'reachabl':6A,175C 'redo':2A 'regular':53B 'releas':277C 'repetit':140C 'report':360C 'request':12A,71B,165C,173C,181C 'resolut':241C 'return':228C,291C 'run':59B,124C,197C 'second':80B,190C 'self':39B 'self-host':38B 'separ':130C,286C,310C 'settl':153C 'silent':101B,239C 'singl':69B,180C,293C 'space':85B,90B,94B,200C,213C,216C 'split':5A,46B,105C,227C,282C,288C 'symfoni':1A,41B,48B,350C,370C 'symfony/http-foundation':25A,26A,27A,31A 'symfony/symfony':28A,29A,30A,32A 'thank':354C,375C 'token':113C 'tri':148C 'unauthent':70B 'use':51B,308C 'valu':108C,252C,257C,294C 'way':144C 'web':43B 'web-app':42B 'whenev':163C 'whitespac':61B,117C,126C,246C,263C,285C,306C,317C 'whose':112C 'would':351C,371C","nicknames":[],"mitigations":[],"who_affected":"Any application built on Symfony HttpFoundation that builds a Request from incoming HTTP traffic is reachable, because HeaderBag parses Cache-Control on every Request. Exposure is over the internet with no authentication, so public-facing services are the priority. Command-line jobs that never build a Request from untrusted headers are less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-15T15:17:22+00:00","kev":null,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"596c5446-0ce5-4ba2-aa66-48b3b757a647","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-r925-mgvr-h9cc","url":"https://github.com/advisories/GHSA-r925-mgvr-h9cc","severity":"high","published_at":"2026-10-27T19:01:39+00:00","modified_at":"2026-10-27T19:01:40+00:00","first_seen_at":"2026-10-27T19:04:56+00:00","fetched_at":"2026-10-27T19:04:56+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-108082","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108082","severity":null,"published_at":"2026-10-15T15:17:22+00:00","modified_at":"2026-10-16T16:00:33+00:00","first_seen_at":"2026-10-27T19:33:18+00:00","fetched_at":"2026-10-27T19:33:18+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}