CVE-2020-9861
NixOS vulnerability analysis and mitigation

Overview

A stack overflow vulnerability (CVE-2020-9861) was discovered in Swift for Linux versions up to and including 5.1.4. The vulnerability existed in the JSONSerialization component when parsing deeply nested malicious JSON input. The issue was disclosed on March 13, 2020, and was addressed with improved input validation in Swift 5.1.5 (Swift Forums, NVD).

Technical details

The vulnerability is classified as an Uncontrolled Recursion issue (CWE-674). When parsing JSON input using JSONSerialization or JSONDecoder, the application could be forced into arbitrarily deep recursion, potentially leading to a stack overflow. The vulnerability received a CVSS v3.1 base score of 7.5 (HIGH), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating it is network accessible with low attack complexity and requires no privileges or user interaction (NVD).

Impact

The successful exploitation of this vulnerability could lead to a denial-of-service condition through process crashes caused by stack overflow. The vulnerability affects the availability of the system without compromising confidentiality or integrity (NVD).

Exploitability

The vulnerability is remotely exploitable without authentication. An attacker who can provide JSON input to be parsed by the affected JSONSerialization component can trigger the vulnerability by submitting deeply nested malicious JSON data (Swift Forums).

Mitigation and workarounds

Users are advised to upgrade to Swift 5.1.5 or later versions, which include the security fix. The update can be obtained by downloading packages from Swift.org or using the latest docker images. The fix implements improved input validation for handling deeply nested JSON input (Swift Forums).

Community reactions

The vulnerability was initially reported by Fabian Fett, and the Swift team acknowledged the report and promptly released a fix. The issue was subsequently assigned CVE-2020-9861 to track the vulnerability (Swift Forums).

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-78662HIGH7.5
  • Docker logoDocker
  • headlamp-fips
NoYesSep 02, 2026
CVE-2026-56855HIGH7.5
  • Docker logoDocker
  • argo-workflows-3.7
NoYesSep 02, 2026
CVE-2026-84642HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026
CVE-2026-84641HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026
CVE-2026-32773MEDIUM6.1
  • NixOS logoNixOS
  • spark
NoYesSep 02, 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