From 6ba8215d318b8af6ee7773eb97ebca7fe708cba7 Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Thu, 25 Dec 2025 15:02:21 +0100 Subject: [PATCH] smarty: patch CVE-2023-28447 Details: https://nvd.nist.gov/vuln/detail/CVE-2023-28447 Pick the patch that is referenced by the NVD report. Signed-off-by: Gyorgy Sarvari --- .../smarty/smarty/CVE-2023-28447.patch | 74 +++++++++++++++++++ .../recipes-support/smarty/smarty_4.1.1.bb | 1 + 2 files changed, 75 insertions(+) create mode 100644 meta-oe/recipes-support/smarty/smarty/CVE-2023-28447.patch diff --git a/meta-oe/recipes-support/smarty/smarty/CVE-2023-28447.patch b/meta-oe/recipes-support/smarty/smarty/CVE-2023-28447.patch new file mode 100644 index 0000000000..837019d88a --- /dev/null +++ b/meta-oe/recipes-support/smarty/smarty/CVE-2023-28447.patch @@ -0,0 +1,74 @@ +From 456aad251e7dd399fef136f652a1684c05fefa5a Mon Sep 17 00:00:00 2001 +From: Simon Wisselink +Date: Fri, 24 Mar 2023 12:19:34 +0100 +Subject: [PATCH] Implement fix and tests + +CVE: CVE-2023-28447 +Upstream-Status: Backport [https://github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d] +Signed-off-by: Gyorgy Sarvari +--- + libs/plugins/modifier.escape.php | 4 +++- + libs/plugins/modifiercompiler.escape.php | 4 +++- + .../PluginModifierEscapeTest.php | 21 +++++++++++++++++++ + 3 files changed, 27 insertions(+), 2 deletions(-) + +diff --git a/libs/plugins/modifier.escape.php b/libs/plugins/modifier.escape.php +index 3ce48382..70d2db92 100644 +--- a/libs/plugins/modifier.escape.php ++++ b/libs/plugins/modifier.escape.php +@@ -188,7 +188,9 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $ + // see https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements + '