Integer Overflow or Wraparound Affecting ruby2.7 package, versions <2.7.4-1+deb11u1


0.0
critical

Snyk CVSS

    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.81% (82nd percentile)
Expand this section
NVD
9.8 critical
Expand this section
Red Hat
7.5 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-DEBIAN11-RUBY27-1933848
  • published 1 Dec 2021
  • disclosed 6 Feb 2022

How to fix?

Upgrade Debian:11 ruby2.7 to version 2.7.4-1+deb11u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby2.7 package and not the ruby2.7 package as distributed by Debian. See How to fix? for Debian:11 relevant fixed versions and status.

CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.