CVE-2022-39261

HighCVSS 7.5/10Last modified Jun 17, 2026

Description

Twig is a template language for PHP. Versions 1.x prior to 1.44.7, 2.x prior to 2.15.3, and 3.x prior to 3.4.3 encounter an issue when the filesystem loader loads templates for which the name is a user input. It is possible to use the `source` or `include` statement to read arbitrary files from outside the templates' directory when using a namespace like `@somewhere/../some.file`. In such a case, validation is bypassed. Versions 1.44.7, 2.15.3, and 3.4.3 contain a fix for validation of such template names. There are no known workarounds aside from upgrading.

Metrics

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

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Sep 28, 2022
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2022

CVE-2022-392624.8GLPI stands for Gestionnaire Libre de Parc Informatique. GLPI is a Free Asset and IT Management Software package, GLPI administrator can defCVE-2022-392638.1`@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides authentication for Next.js. Applications thaCVE-2022-392645.9nheko is a desktop client for the Matrix communication application. All versions below 0.10.2 are vulnerable homeservers inserting maliciousCVE-2022-392657.2MyBB is a free and open source forum software. The _Mail Settings_ → Additional Parameters for PHP's mail() function mail_parameters settingCVE-2022-392669.8isolated-vm is a library for nodejs which gives the user access to v8's Isolate interface. In versions 4.3.6 and prior, if the untrusted v8 CVE-2022-392678.8Bifrost is a heterogeneous middleware that synchronizes MySQL, MariaDB to Redis, MongoDB, ClickHouse, MySQL and other services for productioCVE-2022-392688.1### Impact In a CSRF attack, an innocent end user is tricked by an attacker into submitting a web request that they did not intend. This mayCVE-2022-392699.1PJSIP is a free and open source multimedia communication library written in C. When processing certain packets, PJSIP may incorrectly switchCVE-2022-39279.8The affected products store both public and private key that are used to sign and protect Custom Parameter Set (CPS) file from modification.CVE-2022-392705.4DiscoTOC is a Discourse theme component that generates a table of contents for topics. Users that can create topics in TOC-enabled categorieCVE-2022-392717.5Traefik (pronounced traffic) is a modern HTTP reverse proxy and load balancer that assists in deploying microservices. There is a potential CVE-2022-392724.3Flux is an open and extensible continuous delivery solution for Kubernetes. Versions prior to 0.35.0 are subject to a Denial of Service. Use
CVE-2022-39261: High severity, CVSS 7.5 | Vulnix