Skip to main content

Bagisto CVE-2025-62416

MEDIUM
Code Injection (CWE-94)
2025-10-16 security-advisories@github.com
6.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with product-creation privileges
  2. Delivery
    Inject template expression in product description
  3. Exploit
    Server-side template engine evaluates payload
  4. Execution
    Execute PHP code / OS commands
  5. Impact
    Read .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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

composer bagisto/bagisto fix: 2.3.8

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

NVD PRIMARY 6.8 MEDIUM
AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.2 HIGH

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.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Low
niche open-source Laravel eCommerce platform, limited production footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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

cpe:2.3:a:webkul:bagisto:2.3.7:*:*:*:*:*:*:*
CVE-2026-21448 CRITICAL POC
9.8 Jan 02

Bagisto eCommerce platform before 2.3.10 is vulnerable to server-side template injection (SSTI) through customer address

CVE-2026-21446 CRITICAL POC
9.8 Jan 02

Bagisto eCommerce platform (2.3 branch before 2.3.10) leaves installation API routes active after setup, allowing unauth

CVE-2026-21449 HIGH POC
8.8 Jan 02

Bagisto eCommerce platform versions before 2.3.10 suffer from server-side template injection through user-controllable f

CVE-2023-33570 HIGH POC
8.8 Jun 28

Bagisto v1.5.1 is vulnerable to Server-Side Template Injection (SSTI). Rated high severity (CVSS 8.8), this vulnerabilit

CVE-2019-16403 HIGH POC
8.8 Sep 18

In Webkul Bagisto before 0.1.5, the functionalities for customers to change their own values (such as address, review, o

CVE-2019-14933 HIGH POC
8.8 Aug 11

Bagisto 0.1.5 allows CSRF under /admin URIs. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable,

CVE-2026-9506 HIGH POC
8.7 Jun 08

Arbitrary file read in Bagisto v2.4.1 allows unauthenticated remote attackers to retrieve sensitive files outside the we

CVE-2026-21451 HIGH POC
8.4 Jan 02

Stored XSS in Bagisto's CMS page editor allows authenticated attackers to bypass input sanitization by crafting maliciou

CVE-2026-21447 HIGH POC
7.1 Jan 02

Bagisto is an open source laravel eCommerce platform. [CVSS 7.1 HIGH]

CVE-2025-62417 HIGH POC
7.1 Oct 16

CSV formula injection in Bagisto through 2.3.7 allows a user who can create or edit product data to store spreadsheet fo

CVE-2024-27499 MEDIUM POC
6.5 Mar 01

Bagisto v1.5.1 is vulnerable for Cross site scripting(XSS) via png file upload vulnerability in product review option. R

CVE-2026-21450 CRITICAL
9.8 Jan 02

Bagisto before 2.3.10 has a second server-side template injection vulnerability, this time via the type parameter. Like

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy