diff --git a/Fix-CVE-2025-27111.patch b/Fix-CVE-2025-27111.patch new file mode 100644 index 0000000000000000000000000000000000000000..06a91f09592cef03d28e6b500b7ccc148cfc52ef --- /dev/null +++ b/Fix-CVE-2025-27111.patch @@ -0,0 +1,24 @@ +From 803aa221e8302719715e224f4476e438f2531a53 Mon Sep 17 00:00:00 2001 +From: Samuel Williams +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 + diff --git a/rubygem-rack.spec b/rubygem-rack.spec index 5cb3fa8edadd017eaf909a82fd31f5f0b7ffa2e4..55a718577aa07591211420684ab7f584d7bc7884 100644 --- a/rubygem-rack.spec +++ b/rubygem-rack.spec @@ -4,7 +4,7 @@ Name: rubygem-%{gem_name} Version: 2.2.4 Epoch: 1 -Release: 9 +Release: 10 Summary: A modular Ruby webserver interface License: MIT and BSD URL: https://rack.github.io/ @@ -18,6 +18,7 @@ Patch5: Fix-CVE-2022-44570.patch Patch6: Fix-CVE-2022-44571.patch Patch7: Fix-CVE-2022-44572.patch Patch8: Fix-CVE-2025-27610.patch +Patch9: Fix-CVE-2025-27111.patch BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 git BuildRequires: memcached rubygem(memcache-client) rubygem(minitest) BuildRequires: rubygem(memcache-client) @@ -106,6 +107,12 @@ popd %doc %{gem_instdir}/contrib %changelog +* Thu Mar 13 2025 changtao - 1:2.2.4-10 +- Type:CVE +- CVE:CVE-2025-27111 +- SUG:NA +- DESC:fix CVE-2025-27111 + * Wed Mar 12 2025 changtao - 1:2.2.4-9 - Type:CVE - CVE:CVE-2025-27610