Open
Fix CVE-2025-58372 #24
RuGuYaAdd on May 19
Fix CVE-2025-58372 #24
Open
Total: 2 files changed+58-1
| @@ -0,0 +1,52 @@ | |||
| 1 | +From 296edfc829a7c6efc8b5dbe09aa766a9aed79598 Mon Sep 17 00:00:00 2001 | ||
| 2 | +From: Matt Rubens <mrubens@users.noreply.github.com> | ||
| 3 | +Date: Tue, 26 Aug 2025 00:09:14 -0400 | ||
| 4 | +Subject: [PATCH] Mark code-workspace files as protected (#7403) | ||
| 5 | + | ||
| 6 | +--- | ||
| 7 | + src/core/protect/RooProtectedController.ts | 3 ++- | ||
| 8 | + src/core/protect/__tests__/RooProtectedController.spec.ts | 8 ++++++++ | ||
| 9 | + 2 files changed, 10 insertions(+), 1 deletion(-) | ||
| 10 | + | ||
| 11 | +diff --git a/src/core/protect/RooProtectedController.ts b/src/core/protect/RooProtectedController.ts | ||
| 12 | +index f4d80c4d646..d498457ffd0 100644 | ||
| 13 | +--- a/src/core/protect/RooProtectedController.ts | ||
| 14 | ++++ b/src/core/protect/RooProtectedController.ts | ||
| 15 | +@@ -19,9 +19,10 @@ export class RooProtectedController { | ||
| 16 | + ".clinerules*", | ||
| 17 | + ".roo/**", | ||
| 18 | + ".vscode/**", | ||
| 19 | ++ "*.code-workspace", | ||
| 20 | + ".rooprotected", // For future use | ||
| 21 | + "AGENTS.md", | ||
| 22 | +- "AGENT.md", // Alternative singular form for compatibility | ||
| 23 | ++ "AGENT.md", | ||
| 24 | + ] | ||
| 25 | + | ||
| 26 | + constructor(cwd: string) { | ||
| 27 | +diff --git a/src/core/protect/__tests__/RooProtectedController.spec.ts b/src/core/protect/__tests__/RooProtectedController.spec.ts | ||
| 28 | +index f19cf175489..974ad028390 100644 | ||
| 29 | +--- a/src/core/protect/__tests__/RooProtectedController.spec.ts | ||
| 30 | ++++ b/src/core/protect/__tests__/RooProtectedController.spec.ts | ||
| 31 | +@@ -44,6 +44,13 @@ describe("RooProtectedController", () => { | ||
| 32 | + expect(controller.isWriteProtected(".vscode/tasks.json")).toBe(true) | ||
| 33 | + }) | ||
| 34 | + | ||
| 35 | ++ it("should protect .code-workspace files", () => { | ||
| 36 | ++ expect(controller.isWriteProtected("myproject.code-workspace")).toBe(true) | ||
| 37 | ++ expect(controller.isWriteProtected("pentest.code-workspace")).toBe(true) | ||
| 38 | ++ expect(controller.isWriteProtected(".code-workspace")).toBe(true) | ||
| 39 | ++ expect(controller.isWriteProtected("folder/workspace.code-workspace")).toBe(true) | ||
| 40 | ++ }) | ||
| 41 | ++ | ||
| 42 | + it("should protect AGENTS.md file", () => { | ||
| 43 | + expect(controller.isWriteProtected("AGENTS.md")).toBe(true) | ||
| 44 | + }) | ||
| 45 | +@@ -149,6 +156,7 @@ describe("RooProtectedController", () => { | ||
| 46 | + ".clinerules*", | ||
| 47 | + ".roo/**", | ||
| 48 | + ".vscode/**", | ||
| 49 | ++ "*.code-workspace", | ||
| 50 | + ".rooprotected", | ||
| 51 | + "AGENTS.md", | ||
| 52 | + "AGENT.md", | ||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | Name: roo-code | 3 | Name: roo-code |
| 4 | Version: 3.25.14 | 4 | Version: 3.25.14 |
| 5 | -Release: 1 | 5 | +Release: 2 |
| 6 | Summary: Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor. | 6 | Summary: Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor. |
| 7 | License: Apache-2.0 | 7 | License: Apache-2.0 |
| 8 | URL: https://roocode.com | 8 | URL: https://roocode.com |
| @@ -16,6 +16,7 @@ Requires: vscodium rust-ripgrep | |||
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | Patch0: ripgrep.patch | 18 | Patch0: ripgrep.patch |
| 19 | +Patch1: backport-CVE-2025-58372.patch | ||
| 19 | 20 | ||
| 20 | 21 | ||
| 21 | %description | 22 | %description |
| @@ -24,6 +25,7 @@ Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code | |||
| 24 | 25 | ||
| 25 | %prep | 26 | %prep |
| 26 | %setup -q -T -b 0 -c -n Roo-Code-%{version} | 27 | %setup -q -T -b 0 -c -n Roo-Code-%{version} |
| 28 | +%patch -P 1 -p1 | ||
| 27 | 29 | ||
| 28 | %autopatch -p1 -M 0 | 30 | %autopatch -p1 -M 0 |
| 29 | 31 | ||
| @@ -49,6 +51,9 @@ mv extension %{buildroot}%{_datadir}/vscodium/resources/app/extensions/%{name} | |||
| 49 | 51 | ||
| 50 | 52 | ||
| 51 | %changelog | 53 | %changelog |
| 54 | +* Thu May 21 2026 shenbowen <shenbowen@xfusion.com> - 3.25.14-2 | ||
| 55 | +- Fix CVE-2025-58372 | ||
| 56 | + | ||
| 52 | * Mon Jul 28 2025 wangkui35 <wangkui35@h-partners.com> - 3.25.14-1 | 57 | * Mon Jul 28 2025 wangkui35 <wangkui35@h-partners.com> - 3.25.14-1 |
| 53 | - update to 3.25.14-1 | 58 | - update to 3.25.14-1 |
| 54 | 59 | ||