CVE-2026-9506
Path Traversal Vulnerability in Bagisto
Record summary
CVE-2026-9506 has a selected CVSS score of 8.7 (high); EIP currently links 1 Nuclei template.
Description
This vulnerability exists in Bagisto due to improper validation of user-supplied input in the ImageCacheController component. An unauthenticated remote attacker could exploit this vulnerability by sending crafted path traversal sequences through the filename parameter to access arbitrary files outside the intended directory on the targeted system. Successful exploitation of this vulnerability could allow an attacker to read arbitrary sensitive files on the targeted system.
Exploitation context
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Jun 8, 2026 · Source: CVE List
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
BagistoBrowse Webkul / BagistoDefault status: unaffected | CVE List | version v2.4.1 | affected |
Nuclei templates
1ProjectDiscoveryHIGHBagisto <= 2.4.1 - Unauthenticated Arbitrary File ReadCVSS 8.7
Bagisto through 2.4.1 is vulnerable to unauthenticated path traversal in the ImageCache controller. The `original` image-cache route (/cache/original/{filename}) passes the user-supplied filename to getImagePath() without any '..' filtering or realpath containment, allowing a remote unauthenticated attacker to read files outside the intended public image directories (upload/images) - for example the application's composer.json, artisan and other source files.
Impact
Unauthenticated attackers can read arbitrary sensitive files, potentially exposing confidential information.
Remediation
Fixed in 2.4.2, which adds realpath() containment and '../' sanitisation.
Source: ProjectDiscovery