{"id":"CVE-2026-118515","kind":"vulnerability","aliases":["CVE-2026-118515"],"related":[],"title":"Symfony Serializer: crafted request body turns server files into uploads","description":"The Symfony Serializer component DataUriNormalizer handles only the exact types SplFileInfo, SplFileObject, and File, so for a property typed with a subclass such as UploadedFile, ObjectNormalizer instantiates the object through its constructor from attacker-controlled data, including the file path. This allows an arbitrary file on the server to be treated as an uploaded file 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\nA request body such as {\"image\": {\"path\": \"/path/to/project/.env.local\", \"originalName\": \"a.png\", \"test\": true}} makes the application handle any file on the server as an upload, without the file being sent. With test: true, UploadedFile::isValid() skips is_uploaded_file() and move() falls back to rename(). Assert\\File does not prevent this because it validates the file at the attacker-chosen path, which exists on the server.\nAny code that deserializes untrusted data into a type that holds such a property is affected. That includes #[MapRequestPayload] on a DTO with an UploadedFile property, which is how uploads are mapped in Symfony 8.1; a single unauthenticated request with a JSON or form body is enough. Depending on what the application does with the upload, this can expose any file readable by PHP (for instance, when uploads are stored and served back), move any such file when move() is called, and reveal whether a path exists.\n\nA serializer built without DataUriNormalizer ahead of the object normalizer is not protected by the fix; the serializer configured by FrameworkBundle is.","summary":"The Symfony Serializer's DataUriNormalizer does not cover subclasses such as UploadedFile, so ObjectNormalizer builds them from attacker-supplied data including a file path. An attacker can make the application treat any PHP-readable file on the server as an uploaded file, exposing its contents or moving it when move() is called.","severity":"high","cvss":8.4,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["maprequestpayload","package","php","symfony","symfony-serializer"],"not_affected_if":["no-uploadedfile-in-dtos","static-export"],"how_to_check":"- Check the installed Symfony version with `composer show symfony/serializer` or `composer show symfony/framework-bundle`.\n- Look for DTOs or deserialized types with an `UploadedFile` property, especially those used with `#[MapRequestPayload]`.\n- Confirm whether the app uses FrameworkBundle's default serializer or builds its own serializer without DataUriNormalizer.","fix":"- Symfony 5.4: upgrade to `5.4.56` or later\n- Symfony 6.4: upgrade to `6.4.50` or later\n- Symfony 7.4: upgrade to `7.4.23` or later\n- Symfony 8.1: upgrade to `8.1.11` or later","status":"open","published_at":"2026-11-06T17:17:16+00:00","first_seen_at":"2026-11-06T17:43:12+00:00","triaged_at":"2026-11-06T17:44:54+00:00","updated_at":"2026-11-06T17:44:54+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-06T17:44:54Z","model":"claude-haiku-5-5","output":{"fix":"- Symfony 5.4: upgrade to `5.4.56` or later\n- Symfony 6.4: upgrade to `6.4.50` or later\n- Symfony 7.4: upgrade to `7.4.23` or later\n- Symfony 8.1: upgrade to `8.1.11` or later","reach":"internet","title":"Symfony Serializer: crafted request body turns server files into uploads","impact":"high","summary":"The Symfony Serializer's DataUriNormalizer does not cover subclasses such as UploadedFile, so ObjectNormalizer builds them from attacker-supplied data including a file path. An attacker can make the application treat any PHP-readable file on the server as an uploaded file, exposing its contents or moving it when move() is called.","audience":"businesses","category":"package","nicknames":[],"who_cares":["symfony","php","symfony-serializer","mapRequestPayload"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"attacker reads or moves server files readable by PHP","analyst_note":"","how_to_check":"- Check the installed Symfony version with `composer show symfony/serializer` or `composer show symfony/framework-bundle`.\n- Look for DTOs or deserialized types with an `UploadedFile` property, especially those used with `#[MapRequestPayload]`.\n- Confirm whether the app uses FrameworkBundle's default serializer or builds its own serializer without DataUriNormalizer.","plain_action":"","needs_analyst":false,"not_affected_if":["no-uploadedfile-in-dtos","static-export"],"who_is_affected":"Applications that deserialize untrusted JSON or form bodies into types with an UploadedFile property, including DTOs mapped with #[MapRequestPayload] in Symfony 8.1. A serializer built without DataUriNormalizer ahead of the object normalizer is not protected by the fix; the FrameworkBundle serializer is.","user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000825,"input_tokens":4704,"output_tokens":710,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-118515':13A,16A '-2026':12A,15A '/path/to/project/.env.local':163C '5.4.56':139C '6':140C '6.4.50':144C '7':145C '7.4.23':149C '8':151C '8.1':256C '8.1.11':155C 'a.png':165C 'affect':237C 'ahead':314C 'allow':120C 'applic':54B,170C,273C 'arbitrari':122C 'assert':200C 'attack':42B,50B,112C,214C 'attacker-chosen':213C 'attacker-control':111C 'attacker-suppli':41B 'back':197C,294C 'bodi':5A,158C,266C 'build':38B 'built':311C 'call':77B,302C 'chosen':215C 'code':223C 'compon':81C 'configur':327C 'constructor':109C 'content':70B 'control':113C 'cover':31B 'craft':3A 'cve':11A,14A 'data':44B,114C,227C 'dataurinorm':28B,82C,313C 'depend':269C 'deseri':225C 'dto':243C 'enough':268C 'exact':86C 'exist':218C,308C 'expos':68B,280C 'fall':196C 'file':8A,47B,60B,67B,91C,117C,123C,133C,173C,182C,193C,201C,210C,282C,298C 'fix':324C 'form':265C 'frameworkbundl':329C 'handl':83C,171C 'hold':232C 'imag':161C 'includ':45B,115C,239C 'instanc':287C 'instanti':104C 'isvalid':189C 'json':263C 'make':52B,168C 'map':253C 'maprequestpayload':17B,240C 'move':72B,75B,195C,295C,300C 'normal':318C 'object':106C,317C 'objectnorm':37B,103C 'originalnam':164C 'packag':18B 'path':48B,118C,162C,216C,307C 'php':19B,58B,285C 'php-readabl':57B 'prevent':204C 'prior':137C,142C,147C,153C 'properti':95C,235C,247C 'protect':321C 'readabl':59B,283C 'renam':199C 'request':4A,157C,260C 'reveal':304C 'sent':184C 'serial':2A,23B,26B,80C,310C,326C 'serv':293C 'server':7A,63B,126C,176C,221C 'singl':258C 'skip':190C 'splfileinfo':88C 'splfileobject':89C 'store':291C 'subclass':32B,99C 'suppli':43B 'symfoni':1A,20B,22B,25B,79C,135C,255C 'symfony-seri':21B 'test':166C,186C 'treat':55B,129C 'true':167C,187C 'turn':6A 'type':87C,96C,230C 'unauthent':259C 'untrust':226C 'upload':10A,66B,132C,179C,192C,251C,277C,289C 'uploadedfil':35B,102C,188C,246C 'valid':208C 'version':136C 'whether':305C 'without':180C,312C 'x':141C,146C,152C","nicknames":[],"mitigations":[],"who_affected":"Applications that deserialize untrusted JSON or form bodies into types with an UploadedFile property, including DTOs mapped with #[MapRequestPayload] in Symfony 8.1. A serializer built without DataUriNormalizer ahead of the object normalizer is not protected by the fix; the FrameworkBundle serializer is.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["high","maprequestpayload","package","php","symfony","symfonyserializer"],"campaign_type":null,"search_a":"'-118515':13A,16A '-2026':12A,15A 'bodi':5A 'craft':3A 'cve':11A,14A 'file':8A 'request':4A 'serial':2A 'server':7A 'symfoni':1A 'turn':6A 'upload':10A","search_b":"'applic':54B 'attack':42B,50B 'attacker-suppli':41B 'build':38B 'call':77B 'content':70B 'cover':31B 'data':44B 'dataurinorm':28B 'expos':68B 'file':47B,60B,67B 'includ':45B 'make':52B 'maprequestpayload':17B 'move':72B,75B 'objectnorm':37B 'packag':18B 'path':48B 'php':19B,58B 'php-readabl':57B 'readabl':59B 'serial':23B,26B 'server':63B 'subclass':32B 'suppli':43B 'symfoni':20B,22B,25B 'symfony-seri':21B 'treat':55B 'upload':66B 'uploadedfil':35B","search_c":"'/path/to/project/.env.local':163C '5.4.56':139C '6':140C '6.4.50':144C '7':145C '7.4.23':149C '8':151C '8.1':256C '8.1.11':155C 'a.png':165C 'affect':237C 'ahead':314C 'allow':120C 'applic':170C,273C 'arbitrari':122C 'assert':200C 'attack':112C,214C 'attacker-chosen':213C 'attacker-control':111C 'back':197C,294C 'bodi':158C,266C 'built':311C 'call':302C 'chosen':215C 'code':223C 'compon':81C 'configur':327C 'constructor':109C 'control':113C 'data':114C,227C 'dataurinorm':82C,313C 'depend':269C 'deseri':225C 'dto':243C 'enough':268C 'exact':86C 'exist':218C,308C 'expos':280C 'fall':196C 'file':91C,117C,123C,133C,173C,182C,193C,201C,210C,282C,298C 'fix':324C 'form':265C 'frameworkbundl':329C 'handl':83C,171C 'hold':232C 'imag':161C 'includ':115C,239C 'instanc':287C 'instanti':104C 'isvalid':189C 'json':263C 'make':168C 'map':253C 'maprequestpayload':240C 'move':195C,295C,300C 'normal':318C 'object':106C,317C 'objectnorm':103C 'originalnam':164C 'path':118C,162C,216C,307C 'php':285C 'prevent':204C 'prior':137C,142C,147C,153C 'properti':95C,235C,247C 'protect':321C 'readabl':283C 'renam':199C 'request':157C,260C 'reveal':304C 'sent':184C 'serial':80C,310C,326C 'serv':293C 'server':126C,176C,221C 'singl':258C 'skip':190C 'splfileinfo':88C 'splfileobject':89C 'store':291C 'subclass':99C 'symfoni':79C,135C,255C 'test':166C,186C 'treat':129C 'true':167C,187C 'type':87C,96C,230C 'unauthent':259C 'untrust':226C 'upload':132C,179C,192C,251C,277C,289C 'uploadedfil':102C,188C,246C 'valid':208C 'version':136C 'whether':305C 'without':180C,312C 'x':141C,146C,152C","first_public_at":"2026-11-04T11:43:42+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/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":"nvd","external_id":"CVE-2026-118515","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118515","severity":null,"published_at":"2026-11-06T17:17:16+00:00","modified_at":"2026-11-06T17:17:16+00:00","first_seen_at":"2026-11-06T17:43:12+00:00","fetched_at":"2026-11-06T17:43:12+00:00","note":null}],"documents":[{"id":88373,"url":"https://github.com/symfony/symfony/commit/72ece5bb3084e8233325166357f85c8c0650ee86","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":88374,"url":"https://github.com/symfony/symfony/commit/c459104eb18ebda31e112c5490970da3f30bd668","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":88375,"url":"https://github.com/symfony/symfony/security/advisories/GHSA-h38r-xrmh-cwhr","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-04T11:43:42+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}