---
title: "CVE-2025-27220"
canonical_url: "https://pkgseek.com/security/CVE-2025-27220"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2025-27220

Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks. Security Fix(es): * CGI: ReDoS in CGI::Util#escapeElement (CVE-2025-27220) * CGI: Denial of Service in CGI::Cookie.parse (CVE-2025-27219) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

CVE-2025-27220 is rated MEDIUM (5.3), with 124 indexed affected package builds across 6 distributions.

- **Severity / Score**: MEDIUM (5.3)
- **Affected builds**: 124
- **Affected distros**: 6
- **Distros with fixed_in**: AlmaLinux, openSUSE, Oracle Linux, Red Hat Enterprise Linux, Rocky Linux

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| AlmaLinux | 9 | rubygem-mysql2 | 0.5.3-12.el9 | 0.5.4-1.module_el9.1.0+8+503f6fbd |
| AlmaLinux | 9 | rubygem-pg | 1.2.3-7.el9 | 1.3.5-1.module_el9.1.0+8+503f6fbd |
| openSUSE | 15.6 | libruby2_5-2_5 | 2.5.9-150000.4.36.1 | 2.5.9-150000.4.41.1 |
| openSUSE | 15.6 | ruby2.5 | 2.5.9-150000.4.36.1 | 2.5.9-150000.4.41.1 |
| openSUSE | 15.6 | ruby2.5-devel | 2.5.9-150000.4.36.1 | 2.5.9-150000.4.41.1 |
| openSUSE | 15.6 | ruby2.5-devel-extra | 2.5.9-150000.4.36.1 | 2.5.9-150000.4.41.1 |
| openSUSE | 15.6 | ruby2.5-doc | 2.5.9-150000.4.36.1 | 2.5.9-150000.4.41.1 |
| openSUSE | 15.6 | ruby2.5-doc-ri | 2.5.9-150000.4.36.1 | 2.5.9-150000.4.41.1 |
| openSUSE | 15.6 | ruby2.5-stdlib | 2.5.9-150000.4.36.1 | 2.5.9-150000.4.41.1 |
| Oracle Linux | 8 | ruby | 2.5.9-114.module+el8.10.0+91146+5b4feace | 3.1.7-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | ruby-bundled-gems | 3.1.5-144.module+el8.10.0+90462+7a5de0fa | 3.1.7-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | ruby-default-gems | 3.1.5-144.module+el8.10.0+90462+7a5de0fa | 3.1.7-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | ruby-devel | 2.5.9-114.module+el8.10.0+91146+5b4feace | 3.1.7-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | ruby-doc | 2.5.9-114.module+el8.10.0+91146+5b4feace | 3.1.7-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-abrt | 0.3.0-4.module+el8.10.0+90367+ae9e8511 | 0.4.0-1.module+el8.7.0+20780+b11ff321 |
| Oracle Linux | 8 | rubygem-abrt-doc | 0.3.0-4.module+el8.10.0+90367+ae9e8511 | 0.4.0-1.module+el8.7.0+20780+b11ff321 |
| Oracle Linux | 8 | rubygem-bigdecimal | 1.3.4-114.module+el8.10.0+91146+5b4feace | 3.1.1-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-bundler | 1.16.1-5.module+el8.10.0+90940+f98fa8f0 | 2.3.27-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-io-console | 0.4.6-114.module+el8.10.0+91146+5b4feace | 0.5.11-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-irb | 1.4.1-144.module+el8.10.0+90462+7a5de0fa | 1.4.1-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-json | 2.1.0-114.module+el8.10.0+91146+5b4feace | 2.6.1-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-minitest | 5.10.3-114.module+el8.10.0+91146+5b4feace | 5.15.0-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-mysql2 | 0.4.10-4.module+el8.9.0+90042+a65659a6 | 0.5.3-2.module+el8.7.0+20780+b11ff321 |
| Oracle Linux | 8 | rubygem-mysql2-doc | 0.4.10-4.module+el8.9.0+90042+a65659a6 | 0.5.3-2.module+el8.7.0+20780+b11ff321 |
| Oracle Linux | 8 | rubygem-pg | 1.2.3-1.module+el8.10.0+90343+d5e92a1d | 1.3.2-1.module+el8.7.0+20780+b11ff321 |
| Oracle Linux | 8 | rubygem-pg-doc | 1.2.3-1.module+el8.10.0+90343+d5e92a1d | 1.3.2-1.module+el8.7.0+20780+b11ff321 |
| Oracle Linux | 8 | rubygem-power_assert | 1.1.1-114.module+el8.10.0+91146+5b4feace | 2.0.1-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-psych | 3.0.2-114.module+el8.10.0+91146+5b4feace | 4.0.4-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-rake | 12.3.3-114.module+el8.10.0+91146+5b4feace | 13.0.6-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-rbs | 2.7.0-144.module+el8.10.0+90462+7a5de0fa | 2.7.0-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-rdoc | 6.0.1.1-114.module+el8.10.0+91146+5b4feace | 6.4.1.1-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-rexml | 3.3.9-4.module+el8.10.0+90625+b4030d02 | 3.3.9-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-rss | 0.3.1-10.module+el8.10.0+91147+bdeee2c4 | 0.3.1-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygems | 2.7.6.3-114.module+el8.10.0+91146+5b4feace | 3.3.27-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygems-devel | 2.7.6.3-114.module+el8.10.0+91146+5b4feace | 3.3.27-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-test-unit | 3.2.7-114.module+el8.10.0+91146+5b4feace | 3.5.3-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | rubygem-typeprof | 0.21.3-144.module+el8.10.0+90462+7a5de0fa | 0.21.3-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 8 | ruby-libs | 2.5.9-114.module+el8.10.0+91146+5b4feace | 3.1.7-145.module+el8.10.0+90550+7d8a4a30 |
| Oracle Linux | 9 | ruby | 3.0.7-171.el9_9 | 3.1.7-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | ruby-bundled-gems | 3.1.5-145.module+el9.5.0+90461+45a3a727 | 3.1.7-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | ruby-default-gems | 3.0.7-171.el9_9 | 3.1.7-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | ruby-devel | 3.0.7-171.el9_9 | 3.1.7-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | ruby-doc | 3.1.5-145.module+el9.5.0+90461+45a3a727 | 3.1.7-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-bigdecimal | 3.0.0-171.el9_9 | 3.1.1-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-bundler | 2.2.33-171.el9_9 | 2.3.27-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-io-console | 0.5.7-171.el9_9 | 0.5.7-165.el9_5 |
| Oracle Linux | 9 | rubygem-irb | 1.3.5-171.el9_9 | 1.4.1-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-json | 2.5.1-171.el9_9 | 2.6.1-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-minitest | 5.14.2-171.el9_9 | 5.15.0-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-mysql2 | 0.5.3-12.el9 | 0.5.4-1.module+el9.1.0+20815+286161bd |
| Oracle Linux | 9 | rubygem-pg | 1.2.3-7.el9 | 1.3.5-1.module+el9.1.0+20815+286161bd |
| Oracle Linux | 9 | rubygem-power_assert | 1.2.1-171.el9_9 | 2.0.1-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-psych | 3.3.2-171.el9_9 | 4.0.4-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-rake | 13.0.3-171.el9_9 | 13.0.6-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-rbs | 1.4.0-163.el9_5 | 2.7.0-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-rdoc | 6.3.4.1-171.el9_9 | 6.4.1.1-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-rexml | 3.2.5-171.el9_9 | 3.3.9-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-rss | 0.2.9-171.el9_9 | 0.3.1-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygems | 3.2.33-171.el9_9 | 3.3.27-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygems-devel | 3.2.33-171.el9_9 | 3.3.27-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-test-unit | 3.3.7-171.el9_9 | 3.5.3-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | rubygem-typeprof | 0.15.2-171.el9_9 | 0.21.3-146.module+el9.5.0+90564+273a1edd |
| Oracle Linux | 9 | ruby-libs | 3.0.7-171.el9_9 | 3.1.7-146.module+el9.5.0+90564+273a1edd |
| Red Hat Enterprise Linux | 9.8 | ruby | 3.0.7-167.el9_8 | 3.1.7-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | ruby-bundled-gems | 3.1.5-145.module+el9.5.0+22579+d0aa0a16 | 3.1.7-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | ruby-default-gems | 3.0.7-167.el9_8 | 3.1.7-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | ruby-devel | 3.0.7-167.el9_8 | 3.1.7-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | ruby-doc | 3.1.5-145.module+el9.5.0+22579+d0aa0a16 | 3.1.7-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-bigdecimal | 3.0.0-167.el9_8 | 3.1.1-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-bundler | 2.2.33-167.el9_8 | 2.3.27-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-io-console | 0.5.7-167.el9_8 | 0.5.7-165.el9_5 |
| Red Hat Enterprise Linux | 9.8 | rubygem-irb | 1.3.5-167.el9_8 | 1.4.1-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-json | 2.5.1-167.el9_8 | 2.6.1-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-minitest | 5.14.2-167.el9_8 | 5.15.0-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-mysql2 | 0.5.3-12.el9 | 0.5.4-1.module+el9.1.0+15737+76195479 |
| Red Hat Enterprise Linux | 9.8 | rubygem-pg | 1.2.3-7.el9 | 1.3.5-1.module+el9.1.0+15737+76195479 |
| Red Hat Enterprise Linux | 9.8 | rubygem-power_assert | 1.2.1-167.el9_8 | 2.0.1-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-psych | 3.3.2-167.el9_8 | 4.0.4-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-rake | 13.0.3-167.el9_8 | 13.0.6-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-rbs | 1.4.0-163.el9_5 | 2.7.0-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-rdoc | 6.3.4.1-167.el9_8 | 6.4.1.1-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-rexml | 3.2.5-167.el9_8 | 3.3.9-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-rss | 0.3.1-7.module+el9.8.0+24406+8975e57f | 0.3.1-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygems | 3.2.33-167.el9_8 | 3.3.27-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygems-devel | 3.2.33-167.el9_8 | 3.3.27-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-test-unit | 3.3.7-167.el9_8 | 3.5.3-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | rubygem-typeprof | 0.15.2-167.el9_8 | 0.21.3-146.module+el9.5.0+23003+a4c328ce |
| Red Hat Enterprise Linux | 9.8 | ruby-libs | 3.0.7-167.el9_8 | 3.1.7-146.module+el9.5.0+23003+a4c328ce |
| Rocky Linux | 9 | ruby | 3.0.7-171.el9_9 | 0:3.1.7-146.module+el9.5.0+31847+8b291b93 |
| Rocky Linux | 9 | ruby-default-gems | 3.0.7-171.el9_9 | 0:3.1.7-146.module+el9.5.0+31847+8b291b93 |
| Rocky Linux | 9 | ruby-devel | 3.0.7-171.el9_9 | 0:3.1.7-146.module+el9.5.0+31847+8b291b93 |
| Rocky Linux | 9 | rubygem-bigdecimal | 3.1.5-11.module+el9.9.0+40504+96efb9a9 | 0:3.1.7-146.module+el9.5.0+31847+8b291b93 |
| Rocky Linux | 9 | rubygem-bundler | 2.5.22-11.module+el9.9.0+40504+96efb9a9 | 2.3.27-146.module+el9.6.0+31865+0893c253 |
| Rocky Linux | 9 | rubygem-io-console | 0.7.1-11.module+el9.9.0+40504+96efb9a9 | 0.5.11-146.module+el9.6.0+31865+0893c253 |
| Rocky Linux | 9 | rubygem-irb | 1.13.1-11.module+el9.9.0+40504+96efb9a9 | 1.4.1-146.module+el9.6.0+31865+0893c253 |
| Rocky Linux | 9 | rubygem-json | 2.7.2-11.module+el9.9.0+40504+96efb9a9 | 2.6.1-146.module+el9.6.0+31865+0893c253 |
| Rocky Linux | 9 | rubygem-minitest | 5.14.2-171.el9_9 | 5.15.0-146.module+el9.6.0+31865+0893c253 |
| Rocky Linux | 9 | rubygem-mysql2 | 0.5.3-12.el9 | 0:0.5.4-1.module+el9.5.0+31847+8b291b93 |
| Rocky Linux | 9 | rubygem-pg | 1.2.3-7.el9 | 0:1.3.5-1.module+el9.5.0+31847+8b291b93 |
| Rocky Linux | 9 | rubygem-power_assert | 2.0.3-11.module+el9.9.0+40504+96efb9a9 | 2.0.1-146.module+el9.6.0+31865+0893c253 |

_Showing 100 of 124 total affected builds._
