CVE-2022-39261: Twig may load a template outside a configured directory when using the filesystem loader
twigphp · Twig
Vendor fix available · Affected: twigphp · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 88% of scored CVEs
DescriptionCVE.org
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.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- twigphp · Twig=> 1.0.0, < 1.44.7; >= 2.0.0, < 2.15.3; >= 3.0.0, < 3.4.3
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- twigphp
- Published
- September 2022
CoverageNo articles yet
No CyberSIXT article names CVE-2022-39261 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-22cwe.mitre.org
- Vendor advisorydebian.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- github.com/twigphp/Twig/security/advisories/GHSA-52m2-vc4m-jj33github.com
- github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074github.com
- drupal.org/sa-core-2022-016drupal.org
- Mailing listlists.debian.org