{"schemaVersion":3,"id":"CVE-2024-47823","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Livewire is a full-stack framework for Laravel that allows for dynamic UI components without leaving PHP. In livewire/livewire prior to `2.12.7` and `v3.5.2`, the file extension of an uploaded file is guessed based on the MIME type. As a result, the actual file extension from the file name is not validated. An attacker can therefore bypass the validation by uploading a file with a valid MIME type (e.g., `image/png`) and a “.php” file extension. If the following criteria are met, the attacker can carry out an RCE attack: 1. Filename is composed of the original file name using `$file->getClientOriginalName()`. 2. Files stored directly on your server in a public storage disk. 3. Webserver is configured to execute “.php” files. This issue has been addressed in release versions `2.12.7` and `3.5.2`. All users are advised to upgrade. There are no known workarounds for this vulnerability.","dates":{"published":"2024-10-08T17:48:36.496Z","modified":"2025-07-17T18:22:08.024Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00846,"percentile":0.57389,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00846},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00846,"percentile":0.57389}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00846,"percentile":0.57389}]},"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":[{"id":"GITHUB_LIVEWIRE_LIVEWIRE","name":"Livewire","source":"github","url":"https://github.com/livewire/livewire/security/advisories/GHSA-f3cx-396f-7jqp","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"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":"laravel","product":"livewire","name":"Livewire","label":"livewire","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.12.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.12.7 | ≥ 3.0.0, < 3.5.2","eol":null,"hubHref":"/vendor/laravel/livewire"},{"vendor":"livewire","product":"livewire","name":"livewire","label":"livewire","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0-beta.1, < 3.5.2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.12.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0-beta.1, < 3.5.2 | < 2.12.7","eol":null,"hubHref":"/vendor/livewire/livewire"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/livewire/livewire/security/advisories/GHSA-f3cx-396f-7jqp","label":"github.com/livewire/livewire/security/advisories/GHSA-f3cx-396f-7jqp","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Vendor Advisory"]},{"url":"https://github.com/livewire/livewire/pull/8624","label":"github.com/livewire/livewire/pull/8624","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking","Patch"]},{"url":"https://github.com/livewire/livewire/commit/70503b79f5db75a1eac9bf55826038a6ee5a16d5","label":"github.com/livewire/livewire/commit/70503b79f5db75a1eac9bf55826038a6ee5a16d5","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/livewire/livewire/commit/cd168c6212ea13d13b82b3132485741f82d9fad9","label":"github.com/livewire/livewire/commit/cd168c6212ea13d13b82b3132485741f82d9fad9","hostname":"github.com","tags":["X Refsource MISC","Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-10-08T17:48:36.496Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-07-17T18:22:08.024Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T18:31:55.310Z","stale":false,"partial":false}}