Ruby up to 2.7.4/3.0.2 CGI.escape_html integer overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.4 | $0-$5k | 0.00 |
Summary
A vulnerability was found in Ruby up to 2.7.4/3.0.2. It has been rated as critical. Affected by this vulnerability is the function CGI.escape_html. Performing a manipulation results in integer overflow.
This vulnerability was named CVE-2021-41816. The attack may be initiated remotely. There is no available exploit.
Upgrading the affected component is advised.
Details
A vulnerability, which was classified as critical, was found in Ruby up to 2.7.4/3.0.2 (Programming Language Software). This affects the function CGI.escape_html. The manipulation with an unknown input leads to a integer overflow vulnerability. CWE is classifying the issue as CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. This is going to have an impact on confidentiality, integrity, and availability.
The weakness was presented 02/07/2022. It is possible to read the advisory at hackerone.com. This vulnerability is uniquely identified as CVE-2021-41816 since 09/29/2021. Technical details of the vulnerability are known, but there is no available exploit.
Upgrading to version 2.7.5 or 3.0.3 eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at CERT Bund (WID-SEC-2022-0877). Be aware that VulDB is the high quality source for vulnerability data.
Affected
- Debian Linux
- Amazon Linux 2
- Red Hat Enterprise Linux
- Ubuntu Linux
- SUSE Linux
- Oracle Linux
- Gentoo Linux
- Open Source Ruby
- SUSE openSUSE
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.6VulDB Meta Temp Score: 5.4
VulDB Base Score: 5.6
VulDB Temp Score: 5.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Integer overflowCWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Ruby 2.7.5/3.0.3
Timeline
09/29/2021 🔍02/07/2022 🔍
02/07/2022 🔍
05/09/2026 🔍
Sources
Advisory: hackerone.comStatus: Confirmed
Confirmation: 🔍
CVE: CVE-2021-41816 (🔍)
GCVE (CVE): GCVE-0-2021-41816
GCVE (VulDB): GCVE-100-192423
CERT Bund: WID-SEC-2022-0877 - Ruby: Mehrere Schwachstellen
Entry
Created: 02/07/2022 08:44Updated: 05/09/2026 10:22
Changes: 02/07/2022 08:44 (40), 02/11/2022 10:10 (1), 05/09/2026 10:22 (21)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.