7.5
CWE
1333
EPSS
0.046%
Advisory Published
Advisory Published
Updated

CVE-2025-27220

First published: Mon Mar 03 2025(Updated: )

In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
rubygems/cgi>=0.4.0<0.4.2
0.4.2
rubygems/cgi=0.3.6
0.3.7
rubygems/cgi<0.3.5.1
0.3.5.1
All of
Any of
Ruby<0.3.5.1
Ruby>=0.4.0<0.4.2
Ruby=0.3.6
Any of
Ruby=3.1.0
Ruby=3.2.0
All of
Any of
<0.3.5.1
>=0.4.0<0.4.2
=0.3.6
Any of
=3.1.0
=3.2.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the risk associated with CVE-2025-27220?

    CVE-2025-27220 is associated with a Regular expression Denial of Service (ReDoS) vulnerability in the cgi gem.

  • How do I fix CVE-2025-27220?

    To resolve CVE-2025-27220, upgrade the cgi gem to version 0.4.2 or later.

  • Which versions of the cgi gem are affected by CVE-2025-27220?

    CVE-2025-27220 affects cgi gem versions below 0.4.2 and specifically versions 0.4.0 to 0.4.1, and 0.3.6.

  • Why is CVE-2025-27220 considered a Denial of Service vulnerability?

    CVE-2025-27220 is classified as a Denial of Service vulnerability because an attacker can exploit the regex patterns to cause excessive resource consumption.

  • Where can I find more information about CVE-2025-27220?

    More details about CVE-2025-27220 can typically be found in security advisories from the project maintainers or trusted vulnerability databases.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203