CVE-2023-38249 Adobe Commerce | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89)

High 8.0 Published Updated

An authenticated admin attacker can execute arbitrary code via SQL injection in Adobe Commerce, requiring high attack complexity and specialized tooling.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-38249?

CVE-2023-38249 is a high-severity SQL injection vulnerability in Adobe Commerce, published on 13 Oct 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-89

Which versions are affected by CVE-2023-38249?

12 open source packages ship an affected version, including magento/community-edition and magento/project-community-edition. It affects 2 products.

PackageAffectedFixed in
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistFrom 2.4.4-p12.4.4-p6
magento/community-edition PackagistFrom 2.4.4-p12.4.4-p6
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p5
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p5
6 more packages
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p3
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p3
magento/community-edition PackagistFrom 2.4.7-beta12.4.7-beta2
magento/community-edition PackagistFrom 2.4.7-beta12.4.7-beta2
magento/project-community-edition PackagistAll versions to 2.0.2None
magento/project-community-edition PackagistAll versions to 2.0.2None

Products include Adobe Commerce, Adobe Magento.

How do I fix CVE-2023-38249?

Upgrade magento/community-edition to a fixed version for your release line: 2.4.4-p6, 2.4.5-p5, 2.4.6-p3 or 2.4.7-beta2.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2023-38249 being exploited?

There is no known exploitation of CVE-2023-38249 in the wild and no public exploit code.

All Adobe Commerce vulnerabilities

Sources

Also known as GHSA-rq36-9f5f-2gw7.

Is CVE-2023-38249 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free