
Cloud Vulnerability DB
A community-led vulnerabilities database
JerryScript version 3.0.0 was discovered to contain a heap-buffer-overflow vulnerability (CVE-2022-22895) in the ecma_utf8_string_to_number_by_radix function located in /jerry-core/ecma/base/ecma-helpers-conversion.c. The vulnerability was disclosed on January 21, 2022 and received a CVSS v3 Base Score of 7.8 (AttackerKB).
The vulnerability is a heap-buffer-overflow that occurs in the ecma_utf8_string_to_number_by_radix function when processing string to number conversions. The issue can be triggered through specific test cases involving number conversion operations with hexadecimal values. The vulnerability requires local access and user interaction to be exploited, as indicated by the CVSS metrics: Attack Vector (AV): Local, Attack Complexity (AC): Low, Privileges Required (PR): None, User Interaction (UI): Required (AttackerKB).
If successfully exploited, this vulnerability could lead to high impacts on confidentiality, integrity, and availability of the affected system. The CVSS scoring indicates high impact scores for all three security metrics - Confidentiality (C): High, Integrity (I): High, Availability (A): High (AttackerKB).
The vulnerability can be triggered using specific JavaScript test cases that involve number conversion operations. A proof of concept exists that demonstrates the buffer overflow by calling Number() on strings containing hexadecimal values like '+0x0', '+0xFF', and '-0xFF' (GitHub Issue).
The vulnerability was fixed in a patch that addresses the buffer overflow in string radix conversion. The fix was implemented through pull request #4850 in the JerryScript repository (GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."