CVE catalog

CVE-2021-41816

ALPINE-CVE-2021-41816

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
4.90% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby2.7112.7.4-1vulnerable
Debianruby2.7112.7.4-1+deb11u1fixed
Alpineruby3.122.7.5-r0fixed
Alpineruby3.132.7.5-r0fixed
Alpineruby3.142.7.5-r0fixed
Alpineruby3.153.0.3-r0fixed
Alpineruby3.163.0.3-r0fixed
Alpineruby3.173.0.3-r0fixed
Alpineruby3.183.0.3-r0fixed
Alpineruby3.193.0.3-r0fixed
Alpineruby3.203.0.3-r0fixed
Alpineruby3.213.0.3-r0fixed
Alpineruby3.223.0.3-r0fixed
Alpineruby3.233.0.3-r0fixed
Alpineruby3.243.0.3-r0fixed
Ubunturuby2.3pro2.3.0-1vulnerable
Ubunturuby2.3pro2.3.0-2vulnerable
Ubunturuby2.3pro2.3.0-4ubuntu2vulnerable
Ubunturuby2.3pro2.3.0-4ubuntu3vulnerable
Ubunturuby2.3pro2.3.0-5ubuntu1vulnerable
Ubunturuby2.3pro2.3.1-2~16.04vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.2vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.4vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.5vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.6vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.7vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.9vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.10vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.11vulnerable
Ubunturuby2.3pro2.3.1-2~16.04.12vulnerable
Ubunturuby2.3pro2.3.1-2~ubuntu16.04.13vulnerable
Ubunturuby2.3pro2.3.1-2~ubuntu16.04.14vulnerable
Ubunturuby2.3pro2.3.1-2~ubuntu16.04.15vulnerable
Ubunturuby2.3pro2.3.1-2~ubuntu16.04.16vulnerable
Ubunturuby2.3pro2.3.1-2~ubuntu16.04.16+esm1vulnerable
Ubunturuby2.3pro2.3.1-2~ubuntu16.04.16+esm2fixed
Ubunturuby2.518.042.5.0~preview1-1ubuntu2vulnerable
Ubunturuby2.518.042.5.0-4ubuntu1vulnerable
Ubunturuby2.518.042.5.0-4ubuntu4vulnerable
Ubunturuby2.518.042.5.0-5ubuntu1vulnerable
Ubunturuby2.518.042.5.0-6ubuntu1vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.1vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.2vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.4vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.5vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.6vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.7vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.8vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.9vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.10vulnerable
Ubunturuby2.518.042.5.1-1ubuntu1.11fixed
Ubunturuby2.720.042.7.0-1vulnerable
Ubunturuby2.720.042.7.0-2vulnerable
Ubunturuby2.720.042.7.0-3vulnerable
Ubunturuby2.720.042.7.0-4vulnerable
Ubunturuby2.720.042.7.0-4ubuntu1vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.1vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.2vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.3vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.4vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.5vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.6fixed
Ubunturuby2.720.042.7.0-1vulnerable
Ubunturuby2.720.042.7.0-2vulnerable
Ubunturuby2.720.042.7.0-3vulnerable
Ubunturuby2.720.042.7.0-4vulnerable
Ubunturuby2.720.042.7.0-4ubuntu1vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.1vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.2vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.3vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.4vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.5vulnerable
Ubunturuby2.720.042.7.0-5ubuntu1.6fixed
Ubunturuby3.022.043.0.2-5ubuntu1vulnerable
Ubunturuby3.022.043.0.2-7vulnerable
Ubunturuby3.022.043.0.2-7ubuntu2fixed
Debianruby2.7112.7.4-1vulnerable
Debianruby2.7112.7.4-1+deb11u1fixed
Opensuseruby3.0tumbleweed3.0.3-1.1fixed
Opensuseruby2.7tumbleweed2.7.5-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby2.7deb112.7.4-1+deb11u1Not reportedDEBIAN-CVE-2021-41816Not reported
Alpinerubyapk3.122.7.5-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.132.7.5-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.142.7.5-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.153.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.163.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.173.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.183.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.193.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.203.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.213.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.223.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.233.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Alpinerubyapk3.243.0.3-r0Not reportedALPINE-CVE-2021-41816Not reported
Ubunturuby2.3debpro2.3.1-2~ubuntu16.04.16+esm2Not reportedUSN-5235-1Not reported
Ubunturuby2.5deb18.042.5.1-1ubuntu1.11Not reportedUSN-5235-1Not reported
Ubunturuby2.7deb20.042.7.0-5ubuntu1.6Not reportedUSN-5235-1Not reported
Ubunturuby2.7deb20.042.7.0-5ubuntu1.6Not reportedUBUNTU-CVE-2021-41816Not reported
Ubunturuby3.0deb22.043.0.2-7ubuntu2Not reportedUBUNTU-CVE-2021-41816Not reported
Debianruby2.7deb112.7.4-1+deb11u1Not reportedDSA-5067-1Not reported
Opensuseruby3.0rpmtumbleweed3.0.3-1.1Not reportedOPENSUSE-SU-2024:11658-1Not reported
Opensuseruby2.7rpmtumbleweed2.7.5-1.1Not reportedOPENSUSE-SU-2024:11657-1Not reported

OpenFactory catalog packages

No matching packages in this catalog.

Observed:

References