{"answers":{"affected":"2 open source packages ship an affected version, including filament/actions.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-51758 exists.","fix":"Upgrade filament/actions to 3.2.123 or later.","what":"CVE-2024-51758 is a low-severity vulnerability in filamentphp filament, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-51758 and fix it if it is affected.\n\nWhat it is: CVE-2024-51758 is a low-severity vulnerability in filamentphp filament, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-51758 exists.\n\nAffected packages and fixed versions:\n- filament/actions (Packagist): affected from 3.2.0; fixed in 3.2.123\n- filament/actions (Packagist): affected from 3.2.0; fixed in 3.2.123\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-51758/ (Markdown: https://insights.sbomify.com/CVE-2024-51758/index.md)","id":"CVE-2024-51758","markdown":"https://insights.sbomify.com/CVE-2024-51758/index.md","name":"CVE-2024-51758","record":{"aliases":["GHSA-4hxw-gc2q-f6f3"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Filament Laravel library","requires_auth":"none","summary":"Attackers can access sensitive exported files stored in the public filesystem due to insecure default configuration in Filament.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":2.3,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"description":"Filament is a collection of full-stack components for accelerated Laravel development. All Filament features that interact with storage use the `default_filesystem_disk` config option. This allows the user to easily swap their storage driver to something production-ready like `s3` when deploying their app, without having to touch multiple configuration options and potentially forgetting about some. The default disk is set to `public` when you first install Filament, since this allows users to quickly get started developing with a functional disk that allows features such as file upload previews locally without the need to set up an S3 disk with temporary URL support. However, some features of Filament such as exports also rely on storage, and the files that are stored contain data that should often not be public. This is not an issue for the many deployed applications, since many use a secure default disk such as S3 in production. However, [CWE-1188](https://cwe.mitre.org/data/definitions/1188.html) suggests that having the `public` disk as the default disk in Filament is a security vulnerability itself. As such, we have implemented a measure to protect users whereby if the `public` disk is set as the default disk, the exports feature will automatically swap it out for the `local` disk, if that exists. Users who set the default disk to `local` or `s3` already are not affected. If a user wants to continue to use the `public` disk for exports, they can by setting the export disk deliberately. This change has been included in the 3.2.123 release and all users who use the `public` disk are advised to upgrade.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Exported files stored in default (`public`) filesystem if not reconfigured in filament","id":"CVE-2024-51758","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"WordPress SVT Simple plugin \u003c= 1.0.1 - Reflected Cross Site Scripting (XSS) vulnerability","id":"CVE-2024-51759"},"packages":[{"ecosystem":"Packagist","fixed":["3.2.123"],"introduced":["3.2.0"],"last_affected":[],"package":"filament/actions","purl":null,"source":"GHSA-4hxw-gc2q-f6f3"},{"ecosystem":"Packagist","fixed":["3.2.123"],"introduced":["3.2.0"],"last_affected":[],"package":"filament/actions","purl":"pkg:composer/filament/actions","source":"GHSA-4hxw-gc2q-f6f3"}],"prev":{"headline":"Fixes security vulnerability that allowed for server side code to be executed by a \u003cscript\u003e tag","id":"CVE-2024-51757"},"products":["filament"],"published":"2024-11-07","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-21","vendors":["filamentphp"]},"summary":"Attackers can access sensitive exported files stored in the public filesystem due to insecure default configuration in Filament.","url":"https://insights.sbomify.com/CVE-2024-51758/"}