Skip to content

Commit e77f8a2

Browse files
authored
Merge pull request #17612 from craftcms/bugfix/twig-ssti
Add call_user_func to Twig checkArrowFunction
2 parents 8ea7a44 + 03defbd commit e77f8a2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes for Craft CMS 4
22

3+
## Unreleased
4+
5+
- Fixed an RCE vulnerability.
6+
37
## 4.16.4 - 2025-07-08
48

59
- Fixed an information disclosure vulnerability.

src/web/twig/Extension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ private static function checkArrowFunction(mixed $arrow, string $thing, string $
122122
'file_get_contents',
123123
'file_put_contents',
124124
'popen',
125+
'call_user_func',
125126
])
126127
) {
127128
throw new RuntimeError(sprintf('The "%s" %s does not support passing "%s".', $thing, $type, $arrow));

0 commit comments

Comments
 (0)