4 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.
https://nvd.nist.gov/vuln/detail/CVE-2025-27220
Categories
CWE-1333 : Inefficient Regular Expression Complexity
Some regular expression engines have a feature called "backtracking". If the token cannot match, the engine "backtracks" to a position that may result in a different token that can match.
References
cve@mitre.org
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-272... Third Party Advisory |
https://hackerone.com/reports/2890322 Permissions Required |
CPE
cpe | start | end |
---|---|---|
Configuration 1 | ||
AND | ||
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* | < 0.3.5.1 | |
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* | >= 0.4.0 | < 0.4.2 |
cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:* | ||
Running on/with | ||
cpe:2.3:a:ruby-lang:ruby:3.1.0:*:*:*:*:*:*:* | ||
cpe:2.3:a:ruby-lang:ruby:3.2.0:*:*:*:*:*:*:* |
REMEDIATION
EXPLOITS
Exploit-db.com
id | description | date | |
---|---|---|---|
No known exploits |
POC Github
Url |
---|
No known exploits |
Other Nist (github, ...)
Url |
---|
No known exploits |
CAPEC
Common Attack Pattern Enumerations and Classifications
id | description | severity |
---|---|---|
492 | Regular Expression Exponential Blowup |
Cybersecurity needs ?
Strengthen software security from the outset with our DevSecOps expertise
Integrate security right from the start of the software development cycle for more robust applications and greater customer confidence.
Our team of DevSecOps experts can help you secure your APIs, data pipelines, CI/CD chains, Docker containers and Kubernetes deployments.