{"schemaVersion":3,"id":"CVE-2018-19789","aliases":["UBUNTU-CVE-2018-19789","DEBIAN-CVE-2018-19789"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-12-18T22:00:00.000Z","modified":"2024-08-05T11:44:20.339Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true}]},"epss":{"probability":0.03589,"percentile":0.89292,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03589},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04101,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03589,"percentile":0.89292}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04101,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03589,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03589,"percentile":0.89292}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type","description":"The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/434.html"}],"affected":[{"vendor":"debian","product":"symfony","name":"symfony","label":"symfony","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/symfony","purlType":"deb","versions":[{"text":"< 3.4.20+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.20+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"symfony","name":"symfony","label":"symfony","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/symfony","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"sensiolabs","product":"symfony","name":"symfony","label":"symfony","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.7.0, < 2.7.50","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.8.0, < 2.8.49","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.4.20","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1.0, < 4.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.2.0, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.7.0, < 2.7.50 | ≥ 2.8.0, < 2.8.49 | ≥ 3.0.0, < 3.4.20 | ≥ 4.0.0, < 4.0.15 | ≥ 4.1.0, < 4.1.9 | ≥ 4.2.0, < 4.2.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"symfony","label":"Symfony","category":"framework"}},"hubHref":"/vendor/sensiolabs/symfony"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"http://www.securityfocus.com/bid/106249","label":"www.securityfocus.com/bid/106249","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path","label":"symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path","hostname":"symfony.com","tags":["X Refsource CONFIRM","Patch","Vendor Advisory","REPORT"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html","label":"lists.debian.org/debian-lts-announce/2019/03/msg00009.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://www.debian.org/security/2019/dsa-4441","label":"www.debian.org/security/2019/dsa-4441","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN"]},{"url":"https://seclists.org/bugtraq/2019/May/21","label":"seclists.org/bugtraq/2019/May/21","hostname":"seclists.org","tags":["Mailing List","X Refsource BUGTRAQ"]},{"url":"https://ubuntu.com/security/CVE-2018-19789","label":"ubuntu.com/security/CVE-2018-19789","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-19789","label":"www.cve.org/CVERecord?id=CVE-2018-19789","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-19789","label":"security-tracker.debian.org/tracker/CVE-2018-19789","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-1707-1","DSA-4441-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-12-18T22:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T11:44:20.339Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T16:57:21.871Z","stale":false,"partial":false}}