Loading...
Skip to main content

CVE-2023-38221

MEDIUM

Magento Open Source allows SQL Injection

Published October 13, 2023Updated March 4, 2025Source: osv

Summary

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 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability that could lead in arbitrary code execution by an admin-privilege authenticated attacker. Exploitation of this issue does not require user interaction and attack complexity is high as it requires knowledge of tooling beyond just using the UI.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update magento/community-edition to 2.4.7-beta2 or later
composer require "magento/community-edition:^2.4.7-beta2"
Composer
Update magento/community-edition to 2.4.5-p5 or later
composer require "magento/community-edition:^2.4.5-p5"
Composer
Update magento/community-edition to 2.4.4-p6 or later
composer require "magento/community-edition:^2.4.4-p6"
Composer
Update magento/community-edition to 2.4.6-p3 or later
composer require "magento/community-edition:^2.4.6-p3"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (8)

PackageEcosystemAffectedFixed In
magento/community-edition
packagist
2.4.7-beta12.4.7-beta2
magento/community-edition
packagist
2.4.5-p1, 2.4.5-p2, 2.4.5-p3, 2.4.5-p42.4.5-p5
magento/community-edition
packagist
2.4.5No fix available
magento/community-edition
packagist
2.4.4-p1, 2.4.4-p2, 2.4.4-p3, 2.4.4-p4 (+1 more)2.4.4-p6
magento/community-edition
packagist
2.4.6No fix available
magento/community-edition
packagist
2.4.6-p1, 2.4.6-p22.4.6-p3
magento/project-community-edition
packagist
0.1.0-alpha100, 0.1.0-alpha101, 0.1.0-alpha102, 0.1.0-alpha103 (+49 more)Range-based data available
magento/community-edition
packagist
2.4.4No fix available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.

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

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2023-38221?
Magento Open Source allows SQL Injection This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.0/10).
How do I check if my project is affected by CVE-2023-38221?
CVE-2023-38221 affects magento/community-edition and magento/project-community-edition. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-38221 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.0

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-ggr8-3hwx-4f2m

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies