CVE-2022-39261: 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. Fix: https://github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0b Please bump to 1.44.7.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5663f7e15244378caa1c3c94c1b657a0057268bb commit 5663f7e15244378caa1c3c94c1b657a0057268bb Author: John Helmert III <ajak@gentoo.org> AuthorDate: 2023-04-19 04:09:26 +0000 Commit: John Helmert III <ajak@gentoo.org> CommitDate: 2023-04-19 04:12:28 +0000 dev-php/twig: add 1.44.7 Closes: https://bugs.gentoo.org/873358 Signed-off-by: John Helmert III <ajak@gentoo.org> dev-php/twig/Manifest | 1 + dev-php/twig/twig-1.44.7.ebuild | 49 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+)
Sorry, didn't mean to close.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=881bdd2431f6e53381892ae810861e72eea85993 commit 881bdd2431f6e53381892ae810861e72eea85993 Author: John Helmert III <ajak@gentoo.org> AuthorDate: 2023-04-30 23:37:55 +0000 Commit: John Helmert III <ajak@gentoo.org> CommitDate: 2023-04-30 23:37:55 +0000 dev-php/twig: drop 1.44.6 Bug: https://bugs.gentoo.org/873358 Signed-off-by: John Helmert III <ajak@gentoo.org> dev-php/twig/Manifest | 1 - dev-php/twig/twig-1.44.6.ebuild | 49 ----------------------------------------- 2 files changed, 50 deletions(-)