CVE-2026-21450

9.8 CRITICAL

📋 TL;DR

Bagisto eCommerce platforms running versions before 2.3.10 are vulnerable to server-side template injection via the type parameter. This allows attackers to execute arbitrary code remotely, potentially compromising the entire server. All Bagisto installations using vulnerable versions are affected.

💻 Affected Systems

Products:
  • Bagisto
Versions: All versions prior to 2.3.10
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all Bagisto deployments regardless of configuration. Laravel-based installations are vulnerable.

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server compromise with attacker gaining full control over the web server, database access, and ability to pivot to other systems.

🟠

Likely Case

Remote code execution leading to data theft, website defacement, or installation of malware/backdoors.

🟢

If Mitigated

Limited impact if proper input validation and output encoding are implemented, though template injection could still leak sensitive data.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Template injection vulnerabilities are often easily weaponized. The advisory suggests exploitation is straightforward.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.3.10

Vendor Advisory: https://github.com/bagisto/bagisto/security/advisories/GHSA-9hvg-qw5q-wqwp

Restart Required: No

Instructions:

1. Backup your current installation. 2. Update Bagisto to version 2.3.10 or later via composer: 'composer require bagisto/bagisto:^2.3.10'. 3. Run database migrations if needed: 'php artisan migrate'. 4. Clear cache: 'php artisan cache:clear'.

🔧 Temporary Workarounds

Input Validation Filter

all

Add strict input validation for the type parameter to reject malicious template syntax.

Implement validation in relevant controller methods to sanitize type parameter input

🧯 If You Can't Patch

  • Implement WAF rules to block template injection patterns in type parameter
  • Restrict access to vulnerable endpoints via network ACLs or authentication

🔍 How to Verify

Check if Vulnerable:

Check Bagisto version in composer.json or via 'php artisan --version' command. If version is below 2.3.10, system is vulnerable.

Check Version:

php artisan --version

Verify Fix Applied:

Confirm version is 2.3.10 or higher. Test type parameter with template injection payloads to ensure they're rejected.

📡 Detection & Monitoring

Log Indicators:

  • Unusual template rendering errors
  • Suspicious type parameter values containing template syntax
  • Unexpected PHP/system command execution

Network Indicators:

  • HTTP requests with template injection payloads in type parameter
  • Unusual outbound connections from web server

SIEM Query:

web.url:*type=* AND (web.url:*{{* OR web.url:*}}* OR web.url:*${* OR web.url:*%{*)

🔗 References

📤 Share & Export