VDB
KO
CRITICAL 9.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.0 Fixed in: 0.3.1
Fix bundle update cgi
RubyGems / cgi
Introduced in: 0.2.0 Fixed in: 0.2.1
Fix bundle update cgi
RubyGems / cgi
Introduced in: 0 Fixed in: 0.1.0.1
Fix bundle update cgi

References