CWE
415
Advisory Published
CVE Published
Updated

CVE-2022-28738: Double Free

First published: Thu Apr 14 2022(Updated: )

A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
redhat/ruby<0:3.0.4-160.el9_0
0:3.0.4-160.el9_0
redhat/rh-ruby30-ruby<0:3.0.4-149.el7
0:3.0.4-149.el7
Ruby-lang Ruby>=3.0.0<3.0.4
redhat/ruby<3.0.4
3.0.4
redhat/ruby<3.1.2
3.1.2
debian/ruby2.7
2.7.4-1+deb11u1

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.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2022-28738?

    CVE-2022-28738 is a double-free vulnerability found in Ruby, specifically in the Regexp compiler.

  • How does CVE-2022-28738 affect Ruby?

    CVE-2022-28738 allows an attacker to write to unexpected memory locations if a victim attempts to create a Regexp from untrusted user input.

  • Which versions of Ruby are affected by CVE-2022-28738?

    Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2 are affected by CVE-2022-28738.

  • What is the severity of CVE-2022-28738?

    CVE-2022-28738 has a severity value of 9.8, which is considered critical.

  • How do I fix CVE-2022-28738?

    To fix CVE-2022-28738, update Ruby to version 3.0.4 or 3.1.2, depending on the affected version.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203