GHSA-5cqm-crxm-6qpv · Severity: critical · Ecosystem: rubygems — Buffer overrun in CGI.escape_html
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.
Conclusion & alert: CVE-2021-41816 is rated High Exploit Risk (90.2/100): CVSS Critical severity, with high exploitation likelihood (EPSS 4.77%, 91th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +4.28% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.48% | 4.77% | +4.28% |
| 2 | 2026-04-16 | 0.44% | 0.48% | +0.04% |
| 3 | 2026-03-07 | — | 0.44% | — |
Full EPSS history (56 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| 7.5 | 2.0 | HIGH |
|
10.0 | 6.4 | [email protected] |
GHSA-5cqm-crxm-6qpv · Severity: critical · Ecosystem: rubygems — Buffer overrun in CGI.escape_html
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2021-41816: 1 source package rows (ruby); 8 state rows across 8 repos (3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 8, open 0. | https://security.alpinelinux.org/vuln/CVE-2021-41816 |
debian
|
not yet assigned | CVE-2021-41816 not yet assigned priority: Debian including 1 source packages (ruby2.7), 1 status rows across 1 suites (bullseye): resolved 1. | https://security-tracker.debian.org/tracker/CVE-2021-41816 |
gentoo
|
normal | CVE-2021-41816: 1 GLSA(s) (202401-27), 1 atom(s) (dev-lang/ruby); latest impact normal. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-41816 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2021-41816 |
ubuntu
|
medium | CVE-2021-41816 medium priority: Ubuntu including 4 source packages (ruby2.3, ruby2.5, ruby2.7, ruby3.0), 17 status rows across 8 suites (bionic, focal, hirsute, impish, jammy, trusty, upstream, xenial): ignored 7, needs-triage 4, released 4, not-affected 2. | https://ubuntu.com/security/CVE-2021-41816 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| ruby-lang | cgi | < 0.3.1 | cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
| ruby-lang | cgi | <= 0.2.0 | cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
| ruby-lang | cgi | <= 0.1.0 | cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
| fedoraproject | fedora | 34 | cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
| fedoraproject | fedora | 35 | cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |