Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. twig/twig
  4. ›
  5. CVE-2022-23614

CVE-2022-23614: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

February 4, 2022 (updated November 7, 2023)

Twig is an open source template language for PHP.Patched versions now disallow calling non Closure in the sort filter as is the case for some other filters. Users are advised to upgrade.

References

  • github.com/twigphp/Twig/commit/22b9dc3c03ee66d7e21d9ed2ca76052b134cb9e9
  • github.com/twigphp/Twig/commit/2eb33080558611201b55079d07ac88f207b466d5
  • github.com/twigphp/Twig/security/advisories/GHSA-5mv2-rx3q-4w2v
  • nvd.nist.gov/vuln/detail/CVE-2022-23614

Code Behaviors & Features

Detect and mitigate CVE-2022-23614 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.14.11, all versions starting from 3.0.0 before 3.3.8

Fixed versions

  • 2.14.11
  • 3.3.8

Solution

Upgrade to versions 2.14.11, 3.3.8 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/twig/twig/CVE-2022-23614.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:05 +0000.