CVE-2021-38291
Signed-off-by: pangqing <pangqing@uniontech.com>
This commit is contained in:
parent
e67436a0f1
commit
0004c7cba6
28
backport-CVE-2021-38291.patch
Normal file
28
backport-CVE-2021-38291.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 16139a75c8a678504f0e72b1469e5a2313ca530b Mon Sep 17 00:00:00 2001
|
||||
From: root <root@localhost.localdomain>
|
||||
Date: Fri, 6 Sep 2024 23:24:23 +0800
|
||||
Subject: [PATCH] CVE-2021-38291
|
||||
|
||||
---
|
||||
3rdparty/libzipplugin/libzipplugin.cpp | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/3rdparty/libzipplugin/libzipplugin.cpp b/3rdparty/libzipplugin/libzipplugin.cpp
|
||||
index 3499046..3044470 100644
|
||||
--- a/3rdparty/libzipplugin/libzipplugin.cpp
|
||||
+++ b/3rdparty/libzipplugin/libzipplugin.cpp
|
||||
@@ -677,6 +677,11 @@ ErrorType LibzipPlugin::extractEntry(zip_t *archive, zip_int64_t index, const Ex
|
||||
|
||||
strFileName = m_common->trans2uft8(statBuffer.name, m_mapFileCode[index]); // 解压文件名(压缩包中)
|
||||
// 提取
|
||||
+ //fix 232873
|
||||
+ if(strFileName.indexOf("../") != -1) {
|
||||
+ qInfo() << "skipped ../ path component(s) in " << strFileName;
|
||||
+ strFileName = strFileName.replace("../", "");
|
||||
+ }
|
||||
if (!options.strDestination.isEmpty()) {
|
||||
strFileName = strFileName.remove(0, options.strDestination.size());
|
||||
}
|
||||
--
|
||||
2.39.3
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
Name: deepin-compressor
|
||||
Version: 5.10.11
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: A fast and lightweight application for creating and extracting archives
|
||||
License: GPLv3+
|
||||
URL: https://github.com/linuxdeepin/deepin-devicemanager
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Patch0: backport-CVE-2021-38291.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
@ -36,7 +37,7 @@ Recommends: unrar p7zip-plugins
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
export PATH=%{_qt5_bindir}:$PATH
|
||||
@ -64,6 +65,9 @@ popd
|
||||
%{_datadir}/applications/context-menus/*.conf
|
||||
|
||||
%changelog
|
||||
* Fri Sep 06 2024 pangqing <pangqing@uniontech.com> - 5.10.11-4
|
||||
- CVE-2021-38291
|
||||
|
||||
* Fri Nov 24 2023 haomimi <haomimi@uniontech.com> - 5.10.11-3
|
||||
- Remove unnecessary macro decisions
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user