CVE-2020-13991
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-13991 affects JerryScript version 2.2.0, where attackers can hijack the flow of control by controlling a register in vm/opcodes.c (CVE Details).

Technical details

The vulnerability exists in the spread arguments handling mechanism within JerryScript's virtual machine implementation. The issue stems from incorrect release of spread arguments during execution, where the stack pointer was incremented early in the opfunc_spread_arguments function, resulting in a state where one of the arguments was not properly freed. This caused memory leaks and potential control flow hijacking (GitHub PR).

Impact

The vulnerability allows attackers to hijack the control flow of the application, which could lead to arbitrary code execution within the context of the JerryScript engine. The issue manifests through memory corruption and can result in segmentation faults or program crashes (GitHub Issue).

Exploitability

The vulnerability can be triggered through specially crafted JavaScript code that utilizes spread arguments. Multiple proof-of-concept examples demonstrate successful exploitation, resulting in segmentation faults and program crashes (GitHub Issue, GitHub Issue).

Mitigation and workarounds

The issue was fixed in a patch that corrects the release of spread arguments by properly handling the stack pointer increment timing in the opfunc_spread_arguments function. Users should upgrade to a version containing the fix (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-13097CRITICAL9.1
  • NixOS logoNixOS
  • python3-samba-test
NoYesAug 20, 2026
CVE-2026-11861HIGH8.1
  • NixOS logoNixOS
  • samba-common
NoYesAug 20, 2026
CVE-2026-73198HIGH7.5
  • NixOS logoNixOS
  • ctdb-ceph-mutex
NoYesAug 20, 2026
CVE-2026-73197HIGH7.5
  • NixOS logoNixOS
  • samba-test-libs-debuginfo
NoYesAug 20, 2026
CVE-2026-73196MEDIUM6.5
  • NixOS logoNixOS
  • samba-ldb-ldap-modules-debuginfo
NoYesAug 20, 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