Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-46433

In fenom 2.12.1 and before, there is a way in fenom/src/Fenom/Template.php function getTemplateCode()to bypass sandbox to execute arbitrary PHP code when disable_native_funcs is true.

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

Source evidence

CVE-2021-46433

core-osv · Original source

Published 28 Mar 2022, 11:15 UTC

In fenom 2.12.1 and before, there is a way in fenom/src/Fenom/Template.php function getTemplateCode()to bypass sandbox to execute arbitrary PHP code when disable_native_funcs is true.

osv:CVE-2021-46433
Complete source record
{
  "id": "7befc7163f8643154373a1dcd72a95cb3eea5457851169117310e57380fbe8e5",
  "url": "https://osv.dev/vulnerability/CVE-2021-46433",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-46433",
    "summary": "In fenom 2.12.1 and before, there is a way in fenom/src/Fenom/Template.php function getTemplateCode()to bypass sandbox to execute arbitrary PHP code when disable_native_funcs is true.",
    "evidence": "osv:CVE-2021-46433",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-46433",
      "aliases": [
        "CVE-2021-46433",
        "GHSA-674v-3g2w-84gx"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/fenom-template/fenom",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "8fb0a703111189901291bea93b5558e2bcd7df21"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:fenom_project:fenom:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.12.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.12.1",
            "2.12.0",
            "2.12",
            "2.11.9",
            "2.11.8",
            "2.11.7",
            "2.11.6",
            "2.11.5",
            "2.11.4",
            "2.11.3",
            "2.11.2",
            "2.11.1",
            "2.11.0",
            "2.10.0",
            "2.9.0",
            "2.8.2",
            "2.8.1",
            "2.8.0",
            "2.7.1",
            "2.7.0",
            "2.6.2",
            "2.6.1",
            "2.6.0",
            "2.5.4",
            "2.5.3",
            "2.5.2",
            "2.5.1",
            "2.5.0",
            "2.4.6",
            "2.4.0",
            "2.3.0",
            "2.2.0",
            "2.1.0",
            "2.0.0",
            "1.4.9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46433.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:10.065620511Z",
      "provider": "osv",
      "references": [
        "https://github.com/fenom-template/fenom/issues/331"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-46433",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386989,
  "published_at": "2022-03-28T11:15:07.647+00:00"
}