Advisory

DEBIAN-CVE-2021-41816

Also known as: CVE-2021-41816

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2022-02-06 21:15 UTC
Modified
2026-08-27 23:04 UTC

Affected packages and fixes

ruby2.7

Debian packages (deb) · Debian 11

Affected

  • introduced 0, fixed 2.7.4-1+deb11u1 (ecosystem)

Fixed versions

2.7.4-1+deb11u1

Fix

  • Fixed version 2.7.4-1+deb11u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

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: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences