Bagisto
CVE-2025-62416
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with product-creation privileges
-
DeliveryInject template expression in product description
-
ExploitServer-side template engine evaluates payload
-
ExecutionExecute PHP code / OS commands
-
ImpactRead .env secrets and compromise host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated backend account with product-creation privileges (e.g., admin or product-manager role) - per CVSS PR:H and the vendor advisory. The specific vulnerable surface is the product description field, which is passed to Bagisto's Laravel Blade server-side templating engine in front-end and admin product views without sanitization or escaping, allowing a string-context breakout into template code. Exploitation is limited by that privilege requirement (not reachable by anonymous/customer accounts) and is triggered when the product page/description is rendered or previewed by the templating engine; affected version is 2.3.7 (fixed in 2.3.8). No special non-default configuration beyond having product descriptions rendered through Blade, which is the default behavior. |
| Impact | This is a genuine but conditional risk rather than an internet-wide emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H, base 6.8 Medium) shows the key gating factor clearly: PR:H means exploitation requires high privileges - specifically a backend account with product-creation rights (admin or product-manager role). That authentication barrier is the dominant risk-limiting signal and is why the score lands at Medium despite full C/I/A impact and potential RCE. Supporting signals are mixed-to-low on the exploitation axis: EPSS is only 0.40% (33rd percentile), there is NO CISA KEV listing, so there is no evidence of active exploitation. However, publicly available exploit code exists (the GitHub Security Advisory includes a working PoC with screenshots), which raises the practical likelihood that a malicious or compromised privileged user could weaponize it. There is no major conflict between signals: network vector plus authenticated-only access plus low EPSS plus no KEV plus public PoC consistently describes a post-authentication server-compromise bug, not a mass-exploitation threat. Net priority: treat as an important privilege-escalation/host-compromise issue for any Bagisto operator who grants product-creation roles to semi-trusted staff (insider or account-takeover threat model), but it is not a drop-everything perimeter risk because an attacker must first hold a privileged backend account. |
| Exploit ScenarioDerived | An attacker who already holds a Bagisto backend account with product-creation privileges (a malicious insider, a compromised product-manager credential, or an over-provisioned marketplace seller) creates or edits a product and places a Blade/Twig-style template expression in the unsanitized product description field. When the product page is rendered by the server-side templating engine, the expression is evaluated, letting the attacker read sensitive data (.env secrets, DB and API credentials) and potentially achieve PHP code execution / OS command execution on the host. A public proof-of-concept exists in the GitHub Security Advisory demonstrating template expressions being evaluated server-side. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Server-side template injection in Bagisto 2.3.7 lets an authenticated backend user with product-creation privileges inject Blade template expressions through product descriptions, potentially achieving remote code execution and access to sensitive application data. Exploitation requires a high-privileged account and is triggered when the product description is rendered or previewed; publicly available exploit code exists, but the available data does not indicate confirmed active exploitation via CISA KEV. EPSS is low at 0.40% (33rd percentile), so priority should be driven by exposure of product-management accounts, and the vendor-released fix is Bagisto 2.3.8.
RemediationAI
Upgrade Bagisto to 2.3.8, the vendor-released fixed version identified in the advisory. If an immediate upgrade is not possible, restrict product-creation and product-description editing privileges to tightly trusted backend administrators or product managers and review existing accounts with those permissions, accepting the trade-off of reduced administrative flexibility. Additionally, sanitize or escape product description content before it reaches Blade and avoid compiling user-controlled content as templates; this can break intended rich formatting or embedded dynamic content, so it should be treated as a compensating control until patching is complete. Monitor admin product-content changes for Blade-like template syntax and alert on suspicious submissions, recognizing that detection does not eliminate the underlying injection risk. The advisory is available at https://github.com/bagisto/bagisto/security/advisories/GHSA-527q-4wqv-g9wj.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Bagisto is a Laravel-based open source eCommerce platform, and its product descriptions are rendered through Laravel's Blade server-side templating engine in front-end and admin product views. The root cause aligns with CWE-94 code injection: user-controlled product description content is not sanitized or escaped before being passed into the Blade view, allowing an attacker who can create or edit products to break out of the expected string context and have template expressions evaluated by the backend. CPE data identifies the affected package as cpe:2.3:a:webkul:bagisto:2.3.7, with the vendor advisory listing versions up to and including 2.3.7 as vulnerable. Because Blade templates compile to PHP, successful exploitation can potentially lead to arbitrary PHP code or system command execution, exposure of environment variables and credentials, defacement, or privilege escalation. The assessed vector requires a high-privileged authenticated account (PR:H), and the vulnerable surface is reachable through normal product description rendering; publicly available exploit code exists, but no CISA KEV active-exploitation confirmation was provided.
Know when Bagisto gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
PR:H because product-creation privileges are required; AV:N/AC:L as injection is reliable over the web UI; UI:N since the attacker self-triggers rendering by previewing their own product; C/I/A:H for potential RCE and secret disclosure.
Primary rating from NVD.
CVSS VectorNVD
DescriptionNVD
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
Bagisto eCommerce platform before 2.3.10 is vulnerable to server-side template injection (SSTI) through customer address
Bagisto eCommerce platform (2.3 branch before 2.3.10) leaves installation API routes active after setup, allowing unauth
Bagisto eCommerce platform versions before 2.3.10 suffer from server-side template injection through user-controllable f
Bagisto v1.5.1 is vulnerable to Server-Side Template Injection (SSTI). Rated high severity (CVSS 8.8), this vulnerabilit
In Webkul Bagisto before 0.1.5, the functionalities for customers to change their own values (such as address, review, o
Bagisto 0.1.5 allows CSRF under /admin URIs. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable,
Arbitrary file read in Bagisto v2.4.1 allows unauthenticated remote attackers to retrieve sensitive files outside the we
Stored XSS in Bagisto's CMS page editor allows authenticated attackers to bypass input sanitization by crafting maliciou
Bagisto is an open source laravel eCommerce platform. [CVSS 7.1 HIGH]
CSV formula injection in Bagisto through 2.3.7 allows a user who can create or edit product data to store spreadsheet fo
Bagisto v1.5.1 is vulnerable for Cross site scripting(XSS) via png file upload vulnerability in product review option. R
Bagisto before 2.3.10 has a second server-side template injection vulnerability, this time via the type parameter. Like
NVD
CVE.org
EPSS
GitHub
Exploit-DB