OESA-2025-1264 (CVE-2025-27219)
Vulnerability from osv_openeuler – Published: 2025-03-14 11:08 – Updated: 2026-08-06 11:08 – Source websiteRuby is a fast and easy interpreted scripting language for object-oriented programming. It has many functions for processing text Files and perform system management tasks (such as Perl).
Security Fix(es):
In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerability. The method does not impose any limit on the length of the raw cookie value it processes. This oversight can lead to excessive resource consumption when parsing extremely large cookies.(CVE-2025-27219)
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.(CVE-2025-27220)
In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.(CVE-2025-27221)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"ruby-3.0.3-142.oe2203sp3.aarch64.rpm",
"ruby-debuginfo-3.0.3-142.oe2203sp3.aarch64.rpm",
"ruby-debugsource-3.0.3-142.oe2203sp3.aarch64.rpm",
"ruby-devel-3.0.3-142.oe2203sp3.aarch64.rpm",
"rubygem-bigdecimal-3.0.0-142.oe2203sp3.aarch64.rpm",
"rubygem-io-console-0.5.7-142.oe2203sp3.aarch64.rpm",
"rubygem-json-2.5.1-142.oe2203sp3.aarch64.rpm",
"rubygem-openssl-2.2.1-142.oe2203sp3.aarch64.rpm",
"rubygem-psych-3.3.2-142.oe2203sp3.aarch64.rpm"
],
"noarch": [
"ruby-help-3.0.3-142.oe2203sp3.noarch.rpm",
"ruby-irb-3.0.3-142.oe2203sp3.noarch.rpm",
"rubygem-bundler-2.2.32-142.oe2203sp3.noarch.rpm",
"rubygem-did_you_mean-1.5.0-142.oe2203sp3.noarch.rpm",
"rubygem-minitest-5.14.2-142.oe2203sp3.noarch.rpm",
"rubygem-rake-13.0.3-142.oe2203sp3.noarch.rpm",
"rubygem-rbs-1.4.0-142.oe2203sp3.noarch.rpm",
"rubygem-rdoc-6.3.3-142.oe2203sp3.noarch.rpm",
"rubygem-rexml-3.2.5-142.oe2203sp3.noarch.rpm",
"rubygem-rss-0.2.9-142.oe2203sp3.noarch.rpm",
"rubygem-test-unit-3.3.7-142.oe2203sp3.noarch.rpm",
"rubygem-typeprof-0.15.2-142.oe2203sp3.noarch.rpm",
"rubygems-3.2.32-142.oe2203sp3.noarch.rpm",
"rubygems-devel-3.2.32-142.oe2203sp3.noarch.rpm"
],
"src": [
"ruby-3.0.3-142.oe2203sp3.src.rpm"
],
"x86_64": [
"ruby-3.0.3-142.oe2203sp3.x86_64.rpm",
"ruby-debuginfo-3.0.3-142.oe2203sp3.x86_64.rpm",
"ruby-debugsource-3.0.3-142.oe2203sp3.x86_64.rpm",
"ruby-devel-3.0.3-142.oe2203sp3.x86_64.rpm",
"rubygem-bigdecimal-3.0.0-142.oe2203sp3.x86_64.rpm",
"rubygem-io-console-0.5.7-142.oe2203sp3.x86_64.rpm",
"rubygem-json-2.5.1-142.oe2203sp3.x86_64.rpm",
"rubygem-openssl-2.2.1-142.oe2203sp3.x86_64.rpm",
"rubygem-psych-3.3.2-142.oe2203sp3.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:22.03-LTS-SP3",
"name": "ruby",
"purl": "pkg:rpm/openEuler/ruby\u0026distro=openEuler-22.03-LTS-SP3"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.3-142.oe2203sp3"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "High"
},
"details": "Ruby is a fast and easy interpreted scripting language for object-oriented programming. It has many functions for processing text Files and perform system management tasks (such as Perl).\r\n\r\nSecurity Fix(es):\n\nIn the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerability. The method does not impose any limit on the length of the raw cookie value it processes. This oversight can lead to excessive resource consumption when parsing extremely large cookies.(CVE-2025-27219)\n\nIn the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.(CVE-2025-27220)\n\nIn the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.(CVE-2025-27221)",
"id": "OESA-2025-1264",
"modified": "2026-08-06T11:08:21Z",
"published": "2025-03-14T11:08:21Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1264"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27219"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27220"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27221"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "ruby security update",
"upstream": [
"CVE-2025-27219",
"CVE-2025-27220",
"CVE-2025-27221"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.