GHSA-5mv2-rx3q-4w2v

Code injection in Twig

At a glance

Published
Updated
CVE
CVE-2022-23614
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

# Description 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. # Resolution We now disallow calling non Closure in the `sort` filter like we already did for some other filters. # Credits We would like to thank Marlon Starkloff for reporting the issue and Fabien Potencier for fixing the issue.

Affected packages

PackageVersions
Packagist · twig/twigintroduced 2.0.0, fixed 2.14.11
Packagist · twig/twigintroduced 3.0.0, fixed 3.3.8

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database