Advisory

GHSA-5cqm-crxm-6qpv

Also known as: CVE-2021-41816

Summary

Buffer overrun in CGI.escape_html

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-12-14 21:36 UTC
Modified
2026-08-13 20:11 UTC

Affected packages and fixes

cgi

RubyGems · All systems

Affected

  • introduced 0.3.0, fixed 0.3.1 (ecosystem)

Fixed versions

0.3.1

Fix

The export has no generic command for this ecosystem.

cgi

RubyGems · All systems

Affected

  • introduced 0.2.0, fixed 0.2.1 (ecosystem)

Fixed versions

0.2.1

Fix

The export has no generic command for this ecosystem.

cgi

RubyGems · All systems

Affected

  • introduced 0, fixed 0.1.0.1 (ecosystem)

Fixed versions

0.1.0.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences