CVE-2022-39261
Twig may load a template outside a configured directory when using the filesystem loader
02 Description
Twig may load a template outside a configured directory when using the filesystem loader
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 3.17% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 87.8% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- No Red Hat rating. Red Hat rates the CVEs that affect its products.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2022-09-28 00:00Z4 YR AGO
- Last updated
- 2025-04-23 16:54Z1 YR AGO
- Reserved
- 2022-09-02
- Assigning CNA
- GitHub_M
- Record state
- PUBLISHED
- Severity
- High (CVSS 7.5)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Base
- Data version
- 5.1
- Document digest
- 7b9bdfdfacde643ce81d993bcaa89ff06b32df6c21bd59f351b6f7c45da08d4a
05 Affected products
06 References
- github.comhttps://github.com/twigphp/Twig/security/advisories/GHSA-52m2-vc4m-jj33
- github.comhttps://github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0b
- www.drupal.orghttps://www.drupal.org/sa-core-2022-016
- www.debian.orgDSA-5248https://www.debian.org/security/2022/dsa-5248
- lists.fedoraproject.orgFEDORA-2022-4490a4772dhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AUVTXMNPSZAHS3DWZEM56V5W4NPVR6L7/
- lists.fedoraproject.orgFEDORA-2022-d39b2a755bhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2OKRUHPVLIQVFPPJ2UWC3WV3WQO763NR/
- lists.fedoraproject.orgFEDORA-2022-1695454935https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YU4ZYX62H2NUAKKGUES4RZIM4KMTKZ7F/
- lists.fedoraproject.orgFEDORA-2022-9d8ee4a6dehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NWRFPZSR74SYVJKBTKTMYUK36IJ3SQJP/
- lists.debian.org[debian-lts-announce] 20221011 [SECURITY] [DLA 3147-1] twig security updatehttps://lists.debian.org/debian-lts-announce/2022/10/msg00016.html
- lists.fedoraproject.orgFEDORA-2022-c6fe3ebd94https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TW53TFJ6WWNXMUHOFACKATJTS7NIHVQE/
- lists.fedoraproject.orgFEDORA-2022-73b9fb7a77https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WV5TNNJLGG536TJH6DLCIAAZZIPV2GUD/
07 Fixed in
Debian 12
- php-twig Fixed in 3.4.3-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- php-twig Fixed in 3.4.3-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- php-twig Fixed in 3.4.3-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- twig Fixed in 1.23.1-1ubuntu4+esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- twig Fixed in 2.4.6-1ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 20.04 LTS
- php-twig Fixed in 2.12.5-1ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 22.04 LTS
- php-twig Fixed in 3.3.8-2ubuntu4+esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.