CVE-2023-2338: SQL Injection in AssetController in pimcore/pimcore

pimcore/pimcore Updated 02 Oct 2025

Summary

27/04/2023
Yes i
High
8.8

CVE-2023-2338: SQL Injection in AssetController. Affects pimcore/pimcore versions < 10.5.21. Fixed in 10.5.21. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Pimcore is an open-source content management system (CMS) and customer experience management (CEM) platform. It provides a wide range of features for managing digital assets, content, and customer data. The AssetController is a component of Pimcore that handles the management and retrieval of assets such as images, videos, and documents. Unfortunately, a SQL injection vulnerability has been discovered in the AssetController, which can allow an attacker to manipulate the backend database and potentially gain unauthorized access or cause data corruption.

Vulnerability Detail

The SQL injection vulnerability in the AssetController is caused by unsanitized concatenation of strings in the where clause. This allows an attacker to inject malicious SQL code into the query, leading to various security risks. An attacker exploiting this vulnerability can potentially dump the entire database, alter data, or perform denial-of-service attacks on the backend database. The severity of this vulnerability is rated as HIGH with a CVSS score of 8.8. The Common Weakness Enumeration (CWE) ID associated with this vulnerability is CWE-89.

How To Fix

Minimum fixed version

10.5.21

This is the first release that contains the fix.

composer require pimcore/pimcore:10.5.21

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If updating or patching the software is not immediately feasible, you can apply the patch manually by following the instructions in the patch file available at https://github.com/pimcore/pimcore/commit/21e35af721c375ef4676ed50835e30d828e76520.patch. However, it is strongly recommended to update to the latest version as soon as possible to mitigate the vulnerability effectively.

Conclusion

The SQL injection vulnerability in the AssetController of pimcore/pimcore can have severe consequences, including unauthorized access to the backend database and data manipulation. It is crucial to update to version 10.5.21 or apply the provided patch as soon as possible to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pimcore/pimcore →

Share this vulnerability

FAQ

The SQL injection vulnerability in the AssetController can allow an attacker to gain unauthorized access to the backend database, manipulate data, or cause denial-of-service attacks.

You can fix this vulnerability by updating to version 10.5.21 of pimcore/pimcore or manually applying the provided patch.

Yes, you can apply the patch manually if updating or patching the software is not immediately feasible. However, updating to the latest version is strongly recommended.

There are no known public exploits for this vulnerability at the time of writing. However, it is crucial to address the vulnerability promptly to prevent potential attacks.

You can find more information about this vulnerability, including the patch and its impact, in the official advisory at https://huntr.dev/bounties/bbf59fa7-cf5b-4945-81b0-328adc710462/

Related vulnerabilities

Recent vulnerabilities recorded for pimcore/pimcore.

How To Fix

Minimum fixed version

10.5.21

This is the first release that contains the fix.

composer require pimcore/pimcore:10.5.21

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback