CVE-2024-26129: Path disclosure in JavaScript variable
5.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.51973%
CWE
Published
2/21/2024
Updated
2/21/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| prestashop/prestashop | composer | >= 8.1.0, < 8.1.4 | 8.1.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the getThemeDir() method in FrontController.php returning an absolute server path that was subsequently exposed in JavaScript variables. The patch replaced this method call with the THEME_DIR constant, which likely represents a relative path or sanitized value. The commit diff explicitly shows this function was the source of the path disclosure, and the CWE-22 classification confirms it's a path information exposure issue.