{"id":"CVE-2018-19789","state":"PUBLISHED","title":"An issue was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before 3.4.20, 4.0.x before 4.0.15, 4.1.x before 4.1.9, and 4.2.x before 4.2.1. When using the scal","description":"An issue was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before 3.4.20, 4.0.x before 4.0.15, 4.1.x before 4.1.9, and 4.2.x before 4.2.1. When using the scalar type hint `string` in a setter method (e.g. `setName(string $name)`) of a class that's the `data_class` of a form, and when a file upload is submitted to the corresponding field instead of a normal text input, then `UploadedFile::__toString()` is called which will then return and disclose the path of the uploaded file. If combined with a local file inclusion issue in certain circumstances this could escalate it to a Remote Code Execution.","publishedAt":"2018-12-18T22:00:00.000Z","updatedAt":"2024-08-05T11:44:20.339Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7/","http://www.securityfocus.com/bid/106249","https://symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path","https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE/","https://www.debian.org/security/2019/dsa-4441","https://seclists.org/bugtraq/2019/May/21"],"weaknesses":[],"ingestedAt":"2026-10-29T19:44:34.704Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2018/19xxx/CVE-2018-19789.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2018-19789","state":"PUBLISHED","datePublished":"2018-12-18T22:00:00.000Z","dateUpdated":"2024-08-05T11:44:20.339Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2018-12-02T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"An issue was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before 3.4.20, 4.0.x before 4.0.15, 4.1.x before 4.1.9, and 4.2.x before 4.2.1. When using the scalar type hint `string` in a setter method (e.g. `setName(string $name)`) of a class that's the `data_class` of a form, and when a file upload is submitted to the corresponding field instead of a normal text input, then `UploadedFile::__toString()` is called which will then return and disclose the path of the uploaded file. If combined with a local file inclusion issue in certain circumstances this could escalate it to a Remote Code Execution."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ/","name":"FEDORA-2018-8c06b6defd","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7/","name":"FEDORA-2018-66547a8c14","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.securityfocus.com/bid/106249","name":"106249","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html","name":"[debian-lts-announce] 20190310 [SECURITY] [DLA 1707-1] symfony security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE/","name":"FEDORA-2018-6edf04d9d6","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.debian.org/security/2019/dsa-4441","name":"DSA-4441","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://seclists.org/bugtraq/2019/May/21","name":"20190510 [SECURITY] [DSA 4441-1] symfony security update","tags":["mailing-list","x_refsource_BUGTRAQ"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2019-05-10T15:06:07.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2018-12-06T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-19789","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"An issue was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before 3.4.20, 4.0.x before 4.0.15, 4.1.x before 4.1.9, and 4.2.x before 4.2.1. When using the scalar type hint `string` in a setter method (e.g. `setName(string $name)`) of a class that's the `data_class` of a form, and when a file upload is submitted to the corresponding field instead of a normal text input, then `UploadedFile::__toString()` is called which will then return and disclose the path of the uploaded file. If combined with a local file inclusion issue in certain circumstances this could escalate it to a Remote Code Execution."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"FEDORA-2018-8c06b6defd","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ/"},{"name":"FEDORA-2018-66547a8c14","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7/"},{"name":"106249","refsource":"BID","url":"http://www.securityfocus.com/bid/106249"},{"name":"https://symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path","refsource":"CONFIRM","url":"https://symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path"},{"name":"[debian-lts-announce] 20190310 [SECURITY] [DLA 1707-1] symfony security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html"},{"name":"FEDORA-2018-6edf04d9d6","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE/"},{"name":"DSA-4441","refsource":"DEBIAN","url":"https://www.debian.org/security/2019/dsa-4441"},{"name":"20190510 [SECURITY] [DSA 4441-1] symfony security update","refsource":"BUGTRAQ","url":"https://seclists.org/bugtraq/2019/May/21"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ/","name":"FEDORA-2018-8c06b6defd","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7/","name":"FEDORA-2018-66547a8c14","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://www.securityfocus.com/bid/106249","name":"106249","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html","name":"[debian-lts-announce] 20190310 [SECURITY] [DLA 1707-1] symfony security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE/","name":"FEDORA-2018-6edf04d9d6","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://www.debian.org/security/2019/dsa-4441","name":"DSA-4441","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://seclists.org/bugtraq/2019/May/21","name":"20190510 [SECURITY] [DSA 4441-1] symfony security update","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T11:44:20.339Z"}}]}}}