fix CVE-2025-27111
(cherry picked from commit 60f1bf643e3e170ea07ef2962e4a3566e02092de)
This commit is contained in:
parent
f70e1efe91
commit
0f1c0aa513
24
Fix-CVE-2025-27111.patch
Normal file
24
Fix-CVE-2025-27111.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From 803aa221e8302719715e224f4476e438f2531a53 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Samuel Williams <samuel.williams@oriontransfer.co.nz>
|
||||||
|
Date: Sat, 22 Feb 2025 16:37:33 +1300
|
||||||
|
Subject: [PATCH] Use `#inspect` to prevent log injection.
|
||||||
|
---
|
||||||
|
lib/rack/sendfile.rb | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/rack/sendfile.rb b/lib/rack/sendfile.rb
|
||||||
|
index 3d5e786..0b7b2f2 100644
|
||||||
|
--- a/lib/rack/sendfile.rb
|
||||||
|
+++ b/lib/rack/sendfile.rb
|
||||||
|
@@ -133,7 +133,7 @@ module Rack
|
||||||
|
end
|
||||||
|
when '', nil
|
||||||
|
else
|
||||||
|
- env[RACK_ERRORS].puts "Unknown x-sendfile variation: '#{type}'.\n"
|
||||||
|
+ env[RACK_ERRORS].puts "Unknown x-sendfile variation: #{type.inspect}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
[status, headers, body]
|
||||||
|
--
|
||||||
|
2.46.0
|
||||||
|
|
||||||
@ -4,7 +4,7 @@
|
|||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 2.2.4
|
Version: 2.2.4
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: A modular Ruby webserver interface
|
Summary: A modular Ruby webserver interface
|
||||||
License: MIT and BSD
|
License: MIT and BSD
|
||||||
URL: https://rack.github.io/
|
URL: https://rack.github.io/
|
||||||
@ -18,6 +18,7 @@ Patch5: Fix-CVE-2022-44570.patch
|
|||||||
Patch6: Fix-CVE-2022-44571.patch
|
Patch6: Fix-CVE-2022-44571.patch
|
||||||
Patch7: Fix-CVE-2022-44572.patch
|
Patch7: Fix-CVE-2022-44572.patch
|
||||||
Patch8: Fix-CVE-2025-27610.patch
|
Patch8: Fix-CVE-2025-27610.patch
|
||||||
|
Patch9: Fix-CVE-2025-27111.patch
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 git
|
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 git
|
||||||
BuildRequires: memcached rubygem(memcache-client) rubygem(minitest)
|
BuildRequires: memcached rubygem(memcache-client) rubygem(minitest)
|
||||||
BuildRequires: rubygem(memcache-client)
|
BuildRequires: rubygem(memcache-client)
|
||||||
@ -106,6 +107,12 @@ popd
|
|||||||
%doc %{gem_instdir}/contrib
|
%doc %{gem_instdir}/contrib
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 13 2025 changtao <changtao@kylinos.cn> - 1:2.2.4-10
|
||||||
|
- Type:CVE
|
||||||
|
- CVE:CVE-2025-27111
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix CVE-2025-27111
|
||||||
|
|
||||||
* Wed Mar 12 2025 changtao <changtao@kylinos.cn> - 1:2.2.4-9
|
* Wed Mar 12 2025 changtao <changtao@kylinos.cn> - 1:2.2.4-9
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- CVE:CVE-2025-27610
|
- CVE:CVE-2025-27610
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user