Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-36040

Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by an improper input validation vulnerability. An attacker with admin privileges can upload a specially crafted file to bypass file extension restrictions and could lead to remote code execution.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-36040
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:02 UTC · Revision 1

Source evidence

CVE-2021-36040

core-osv · Original source

Published 1 Sept 2021, 15:15 UTC

Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by an improper input validation vulnerability. An attacker with admin privileges can upload a specially crafted file to bypass file extension restrictions and could lead to remote code execution.

osv:CVE-2021-36040
Complete source record
{
  "id": "366b577eba994701d96758c4a6b2fef25f453c4c350ecbe8f78de6bf3c7fded8",
  "url": "https://osv.dev/vulnerability/CVE-2021-36040",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-36040",
    "summary": "Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by an improper input validation vulnerability. An attacker with admin privileges can upload a specially crafted file to bypass file extension restrictions and could lead to remote code execution.",
    "evidence": "osv:CVE-2021-36040",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-36040",
      "aliases": [
        "CVE-2021-36040",
        "GHSA-2pq5-gpqf-g4r3"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/magento/magento2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f4c1d7526f05bdfb1327b0701cc345f94aadcaed"
                },
                {
                  "last_affected": "44a7b6079bcac5ba92040b16f4f74024b4f34d09"
                },
                {
                  "introduced": "6729b6e01368248abc33300208eb292c95050203"
                },
                {
                  "last_affected": "33242e4b19cf207d7b73f7791ef894b48bb41f8a"
                },
                {
                  "introduced": "1bd5cb8c065e44779526c0b044ce19b884707695"
                },
                {
                  "last_affected": "1bd5cb8c065e44779526c0b044ce19b884707695"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:adobe:magento_open_source:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.0"
                      },
                      {
                        "last_affected": "2.3.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:adobe:magento_open_source:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0"
                      },
                      {
                        "last_affected": "2.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:adobe:magento_open_source:2.4.2:p1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.2-p1"
                      },
                      {
                        "last_affected": "2.4.2-p1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.4.2-p1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36040.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:34.619758392Z",
      "provider": "osv",
      "references": [
        "https://helpx.adobe.com/security/products/magento/apsb21-64.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:adobe:adobe_commerce:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "adobe:adobe_commerce",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.3.0"
                  },
                  {
                    "last_affected": "2.3.7"
                  },
                  {
                    "introduced": "2.4.0"
                  },
                  {
                    "last_affected": "2.4.2"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:adobe:adobe_commerce:2.4.2:p1:*:*:*:*:*:*"
            ],
            "vendor_product": "adobe:adobe_commerce",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.4.2-p1"
                  },
                  {
                    "last_affected": "2.4.2-p1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-36040",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 433560,
  "published_at": "2021-09-01T15:15:10.113+00:00"
}