9.8

CVE-2021-41816: fedoraproject fedora Integer Overflow or Wraparound

Modified
AliasesALPINE-CVE-2021-41816UBUNTU-CVE-2021-41816DEBIAN-CVE-2021-41816
Published 06-02-2022Last modified 04-08-2024

Vulnerability summary

CVE-2021-41816 is a critical (CVSS 9.8) Integer Overflow or Wraparound vulnerability in fedoraproject fedora. EPSS estimates a 4.90% chance of exploitation in the next 30 days, higher than 92.1% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
4.90%
0%100%
Low · +0.13 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 12 · Related 10

Timeline

  1. 06-02-2022
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

4.90%

Chance of exploitation in the next 30 days

Percentile

92%

Versus all other CVEs

30-day change

Increase +0.13 pp

From 4.77% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (ruby-lang.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu2 products
  • ruby2.7< 2.7.0-5ubuntu1.6
  • ruby3.0< 3.0.2-7ubuntu2
Alpine1 product
  • ruby< 2.7.5-r0 | < 3.0.3-r0
Debian1 product
  • ruby2.7< 2.7.4-1+deb11u1
Fedoraproject1 product
Ruby-lang1 product
  • cgi< 0.3.1 | ≤ 0.2.0 | ≤ 0.1.0
RubyGems1 product
  • cgi≥ 0.3.0, < 0.3.1 | ≥ 0.2.0, < 0.2.1 | < 0.1.0.1

6 vendors · 7 products

References

25 links
Show all 25 references