{"id":"CVE-2025-62416","aliases":["CVE-2025-62416","GHSA-527q-4wqv-g9wj"],"related":[],"kind":"vulnerability","state":"published","title":"bagisto - Server Side Template Injection (SSTI) in Product Description","summary":"Bagisto is an open source laravel eCommerce platform. Bagisto v2.3.7 is vulnerable to Server-Side Template Injection (SSTI) due to unsanitized user input being processed by the server-side templating engine when rendering product descriptions. This allows an attacker with product creation privileges to inject arbitrary template expressions that are evaluated by the backend — potentially leading to Remote Code Execution (RCE) on the server. This vulnerability is fixed in 2.3.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Bagisto is an open source laravel eCommerce platform. Bagisto v2.3.7 is vulnerable to Server-Side Template Injection (SSTI) due to unsanitized user input being processed by the server-side templating engine when rendering product descriptions. This allows an attacker with product creation privileges to inject arbitrary template expressions that are evaluated by the backend — potentially leading to Remote Code Execution (RCE) on the server. This vulnerability is fixed in 2.3.8.","source":"cvelist"},{"lang":"en","text":"### Summary\nBagisto v2.3.7 is vulnerable to Server-Side Template Injection (SSTI) due to unsanitized user input being processed by the server-side templating engine when rendering product descriptions. This allows an attacker with product creation privileges to inject arbitrary template expressions that are evaluated by the backend — potentially leading to Remote Code Execution (RCE) on the server.\n\n### Details\nIn Bagisto, product descriptions are rendered through Laravel’s Blade templating engine in various front-end and admin views. The product description field is not sanitized or escaped before being passed to the view, which means user-supplied data can break out of the expected string context and execute arbitrary template code.\n\n### PoC\nCreate a product and enter the payload to the description.\n<img width=\"679\" height=\"669\" alt=\"image\" src=\"https://github.com/user-attachments/assets/1e5dac3f-4043-4b31-98ed-f4346feb5477\" />\nPreview the page, observed that the template expressions were evaluated by the backend and displayed on the screen.\n<img width=\"1431\" height=\"922\" alt=\"image\" src=\"https://github.com/user-attachments/assets/16f29c6e-05f4-40c4-9926-0c59e0a979c2\" />\n\n\n### Impact\nRCE potential: Attackers can execute arbitrary PHP code or system commands.\nData breach: Read sensitive environment variables (.env), API keys, or database credentials.\nDefacement / persistence: Inject malicious scripts or backdoors in dynamic templates.\nPrivilege escalation: If attackers have limited roles (e.g., product manager), they can compromise the entire application or host.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Bagisto es una plataforma de eCommerce laravel de código abierto. Bagisto v2.3.7 es vulnerable a la Inyección de Plantillas del Lado del Servidor (SSTI) debido a que la entrada de usuario no saneada es procesada por el motor de plantillas del lado del servidor al renderizar las descripciones de productos. Esto permite a un atacante con privilegios de creación de productos inyectar expresiones de plantilla arbitrarias que son evaluadas por el backend - lo que podría llevar a la Ejecución Remota de Código (RCE) en el servidor. Esta vulnerabilidad está corregida en la versión 2.3.8.","source":"nvd"}],"published":"2025-10-16T18:32:55.776Z","modified":"2026-10-19T16:10:00.260Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:L","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:L","score":5.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:L","score":5.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-94","CWE-1336"],"affected":[{"ranges":[{"version":"< 2.3.8","status":"affected"}],"vendor":"bagisto","product":"bagisto","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.8"}],"ecosystem":"Packagist","package":"bagisto/bagisto","purl":"pkg:composer/bagisto/bagisto","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.3.7"}],"vendor":"webkul","product":"bagisto","cpe":"cpe:2.3:a:webkul:bagisto:2.3.7:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/bagisto/bagisto/security/advisories/GHSA-527q-4wqv-g9wj","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62416","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bagisto/bagisto","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-10-17T14:32:17.541Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-62416","url":"https://www.cve.org/CVERecord?id=CVE-2025-62416","licence":"CVE Terms of Use","modified":"2025-10-17T14:32:21.309Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-527q-4wqv-g9wj","url":"https://github.com/advisories/GHSA-527q-4wqv-g9wj","licence":"CC-BY-4.0","modified":"2025-10-16T21:57:51.475Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-62416","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62416","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"}],"updatedAt":"2026-11-25T22:59:06.514Z","epss":{"score":0.00404,"percentile":0.36787,"date":"2026-12-01T12:00:22.000Z"}}