
CVE catalog
CVE-2025-27220
Ruby vulnerabilities
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.76% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm-security | ruby3.1 | 3.1.2-7+deb12u1 | Affected | [CVE-2025-27220] |
| Debianbookworm | ruby3.1 | Not reported | AffectedDistribution reports no fix | [CVE-2025-27220] |
| Debianbookworm | ruby3.1 | 3.1.2-7+deb12u1 | Affected | [CVE-2025-27220] |
| UnknownRelease not reported | libruby3.2 | 3.2.3-1ubuntu0.24.04.5 | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | ruby3.1 | Not reported | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | ruby3.2 | 3.2.3-1ubuntu0.24.04.5 | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | ruby3.2-dev | 3.2.3-1ubuntu0.24.04.5 | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | ruby3.2-doc | 3.2.3-1ubuntu0.24.04.5 | UnknownSource applicability is not established | Provider not reported |
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| UnknownRelease not reported | libruby3.2 | 3.2.3-1ubuntu0.24.04.5 | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | ruby3.1 | Not reported | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | ruby3.2 | 3.2.3-1ubuntu0.24.04.5 | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | ruby3.2-dev | 3.2.3-1ubuntu0.24.04.5 | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | ruby3.2-doc | 3.2.3-1ubuntu0.24.04.5 | UnknownSource applicability is not established | Provider not reported |
| Debianbookworm | ruby3.1 | Not reported | AffectedDistribution reports no fix | [CVE-2025-27220] |
| Debianbookworm | ruby3.1 | 3.1.2-7+deb12u1 | Affected | [CVE-2025-27220] |
| Debianbookworm-security | ruby3.1 | 3.1.2-7+deb12u1 | Affected | [CVE-2025-27220] |
Original provider fields
{
"package_releases": [
{
"name": "ruby3.1",
"status": "vulnerable",
"release": "bookworm",
"version": "3.1.2-7+deb12u1"
},
{
"name": "ruby3.1",
"status": "vulnerable",
"release": "bookworm-security",
"version": "3.1.2-7+deb12u1"
}
],
"fixed_versions": [
{
"bug": 1103793,
"name": "ruby3.1",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "ruby3.1",
"fixed_version": "not yet fixed",
"applicability_unknown": true
},
{
"name": "ruby3.2",
"fixed_version": "3.2.3-1ubuntu0.24.04.5",
"applicability_unknown": true
},
{
"name": "libruby3.2",
"fixed_version": "3.2.3-1ubuntu0.24.04.5",
"applicability_unknown": true
},
{
"name": "ruby3.2-dev",
"fixed_version": "3.2.3-1ubuntu0.24.04.5",
"applicability_unknown": true
},
{
"name": "ruby3.2-doc",
"fixed_version": "3.2.3-1ubuntu0.24.04.5",
"applicability_unknown": true
}
]
}Publisher notes
[bookworm] ruby3.1: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libruby3.1]Unknown
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1]Unknown
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1-dev]Unknown
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1-doc]Unknown
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· all · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
[Debian 13 (Trixie)]
- [libruby3.3]Unknown
Source package: [ruby3.3]
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.7-2usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.7-2usn · ruby3.3 · debian · 13
- [ruby3.3]Unknown
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.7-2usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.7-2usn · ruby3.3 · debian · 13
- [ruby3.3-dev]Unknown
Source package: [ruby3.3]
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.7-2usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.7-2usn · ruby3.3 · debian · 13
- [ruby3.3-doc]Unknown
Source package: [ruby3.3]
Details (2)
3.3.8-2· all · trixieFixed · Fixed:
3.3.7-2usn · ruby3.3 · debian · 13
3.3.8-2· all · trixieFixed · Fixed:
3.3.7-2usn · ruby3.3 · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2025_4063.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-27220]
- [https://security-tracker.debian.org/tracker/CVE-2025-27220]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-27220.json]
- [https://ubuntu.com/security/notices/USN-7418-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-0438.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]