CVE-2021-21427
PHP vulnerability analysis and mitigation

Overview

Magento-lts, a long-term support alternative to Magento Community Edition (CE), was found to contain a vulnerability that potentially allows an administrator unauthorized access to restricted resources. The vulnerability affects magento-lts versions before 19.4.13 and 20.0.9. This is a backport of CVE-2021-21024. The issue was disclosed in April 2021 (NVD, GitHub Advisory).

Technical details

The vulnerability exists in the MySQL adapter and could potentially be exploited through SQL injection attacks. The CVSS v3.1 base score is rated as 7.2 HIGH by NVD with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, while GitHub rates it as 9.1 CRITICAL with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H. The vulnerability is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) (NVD).

Impact

A successful exploitation of this vulnerability could allow an administrator to gain unauthorized access to restricted resources through SQL injection attacks, potentially compromising the confidentiality, integrity, and availability of the system (GitHub Advisory).

Exploitability

The vulnerability requires high privileges (administrator access) but low attack complexity and no user interaction for exploitation. The attack vector is network-accessible (NVD).

Mitigation and workarounds

The vulnerability has been patched in magento-lts versions 19.4.13 and 20.0.9. Users running affected versions should upgrade to these patched versions or later to mitigate the vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59989CRITICAL9.2
  • PHP logoPHP
  • phalcon/cphalcon
NoYesAug 21, 2026
CVE-2026-63135HIGH8.2
  • PHP logoPHP
  • yourls/yourls
NoYesAug 21, 2026
GHSA-p2ch-c2c3-4xm5MEDIUM6.1
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-8hgv-xc77-jmcrMEDIUM5.1
  • PHP logoPHP
  • getgrav/grav
NoYesAug 21, 2026
GHSA-hq84-x37p-j6q5MEDIUM4.5
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management