CVEMETERBack to radar
OFFICIAL RECORD · PHP packages

CVE-2022-23614

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 8.8 · high

Code injection in Twig

Twig is an open source template language for PHP. When in a sandbox mode, the `arrow` parameter of the `sort` filter must be a closure to avoid attackers being able to run arbitrary PHP functions. In affected versions this constraint was not properly enforced and could lead to code injection of arbitrary PHP code. Patched versions now disallow calling non Closure in the `sort` filter as is the case for some other filters. Users are advised to upgrade.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 8.209% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 8.8 · published by GitHub_M
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:56:23.629Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T12:56:23.629ZCVE Program
epssverified2026-11-19T16:04:32.877ZFIRST EPSS
patchesverified2026-11-19T12:52:00.377ZOSV
affectedverified2026-11-19T12:56:23.629ZCVE Program
lifecycleverified2026-11-19T12:56:23.629ZCVE Program

Affected versions and configuration

twigphp Twig; default status: unknown: >= 3.0.0, < 3.3.8 [affected; scheme: unspecified]; >= 2.0.0, < 2.14.11 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "twigphp",
      "product": "Twig",
      "versions": [
        {
          "status": "affected",
          "version": ">= 3.0.0, < 3.3.8"
        },
        {
          "status": "affected",
          "version": ">= 2.0.0, < 2.14.11"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-5mv2-rx3q-4w2v",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/twigphp/Twig/commit/22b9dc3c03ee66d7e21d9ed2ca76052b134cb9e9",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/twigphp/Twig/commit/2eb33080558611201b55079d07ac88f207b466d5",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OTN4273U4RHVIXED64T7DSMJ3VYTPRE7/",
          "name": "FEDORA-2022-167b9becef",
          "tags": [
            "vendor-advisory",
            "x_refsource_FEDORA",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PECHIY2XLWUH2WLCNPDGNFMPHPRPCEDZ/",
          "name": "FEDORA-2022-47293b1d23",
          "tags": [
            "vendor-advisory",
            "x_refsource_FEDORA",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I2PVV5DUTRUECTIHMTWRI5Z7DVNYQ2YO/",
          "name": "FEDORA-2022-7d871d7583",
          "tags": [
            "vendor-advisory",
            "x_refsource_FEDORA",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIGZCFSYLPP7UVJ4E4NLHSOQSKYNXSAD/",
          "name": "FEDORA-2022-58abb323f0",
          "tags": [
            "vendor-advisory",
            "x_refsource_FEDORA",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.debian.org/security/2022/dsa-5107",
          "name": "DSA-5107",
          "tags": [
            "vendor-advisory",
            "x_refsource_DEBIAN",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-03T03:43:46.974Z"
      }
    },
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2022-23614",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-04-23T15:56:43.403255Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-04-23T19:08:27.990Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-5mv2-rx3q-4w2v",
  "aliases": [
    "CVE-2022-23614"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "2.0.0"
            },
            {
              "fixed": "2.14.11"
            }
          ]
        }
      ],
      "package": {
        "name": "twig/twig",
        "purl": "pkg:composer/twig/twig",
        "ecosystem": "Packagist"
      },
      "versions": [
        "v2.0.0",
        "v2.1.0",
        "v2.10.0",
        "v2.11.0",
        "v2.11.1",
        "v2.11.2",
        "v2.11.3",
        "v2.12.0",
        "v2.12.1",
        "v2.12.2",
        "v2.12.3",
        "v2.12.4",
        "v2.12.5",
        "v2.13.0",
        "v2.13.1",
        "v2.14.0",
        "v2.14.1",
        "v2.14.10",
        "v2.14.2",
        "v2.14.3",
        "v2.14.4",
        "v2.14.5",
        "v2.14.6",
        "v2.14.7",
        "v2.14.8",
        "v2.14.9",
        "v2.2.0",
        "v2.3.0",
        "v2.3.1",
        "v2.3.2",
        "v2.4.0",
        "v2.4.1",
        "v2.4.2",
        "v2.4.3",
        "v2.4.4",
        "v2.4.5",
        "v2.4.6",
        "v2.4.7",
        "v2.4.8",
        "v2.5.0",
        "v2.6.0",
        "v2.6.1",
        "v2.6.2",
        "v2.7.0",
        "v2.7.1",
        "v2.7.2",
        "v2.7.3",
        "v2.7.4",
        "v2.8.0",
        "v2.8.1",
        "v2.9.0"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-5mv2-rx3q-4w2v/GHSA-5mv2-rx3q-4w2v.json"
      }
    },
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "3.0.0"
            },
            {
              "fixed": "3.3.8"
            }
          ]
        }
      ],
      "package": {
        "name": "twig/twig",
        "purl": "pkg:composer/twig/twig",
        "ecosystem": "Packagist"
      },
      "versions": [
        "v3.0.0",
        "v3.0.1",
        "v3.0.2",
        "v3.0.3",
        "v3.0.4",
        "v3.0.5",
        "v3.1.0",
        "v3.1.1",
        "v3.2.1",
        "v3.3.0",
        "v3.3.1",
        "v3.3.2",
        "v3.3.3",
        "v3.3.4",
        "v3.3.5",
        "v3.3.6",
        "v3.3.7"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-5mv2-rx3q-4w2v/GHSA-5mv2-rx3q-4w2v.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-5mv2-rx3q-4w2v",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23614",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/twigphp/Twig/commit/22b9dc3c03ee66d7e21d9ed2ca76052b134cb9e9",
      "type": "WEB"
    },
    {
      "url": "https://github.com/twigphp/Twig/commit/2eb33080558611201b55079d07ac88f207b466d5",
      "type": "WEB"
    },
    {
      "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2022-23614.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/twigphp/Twig",
      "type": "WEB"
    },
    {
      "url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/I2PVV5DUTRUECTIHMTWRI5Z7DVNYQ2YO",
      "type": "WEB"
    },
    {
      "url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/OTN4273U4RHVIXED64T7DSMJ3VYTPRE7",
      "type": "WEB"
    },
    {
      "url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/PECHIY2XLWUH2WLCNPDGNFMPHPRPCEDZ",
      "type": "WEB"
    },
    {
      "url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/SIGZCFSYLPP7UVJ4E4NLHSOQSKYNXSAD",
      "type": "WEB"
    },
    {
      "url": "https://symfony.com/blog/twig-security-release-disallow-non-closures-in-the-sort-filter",
      "type": "WEB"
    },
    {
      "url": "https://www.debian.org/security/2022/dsa-5107",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-74",
      "CWE-94"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "nvd_published_at": "2022-02-04T23:15:00Z",
    "github_reviewed_at": "2022-02-07T16:43:09Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPackagist / packagetwig/twigNot a distribution channel2.14.11Official record
ecosystem-boundaryPackagist / packagetwig/twigNot a distribution channel3.3.8Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history