Hi, via the mailing list kde-announce@kde.org there was an announcement that okular has a vulnerability. The full announcement: --- begin of quote --- KDE Project Security Advisory ============================= Title: Okular: Local binary execution via action links Risk Rating: Low CVE: CVE-2020-9359 Versions: Okular < 1.10.0 (tarball name okular-20.04.0.tar.xz) Date: 12th March 2019 Overview ======== Okular can be tricked into executing local binaries via specially crafted PDF files. This binary execution can require almost no user interaction. No parameters can be passed to those local binaries. We have not been able to identify any binary that will cause actual damage, be it in the hardware or software level, when run without parameters. We remain relatively confident that for this issue to do any actual damage, it has to run a binary specially crafted. That binary must have been deployed to the user system via another method, be it the user downloading it directly as an email attachment, webpage download, etc. or by the system being already compromised. Solution ======== - Update to Okular >= 1.10.0 - or apply the following patch: https://invent.kde.org/kde/okular/-/commit/6a93a033b4f9248b3cd4d04689b8391df754e244 Workaround ========== There's no real workaround other than not opening PDF files from untrusted sources. Credits ======= Thanks to Mickael Karatekin from Sysdream Labs for the discovery and to Albert Astals Cid for the fix. --- end of quote --- A patch exists[1] (I will append it here in a few seconds). I tested the patch locally against okular-19.12.3 and it builds. I didn't verify it that it actually fixes the underlying bug though (i.e. it just reads plausible). https://invent.kde.org/kde/okular/-/commit/6a93a033b4f9248b3cd4d04689b8391df754e244 Reproducible: Always
Created attachment 618920 [details, diff] fix from upstream
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e4e6c9feea5ae0f22fc9c639f2bc25f68194fda commit 6e4e6c9feea5ae0f22fc9c639f2bc25f68194fda Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-03-14 17:10:27 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-03-14 17:58:11 +0000 kde-apps/okular: Drop vulnerable 19.12.3 (r0) Bug: https://bugs.gentoo.org/712490 Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> kde-apps/okular/okular-19.12.3.ebuild | 112 ---------------------------------- 1 file changed, 112 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=232f0fbcc272198ac01d69d2ed5e43ccb2050a95 commit 232f0fbcc272198ac01d69d2ed5e43ccb2050a95 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-03-14 17:09:34 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-03-14 17:58:11 +0000 kde-apps/okular: Fix CVE-2020-9359 Reported-by: Nils Freydank <holgersson@posteo.de> Bug: https://bugs.gentoo.org/712490 Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../files/okular-19.12.3-CVE-2020-9359.patch | 27 +++++ kde-apps/okular/okular-19.12.3-r1.ebuild | 113 +++++++++++++++++++++ 2 files changed, 140 insertions(+)
Cleanup done in commit 305945367df9ecff66fd0389c1312df733028863.
(In reply to Andreas Sturmlechner from comment #3) > Cleanup done in commit 305945367df9ecff66fd0389c1312df733028863. Correction; not done for arm64.
Cleanup done for real this time.
kde proj done here, anyway.
Tree is clean.
This issue was resolved and addressed in GLSA 202007-47 at https://security.gentoo.org/glsa/202007-47 by GLSA coordinator Sam James (sam_c).