VDB
Sign up
CRITICAL9.8

GHSA-5cqm-crxm-6qpv

Buffer overrun in CGI.escape_html

Quick fix

GHSA-5cqm-crxm-6qpv — cgi: upgrade to the fixed version with the command below.

bundle update cgi

Details

A buffer overrun vulnerability was discovered in CGI.escape_html. This can lead to a buffer overflow when a user passes a very large string (> 700 MB) to CGI.escape_html on a platform where long type takes 4 bytes, typically, Windows.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/cgi
Introduced in: 0.3.0Fixed in: 0.3.1
Fixbundle update cgi
RubyGems/cgi
Introduced in: 0.2.0Fixed in: 0.2.1
Fixbundle update cgi
RubyGems/cgi
Introduced in: 0Fixed in: 0.1.0.1
Fixbundle update cgi

References