Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-23614

published high CVSS 3.1 · 8.8

Code injection in Twig

Published
04 Feb 2022, 22:25:11 UTC
Updated
23 Apr 2025, 19:08:27 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
twigphp — Twig>= 3.0.0, < 3.3.8 · >= 2.0.0, < 2.14.11 Affected Not stated GitHub_M
Debian bullseye php-twig Advisory build 2.14.3-1+deb11u1 DSA-5107-1
Ubuntu focal php-twig Advisory build 2.12.5-1ubuntu0.1~esm1 USN-5947-1
Ubuntu focal php-twig-cssinliner-extra Advisory build 2.12.5-1ubuntu0.1~esm1 USN-5947-1
Ubuntu focal php-twig-extra-bundle Advisory build 2.12.5-1ubuntu0.1~esm1 USN-5947-1
Ubuntu focal php-twig-html-extra Advisory build 2.12.5-1ubuntu0.1~esm1 USN-5947-1
Ubuntu focal php-twig-inky-extra Advisory build 2.12.5-1ubuntu0.1~esm1 USN-5947-1
Ubuntu focal php-twig-intl-extra Advisory build 2.12.5-1ubuntu0.1~esm1 USN-5947-1
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu focal php-twig-markdown-extra Advisory build 2.12.5-1ubuntu0.1~esm1 USN-5947-1

Description

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.8 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
twigphp Twig >= 3.0.0, < 3.3.8 (affected)>= 2.0.0, < 2.14.11 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (GitHub_M · cna)

References

8

Provider assertions

3

GitHub_M · cna

Code injection in Twig

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
1cbf823b18f58a0b0d8eb480446d6277c705488fdeaf972daa4f149350969232
Ingested
23 Sep 2026, 07:58:41 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected