CVE-2025-27220
Ruby · CVE-2025-27220
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.760% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4 · published by mitreCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Assessment source · checked 2026-11-19T12:57:29.283Z
CVSS 3.1 · 4 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Assessment source · checked 2026-11-19T16:51:26.185Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:29.283Z | CVE Program |
| epss | verified | 2026-11-19T16:04:40.588Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:51:47.512Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:57:29.283Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:29.283Z | CVE Program |
Affected versions and configuration
ruby-lang CGI; default status: unaffected: 0 to < 0.3.5.1 [affected; scheme: custom]; 0.3.6 to < 0.3.7 [affected; scheme: custom]; 0.4.0 to < 0.4.2 [affected; scheme: custom]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "ruby3.3",
"debian": "https://tracker.debian.org/pkg/ruby3.3",
"source": "https://ubuntu.com/security/cve?package=ruby3.3",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=ruby3.3",
"statuses": [
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.3.7-1ubuntu2",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.3.7-1ubuntu2",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.3.4-2ubuntu5.2",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.3.7-1ubuntu2",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.3.7-1ubuntu2",
"release_codename": "questing"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "ruby3.2",
"debian": "https://tracker.debian.org/pkg/ruby3.2",
"source": "https://ubuntu.com/security/cve?package=ruby3.2",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=ruby3.2",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.2.3-1ubuntu0.24.04.5",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "ruby-lang",
"product": "CGI",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "0.3.5.1",
"versionType": "custom"
},
{
"status": "affected",
"version": "0.3.6",
"lessThan": "0.3.7",
"versionType": "custom"
},
{
"status": "affected",
"version": "0.4.0",
"lessThan": "0.4.2",
"versionType": "custom"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-27220",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-03-04T16:39:36.614961Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-03-04T16:40:22.900Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T21:13:25.250Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / stonking | ruby3.3 | security | 3.3.7-1ubuntu2 | Official record |
| distribution-package | Ubuntu / resolute | ruby3.3 | security | 3.3.7-1ubuntu2 | Official record |
| distribution-package | Ubuntu / oracular | ruby3.3 | security | 3.3.4-2ubuntu5.2 | Official record |
| distribution-package | Ubuntu / plucky | ruby3.3 | security | 3.3.7-1ubuntu2 | Official record |
| distribution-package | Ubuntu / questing | ruby3.3 | security | 3.3.7-1ubuntu2 | Official record |
| distribution-package | Ubuntu / noble | ruby3.2 | security | 3.2.3-1ubuntu0.24.04.5 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:57:29.283ZArchived source JSON
Source publication: 2025-03-03T00:00:00.000Z
Source modification: 2025-11-03T21:13:25.250ZDocument fingerprint
6a16a09e5b7063844b8ece94f7e0b0aee1102e1462b04a0ca29952ed3d7e5c90 - Ubuntu SecurityConsulted: 2026-11-19T16:51:26.185ZArchived source JSON
Source publication: 2025-03-04T00:00:00.000Z
Source modification: 2025-07-11T08:02:22.877ZDocument fingerprint
5f619f0c06bca50b8b990bdc48cd4e0b42936494df41050472182cc1ed01d639 - Ubuntu SecurityConsulted: 2026-11-19T16:51:47.512ZArchived source JSON
Source publication: 2025-03-04T00:00:00.000Z
Source modification: 2025-07-11T08:02:22.877ZDocument fingerprint
eac795ef1b8dfa5d307514247242f7c3e3ccac76ebc0d38c7abede72dd6a6a3b - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:40.588ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
f828727fd2419e9ee62887077d52e76b99e46a1d7a1ce89e08e7e861a70ba109
Official status history
- UNKNOWN → PUBLISHED · · evidence