Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-36041

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 could upload a specially crafted file in the 'pub/media` directory could lead to remote code execution.

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

Source evidence

CVE-2021-36041

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 could upload a specially crafted file in the 'pub/media` directory could lead to remote code execution.

osv:CVE-2021-36041
Complete source record
{
  "id": "7ce16b94eff664176e2a1633ef00b54a16c96fc8568c4a1a7bafcdd14ecf9e3e",
  "url": "https://osv.dev/vulnerability/CVE-2021-36041",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-36041",
    "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 could upload a specially crafted file in the 'pub/media` directory could lead to remote code execution.",
    "evidence": "osv:CVE-2021-36041",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-36041",
      "aliases": [
        "CVE-2021-36041",
        "GHSA-mx5m-j5xr-jg8c"
      ],
      "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-36041.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:20.337021840Z",
      "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-36041",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430242,
  "published_at": "2021-09-01T15:15:10.173+00:00"
}