CVE-2022-22895
NixOS vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • firefox-esr
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox-translations-common
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • firefox-esr
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management