CVEMETERBack to radar
OFFICIAL RECORD · PHP packages

CVE-2025-24374

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 4.3 · medium

Twig fixes a security issue where escaping was missing when using null coalesce operator (??)

Twig is a template language for PHP. When using the ?? operator, output escaping was missing for the expression on the left side of the operator. This vulnerability is fixed in 3.19.0.

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

Severity and exploitation evidence

EPSS: 0.298% · 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-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 4.3 · published by GitHub_M
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:57:28.128Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:57:28.128ZCVE Program
epssverified2026-11-19T16:04:40.588ZFIRST EPSS
patchesverified2026-11-19T12:52:00.377ZOSV
affectedverified2026-11-19T12:57:28.128ZCVE Program
lifecycleverified2026-11-19T12:57:28.128ZCVE Program

Affected versions and configuration

twigphp Twig; default status: unknown: >= 3.16.0, < 3.19.0 [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.16.0, < 3.19.0"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2025-24374",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-01-29T15:44:45.378845Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-01-29T15:44:49.358Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-3xg3-cgvq-2xwr",
  "aliases": [
    "CVE-2025-24374"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "3.16.0"
            },
            {
              "fixed": "3.19.0"
            }
          ]
        }
      ],
      "package": {
        "name": "twig/twig",
        "purl": "pkg:composer/twig/twig",
        "ecosystem": "Packagist"
      },
      "versions": [
        "v3.16.0",
        "v3.17.0",
        "v3.17.1",
        "v3.18.0"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-3xg3-cgvq-2xwr/GHSA-3xg3-cgvq-2xwr.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-24374",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3",
      "type": "WEB"
    },
    {
      "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2025-24374.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/twigphp/Twig",
      "type": "PACKAGE"
    },
    {
      "url": "https://symfony.com/blog/twig-cve-2025-24374-missing-output-escaping-for-the-null-coalesce-operator",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-74"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2025-01-29T16:15:44Z",
    "github_reviewed_at": "2025-01-29T18:41:43Z"
  }
}
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 channel3.19.0Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history