CVE-2021-41816
CVSS V2 High 7.5
CVSS V3 Critical 9.8
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.
Overview
- CVE ID
- CVE-2021-41816
- Assigner
- cve@mitre.org
- Vulnerability Status
- Analyzed
- Published Version
- 2022-02-06T21:15:07
- Last Modified Date
- 2022-09-10T02:41:00
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
AND | ||||
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* | 1 | OR | 0.3.1 | |
AND | ||||
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* | 1 | OR | 0.2.0 | |
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | 0 | OR | 3.0.0 | 3.0.3 |
AND | ||||
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* | 1 | OR | 0.1.0 | |
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | 0 | OR | 2.7.0 | 2.7.5 |
AND | ||||
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 7.5
- Severity
- HIGH
- Exploitability Score
- 10
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 9.8
- Base Severity
- CRITICAL
- Exploitability Score
- 3.9
- Impact Score
- 5.9
References
Reference URL | Reference Tags |
---|---|
https://hackerone.com/reports/1328463 | Permissions Required Third Party Advisory |
https://security-tracker.debian.org/tracker/CVE-2021-41816 | 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://security.netapp.com/advisory/ntap-20220303-0006/ | Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/ | |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/ |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-41816 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41816 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-08 06:06:47 | Added to TrackCVE | |||
2022-12-06 08:44:41 | 2022-02-06T21:15Z | 2022-02-06T21:15:07 | CVE Published Date | updated |
2022-12-06 08:44:41 | 2022-09-10T02:41:00 | CVE Modified Date | updated | |
2022-12-06 08:44:42 | Analyzed | Vulnerability Status | updated |