public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dolphin] f45: Fix rhbz#2553643 - CVE-2026-110236 Arbitrary command execution via crafted folder name
@ 2026-10-20 14:42 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-10-20 14:42 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/dolphin
Branch : f45
Commit : 46c46b7d6d7395b772ad7685cc4542567c61cede
Author : Than Ngo <than@redhat.com>
Date   : 2026-10-20T16:42:27+02:00
Stats  : +35/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/dolphin/c/46c46b7d6d7395b772ad7685cc4542567c61cede?branch=f45

Log:
Fix rhbz#2553643 - CVE-2026-110236 Arbitrary command execution via crafted folder name

---
diff --git a/dolphin-CVE-2026-110236.patch b/dolphin-CVE-2026-110236.patch
new file mode 100644
index 0000000..6da9d3a
--- /dev/null
+++ b/dolphin-CVE-2026-110236.patch
@@ -0,0 +1,30 @@
+commit 9685acf1bbc6ba1f591b37b8be4250a604fcc0bf
+Author: Méven Car <meven@kde.org>
+Date:   Thu Oct 15 08:37:54 2026 +0000
+
+    dolphinmainwindow: pass the folder of the custom command as one argument
+    
+    Before this change, {path} was replaced with the folder path in double quotes.
+    A folder name with a double quote or a dollar sign then gave the command a
+    different path.
+    {path} is now replaced with the path quoted by KShell::quoteArg.
+    A {path} that the command already has in quotes gets the same path.
+
+diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
+index ab48a528c..49c68d3c6 100644
+--- a/src/dolphinmainwindow.cpp
++++ b/src/dolphinmainwindow.cpp
+@@ -3258,9 +3258,11 @@ void DolphinMainWindow::slotDoubleClickViewBackground(Qt::MouseButton button)
+ 
+     if (clickAction == customCommand) {
+         // run custom command set by the user
+-        QString path = view->url().toLocalFile();
+         QString clickCustomAction = settings->doubleClickViewCustomAction();
+-        clickCustomAction.replace("{path}", path.prepend('"').append('"'));
++        // {path} becomes one quoted shell word, also when the command already has it in quotes.
++        clickCustomAction.replace(QLatin1String("\"{path}\""), QLatin1String("{path}"));
++        clickCustomAction.replace(QLatin1String("'{path}'"), QLatin1String("{path}"));
++        clickCustomAction.replace(QLatin1String("{path}"), KShell::quoteArg(view->url().toLocalFile()));
+ 
+         m_job = new KIO::CommandLauncherJob(clickCustomAction);
+         m_job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));

diff --git a/dolphin.spec b/dolphin.spec
index 93b2ab0..f46bfeb 100644
--- a/dolphin.spec
+++ b/dolphin.spec
@@ -3,13 +3,14 @@
 Name:           dolphin
 Summary:        KDE File Manager
 Version:        26.08.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 
 License:        BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-3.0-only AND (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only)
 URL:            https://invent.kde.org/system/dolphin
 Source0:        https://download.kde.org/%{stable_kf6}/release-service/%{maj_ver_kf6}.%{min_ver_kf6}.%{bug_ver_kf6}/src/%{name}-%{version}.tar.xz
 
 # Upstream
+Patch:          dolphin-CVE-2026-110236.patch
 
 BuildRequires:  desktop-file-utils
 BuildRequires:  libappstream-glib
@@ -166,6 +167,9 @@ xvfb-run -a bash -c "%ctest" || :
 
 
 %changelog
+* Tue Oct 20 2026 Than Ngo <than@redhat.com> - 26.08.1-2
+- Fix rhbz#2553643 - CVE-2026-110236 Arbitrary command execution via crafted folder name
+
 * Wed Sep 09 2026 Steve Cossette <farchord@gmail.com> - 26.08.1-1
 - 26.08.1
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-20 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 14:42 [rpms/dolphin] f45: Fix rhbz#2553643 - CVE-2026-110236 Arbitrary command execution via crafted folder name Than Ngo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox