Bagisto <= 2.4.1 - Unauthenticated Arbitrary File Read
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. References: https://github.com/advisories/GHSA-qhcg-rw5x-vg94 https://nvd.nist.gov/vuln/detail/CVE-2026-9506 https://www.cert-in.org.in/s2cMainServlet?pageid=PUBVLNOTES01&VLCODE=CIVN-2026-0292 https://www.ionix.io/threat-center/cve-2026-9506/ Remediation: Fixed in 2.4.2, which adds realpath() containment and '../' sanitisation.
Used 2.1k times · url