CVE-2021-41816
Last modified
CVE-2021-41816 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 4.77% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ruby-Lang | Cgi | < 0.3.1 |
| Ruby-Lang | Cgi | <= 0.2.0 |
| Ruby-Lang | Cgi | <= 0.1.0 |
| Fedoraproject | Fedora | 34 |
| Fedoraproject | Fedora | 35 |
References
- https://hackerone.com/reports/1328463Permissions Required, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2021-41816Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220303-0006/Third Party Advisory
- https://www.ruby-lang.org/en/news/2021/11/24/buffer-overrun-in-cgi-escape_html-cve-2021-41816/Exploit, Vendor Advisory
- https://hackerone.com/reports/1328463Permissions Required, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2021-41816Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220303-0006/Third Party Advisory
- https://www.ruby-lang.org/en/news/2021/11/24/buffer-overrun-in-cgi-escape_html-cve-2021-41816/Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-41816?
How severe is CVE-2021-41816?
How do I fix CVE-2021-41816?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-41805HashiCorp Consul Enterprise before 1.8.17, 1.9.x before 1.9.…8.8
- CVE-2021-41807Lack of rate limiting in M-Files Server and M-Files Web prod…9.8
- CVE-2021-41808In M-Files Server product with versions before 21.11.10775.0…2.3
- CVE-2021-41809SSRF vulnerability in M-Files Server products with versions …4.3
- CVE-2021-4181Crash in the Sysdig Event dissector in Wireshark 3.6.0 and 3…7.5
- CVE-2021-41810Script injection in M-Files Admin versions before 22.2.11051…4.8
- CVE-2021-41817Date.parse in the date gem through 3.2.0 for Ruby allows ReD…7.5
- CVE-2021-41819CGI::Cookie.parse in Ruby through 2.6.8 mishandles security …7.5
- CVE-2021-4182Crash in the RFC 7468 dissector in Wireshark 3.6.0 and 3.4.0…7.5
- CVE-2021-41821Wazuh Manager in Wazuh through 4.1.5 is affected by a remote…6.5
- CVE-2021-41823The Web Application Firewall (WAF) in Kemp LoadMaster 7.2.54…6.1
- CVE-2021-41824Craft CMS before 3.7.14 allows CSV injection.8.8
Are you affected by CVE-2021-41816?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
