CVE-2023-38250: Magento Community Edition SQL Injection Vulnerability

magento/community-edition Updated 02 Oct 2025

Summary

13/10/2023
Yes i
Moderate
8.0

CVE-2023-38250: Magento Open Source allows SQL Injection. Affects magento/community-edition across 4 version ranges.

>= 2.4.4-p1, < 2.4.4-p6 >= 2.4.5-p1, < 2.4.5-p5 >= 2.4.6-p1, < 2.4.6-p3 >= 2.4.7-beta1, < 2.4.7-beta2

Fixed in 4 releases; the minimum fixed version depends on the release line you run. 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

Magento Community Edition is a widely used open-source e-commerce platform that allows businesses to create and manage online stores. It offers a range of features including product management, customer management, and order processing. However, certain versions of Magento are vulnerable to SQL injection attacks, which can compromise the security of the application and its data.

Vulnerability Detail

Adobe Commerce versions 2.4.7-beta1 and earlier, 2.4.6-p2 and earlier, 2.4.5-p4 and earlier, and 2.4.4-p5 and earlier are affected by an SQL Injection vulnerability. This vulnerability arises from improper neutralization of special elements used in SQL commands, allowing an authenticated attacker with admin privileges to execute arbitrary code. Exploitation does not require user interaction, but it does require advanced knowledge of SQL and the application's tooling, making the attack complex.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.4.4-p1, < 2.4.4-p6 2.4.4-p6
    composer require magento/community-edition:2.4.4-p6
  • >= 2.4.5-p1, < 2.4.5-p5 2.4.5-p5
    composer require magento/community-edition:2.4.5-p5
  • >= 2.4.6-p1, < 2.4.6-p3 2.4.6-p3
    composer require magento/community-edition:2.4.6-p3
  • >= 2.4.7-beta1, < 2.4.7-beta2 2.4.7-beta2
    composer require magento/community-edition:2.4.7-beta2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, limit access to the admin panel to trusted IP addresses and ensure that all users with admin privileges are monitored closely. However, this does not eliminate the vulnerability and should not be considered a permanent solution.

Conclusion

The SQL Injection vulnerability in Magento Community Edition poses a significant risk to users, allowing potential attackers to execute arbitrary code. It is crucial to update to the latest patched versions to mitigate this risk and ensure the security of your e-commerce platform.

See every vulnerability recorded for magento/community-edition →

Share this vulnerability

FAQ

CVE-2023-38250 is a vulnerability in Magento Community Edition that allows SQL injection, potentially leading to arbitrary code execution by an authenticated attacker.

Affected versions include Magento 2.4.7-beta1 and earlier, 2.4.6-p2 and earlier, 2.4.5-p4 and earlier, and 2.4.4-p5 and earlier.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of this vulnerability is 8.0, indicating a high severity level.

If immediate updates are not possible, implement strict access controls and monitor admin activities as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for magento/community-edition.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.4.4-p1, < 2.4.4-p6 2.4.4-p6
    composer require magento/community-edition:2.4.4-p6
  • >= 2.4.5-p1, < 2.4.5-p5 2.4.5-p5
    composer require magento/community-edition:2.4.5-p5
  • >= 2.4.6-p1, < 2.4.6-p3 2.4.6-p3
    composer require magento/community-edition:2.4.6-p3
  • >= 2.4.7-beta1, < 2.4.7-beta2 2.4.7-beta2
    composer require magento/community-edition:2.4.7-beta2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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