Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-46703

In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-46703
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:04 UTC · Revision 1

Source evidence

CVE-2021-46703

core-osv · Original source

Published 6 Mar 2022, 06:15 UTC

In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer

osv:CVE-2021-46703
Complete source record
{
  "id": "9f6686162e8c64a48999438c40e0b68ed591c412bb916201998ca2ac54ba2a4c",
  "url": "https://osv.dev/vulnerability/CVE-2021-46703",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-46703",
    "summary": "In the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer",
    "evidence": "osv:CVE-2021-46703",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-46703",
      "aliases": [
        "CVE-2021-46703",
        "GHSA-ph3v-2hq5-5qfq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/antaris/razorengine",
              "type": "GIT",
              "events": [
                {
                  "introduced": "311c3bbd752cab910d35676ca51f9c5e0780c354"
                },
                {
                  "last_affected": "311c3bbd752cab910d35676ca51f9c5e0780c354"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:razorengine_project:razorengine:4.5.1:alpha001:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.5.1-alpha001"
                      },
                      {
                        "last_affected": "4.5.1-alpha001"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.5.1-alpha001",
            "roslyn-4.5.1-alpha001",
            "3.10.1-alpha001"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46703.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:11.656619308Z",
      "provider": "osv",
      "references": [
        "https://github.com/Antaris/RazorEngine/issues/585"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:razorengine_project:razorengine:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "razorengine_project:razorengine",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "4.5.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-46703",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387042,
  "published_at": "2022-03-06T06:15:07.103+00:00"
}