Skip to main content

Backpack CRUD EUVDEUVD-2026-68764

| CVE-2026-54179 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-20 https://github.com/Laravel-Backpack/CRUD GHSA-8hw4-7qjr-3wxg
4.4
CVSS 3.1 · Vendor: https://github.com/Laravel-Backpack/CRUD
View

Attack ChainAIDerived

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

  1. Recon
    Admin authenticates to Backpack admin panel
  2. Delivery
    Identify CRUD form with image field using withFiles()
  3. Exploit
    Craft SVG+JavaScript payload as data:image base64 string
  4. Install
    Submit payload, bypassing prefix-only MIME check
  5. C2
    File stored extensionlessly on public disk
  6. Execute
    Victim admin loads stored file URL in browser
  7. Impact
    XSS payload executes in victim browser session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid authenticated Backpack admin account - unauthenticated access is insufficient, and CVSS PR:L may understate this requirement given the advisory's explicit 'authenticated admin' language. The target application must expose at least one CRUD form containing an image-typed field explicitly configured with withFiles(), which is an opt-in configuration not universally present across Backpack deployments. A second user (another admin or privileged operator) must subsequently load the stored file URL in a browser for the XSS payload to execute (UI:R). Exploitation is limited to Backpack CRUD versions 6.0.0-6.8.13 and 7.0.0-7.0.37. Key limiting factors: admin-level authentication prerequisite, requirement for a second victim to trigger XSS, and server-side Content-Type enforcement or nosniff headers that may prevent script execution even after file upload succeeds.

Impact

The NVD-assigned CVSS 3.1 score of 4.4 (Medium) uses vector AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N. However, the advisory description explicitly restricts the threat actor to an 'authenticated admin,' which corresponds more accurately to PR:H than PR:L - this discrepancy between the CVSS vector and the prose description should be verified with the vendor, as it materially affects the population of potential threat actors. The AC:H rating is well-founded: exploitation requires a Backpack installation that exposes an image-typed field explicitly configured with withFiles(), which is not universally present. UI:R confirms that a secondary user must load the stored file in a browser for XSS to execute, further limiting opportunistic exploitation. Scope:Changed is appropriate because a successfully planted SVG+script crosses from the upload context into a victim's browser session. No EPSS score was provided; no CISA KEV listing exists; no public POC was identified. Real-world risk is substantially bounded by the admin-level prerequisite - this is an insider or compromised-admin threat, not a remote unauthenticated attack surface.

Exploit ScenarioDerived

An authenticated Backpack admin navigates to a CRUD form containing an image field configured with withFiles(), crafts a base64-encoded SVG file embedding a JavaScript payload, and submits it with the prefix data:image/svg+xml;base64,.... The uploader accepts the payload because only the prefix is checked, and FileNameGenerator stores it under an extensionless filename on the public disk. When a second admin later fetches the stored file URL in a browser, the SVG is rendered with its embedded script executing in the victim's session - enabling session token theft or further lateral movement within the admin panel. No public exploit code has been identified; this scenario is inferred directly from the published code samples in the advisory.

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

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

Alert me

AnalysisAIv1 – Aug 20, 2026

Stored XSS and arbitrary file upload in Laravel Backpack CRUD allows an authenticated admin to bypass the SingleBase64Image uploader's trivial data:image prefix check, writing files of any MIME type - including SVG with embedded JavaScript - to the configured storage disk. A companion bug in FileNameGenerator causes stored files to receive extensionless names because mime_content_type() returns false when passed a data URI string rather than a filesystem path, compounding server-side MIME enforcement failures. Affected versions span 6.0.0-6.8.13 and 7.0.0-7.0.37; vendor-released patches 6.8.14 and 7.0.38 address both flaws. No public exploit code or CISA KEV listing was identified at time of analysis.

RemediationAI

Vendor-released patches are available: upgrade backpack/crud to version 6.8.14 (release notes: https://github.com/Laravel-Backpack/CRUD/releases/tag/6.8.14) or version 7.0.38 (https://github.com/Laravel-Backpack/CRUD/releases/tag/7.0.38). The fix validates the declared MIME subtype against an allowlist, decodes the base64 payload, verifies actual file bytes using PHP's finfo extension before storage, and derives the file extension from the detected MIME type rather than the data URI string; FileNameGenerator::getExtensionFromFile now explicitly rejects inputs that produce an empty extension. If immediate patching is not feasible, add X-Content-Type-Options: nosniff to all responses serving admin-panel assets to prevent browsers from MIME-sniffing extensionless files and executing them as scripts - note this header does not prevent the malicious file from being stored, only from being executed client-side in browsers that honor the header. Additionally, audit and restrict admin panel access to the minimum required set of trusted personnel, since the vulnerability is only exploitable by accounts with admin-level Backpack access.

Affected VersionsENISA

CRUD 6.0.0, < 6.8.14
CRUD 7.0.0, < 7.0.38

Affected Packages

composer backpack/crud fix: 6.8.14, 7.0.38
euvd crud_6_0_0 fix: 6.8.14
euvd crud_7_0_0 fix: 7.0.38

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Laravel Backpack CRUD (Composer package backpack/crud) is a PHP admin panel generator for Laravel applications. The two affected code paths are SingleBase64Image::uploadFiles in src/app/Library/Uploaders/SingleBase64Image.php and FileNameGenerator::getExtensionFromFile in src/app/Library/Uploaders/Support/FileNameGenerator.php. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) is twofold: first, the uploader performs only a string-prefix check (Str::startsWith($value, 'data:image')) without validating the declared MIME subtype, decoding the base64 payload, or inspecting actual file bytes via PHP's finfo extension. Second, mime_content_type() is invoked with a raw data URI string rather than a filesystem path, causing it to return false; the subsequent Str::after(false, '/') call produces an empty string, leaving stored filenames with a trailing dot and no extension - bypassing both extension-based allow-lists and browser MIME hinting. CPE: pkg:composer/backpack_crud.

Know when PHP 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

Vendor (https://github.com/Laravel-Backpack/CRUD) PRIMARY 4.4 MEDIUM
AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 4.0 MEDIUM

Advisory explicitly requires admin-level access (PR:H); AC:H reflects the non-default withFiles() image-field configuration prerequisite; UI:R retained as XSS requires a victim to load the stored file.

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

Primary rating from Vendor (https://github.com/Laravel-Backpack/CRUD).

CVSS VectorVendor: https://github.com/Laravel-Backpack/CRUD

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

DescriptionCVE.org

Summary

SingleBase64Image::uploadFiles - the uploader bound to image-typed fields via withFiles() - only verifies that the submitted value starts with the string data:image. The MIME subtype and the base64-decoded bytes are never inspected or validated. A related bug in FileNameGenerator causes the stored file to receive an extensionless filename, because mime_content_type() returns false when given a data URI instead of a filesystem path.

The combination allows an authenticated admin to store a file of arbitrary type on the configured disk under a name without a recognizable extension.

Details

php
// src/app/Library/Uploaders/SingleBase64Image.php
if (Str::startsWith($value, 'data:image')) {
    // MIME subtype and decoded bytes are not validated
    $base64Image = Str::after($value, ';base64,');
    $finalPath   = $this->getPath() . $this->getFileName($value);
    Storage::disk($this->getDisk())->put($finalPath, base64_decode($base64Image));
    return $finalPath;
}

// src/app/Library/Uploaders/Support/FileNameGenerator.php
private function getExtensionFromFile(string|UploadedFile $file): string
{
    return is_a($file, UploadedFile::class, true)
        ? $file->extension()
        : Str::after(mime_content_type($file), '/'); // returns false on data URIs → empty string
}

The stored filename ends with a trailing dot and no extension.

Impact

An authenticated admin submitting a malicious payload to a Backpack image field stored with withFiles() can write arbitrary file content to the configured storage disk. Depending on server configuration and how stored files are served, this may lead to stored XSS or other unintended behavior when the file is later accessed.

Fix

The fix validates the declared MIME subtype against an allowlist, decodes the base64 payload, and verifies the actual file bytes with finfo before storing. The extension is derived from the detected MIME type rather than the data URI string. Applied in SingleBase64Image::uploadFiles and uploadRepeatableFiles; FileNameGenerator::getExtensionFromFile now rejects inputs that produce an empty extension.

Setting X-Content-Type-Options: nosniff on admin responses is a useful defense-in-depth complement.

Affected versions

  • >= 6.0.0, < 6.8.14
  • >= 7.0.0, < 7.0.38

Patched versions

  • 6.8.14
  • 7.0.38

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
popular Laravel admin panel package, widely adopted in PHP web projects
Threat Intel
1
1 source
Data Quality
5 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 No
EPSS 0.2%
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
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

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