CVE & CISA-KEV Catalog

CVE-2021-41816

CRITICALEPSS 91th pctl
9.8
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
ruby2.7Debian
Fixed in:2.7.4-1+deb11u1CVE-2021-41816
ruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm2USN-5235-1
ruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.11USN-5235-1
ruby2.7Ubuntu
Fixed in:2.7.0-5ubuntu1.6USN-5235-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

4.77%probability of exploitation in 30 days
91stpercentile

High risk: more likely to be exploited than 91% of all known CVEs.

References

Related Vulnerabilities

Other CWE-190 (Integer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-16040Medium6.5100%-Fix
CVE-2019-11477High7.599%-Fix
CVE-2023-44443High7.894%-Fix
CVE-2014-0569High9.390%--
CVE-2017-3599High7.590%-Fix
CVE-2023-21716Critical9.882%-Fix
Embed a live status badge for CVE-2021-41816
CVE-2021-41816 severity badge

Markdown

[![CVE-2021-41816](https://tridentstack.com/cve/badge/CVE-2021-41816.svg)](https://tridentstack.com/cve/CVE-2021-41816)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-41816"><img src="https://tridentstack.com/cve/badge/CVE-2021-41816.svg" alt="CVE-2021-41816"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.