CVE-2025-27220
4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Summary
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| ruby-lang | CGI | 0 < 0.3.5.1 | affected |
| ruby-lang | CGI | 0.3.6 < 0.3.7 | affected |
| ruby-lang | CGI | 0.4.0 < 0.4.2 | affected |
Weaknesses
- CWE-1333: CWE-1333 Inefficient Regular Expression Complexity
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
CVE Program Container
Additional References
References
- https://hackerone.com/reports/2890322
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.