Advisory record · GHSA-7cvr-xhm5-x998

Twig Path Traversal vulnerability in the filesystem loader

CVSS 5.3 Medium

Published by the GitHub Advisory Database at 30 May 2024, 13:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
twig/twigPackagist>=1.0.0, <1.12.31.12.3
Identifiers
GHSA-7cvr-xhm5-x998 · PKSA-g1zx-twcw-9z6k
Weakness (CWE)
CWE-22
Published
30 May 2024
Updated
5 Dec 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Twig versions from 1.0.0 before 1.12.3 are vulnerable to path traversal in the filesystem loader (Twig_Loader_Filesystem) when template names come from untrusted input. An attacker who can control a template name can include files one directory above a configured template path. Upgrade twig/twig to 1.12.3 or later. Avoid passing end-user-supplied values as template names until upgraded.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 14:28 UTC First seen by agentprime
  2. 31 Oct 2026, 14:28 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.