public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Than Ngo <than@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dolphin] f45: Fix rhbz#2553643 - CVE-2026-110236 Arbitrary command execution via crafted folder name
Date: Tue, 20 Oct 2026 14:42:54 GMT	[thread overview]
Message-ID: <179250737477.1.18250873030215722072.rpms-dolphin-46c46b7d6d73@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-10-20 14:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179250737477.1.18250873030215722072.rpms-dolphin-46c46b7d6d73@fedoraproject.org \
    --to=than@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox