CVE-2024-51758
Exported files stored in default (`public`) filesystem if not reconfigured in filament
Check your servers for CVE-2024-51758
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-51758 affects filament, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- passive: a user has to take part without knowing, such as by viewing a page
- Impact on the vulnerable system
- confidentiality low, integrity none, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality low, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.56%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 48.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 7 Nov 2024):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-1188 Initialization of a Resource with an Insecure Default
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| filament |
affected >= 3.2.0, < 3.2.123
|
Is my server affected?
Find the installed version of filament and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i filament
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-51758 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-51758RHEL, Rocky, Alma, Fedora
rpm -q filament
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-51758Alpine
apk list --installed | grep -i filamentWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-51758
trivy image --scanners vuln IMAGE | grep CVE-2024-51758
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#customizing-the-storage-disk filamentphp.com
Source: the record CVE-2024-51758 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse