Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions SPECS/reaper/CVE-2024-52798.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
From 4d91e1915e5e1c9a0e65cb9e47fae3867438ac47 Mon Sep 17 00:00:00 2001
From: Sreenivasulu Malavathula <v-smalavathu@microsoft.com>
Date: Sun, 9 Feb 2025 09:15:14 -0600
Subject: [PATCH] Address CVE-2024-52798

---
src/ui/node_modules/path-to-regexp/index.js | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/ui/node_modules/path-to-regexp/index.js b/src/ui/node_modules/path-to-regexp/index.js
index 39b7caac..4922e0a3 100644
--- a/src/ui/node_modules/path-to-regexp/index.js
+++ b/src/ui/node_modules/path-to-regexp/index.js
@@ -72,20 +72,26 @@ function pathToRegexp(path, keys, options) {
path = path.replace(
/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,
function (match, slash, format, key, capture, star, optional, offset) {
- pos = offset + match.length;
-
if (match[0] === '\\') {
backtrack += match;
+ pos += 2;
return match;
}

if (match === '.') {
backtrack += '\\.';
extraOffset += 1;
+ pos += 1;
return '\\.';
}

- backtrack = slash || format ? '' : path.slice(pos, offset);
+ if (slash || format) {
+ backtrack = '';
+ } else {
+ backtrack += path.slice(pos, offset);
+ }
+
+ pos = offset + match.length;

if (match === '*') {
extraOffset += 3;
--
2.45.2

5 changes: 3 additions & 2 deletions SPECS/reaper/reaper.spec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ Patch9: CVE-2024-48949.patch
Patch10: CVE-2024-45590.patch
Patch11: CVE-2024-21538.patch
Patch12: CVE-2020-28458.patch
Patch13: CVE-2020-24025.patch
Patch13: CVE-2024-52798.patch
Patch14: CVE-2020-24025.patch

BuildRequires: git
BuildRequires: javapackages-tools
Expand Down Expand Up @@ -184,7 +185,7 @@ fi

%changelog
* Mon Feb 17 2025 Kanishk Bansal <kanbansal@microsoft.com> - 3.1.1-16
Comment thread
dmcilvaney marked this conversation as resolved.
- Patch CVE-2020-24025
- Patch CVE-2020-24025 and CVE-2024-52798

* Sat Nov 16 2024 Sudipta Pandit <sudpandit@microsoft.com> - 3.1.1-15
- Patch CVE-2024-21538 in node modules
Expand Down