# CVE-2020-9861: A stack overflow issue existed in Swift for Linux.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.45%, higher than 74% of CVEs (2026-12-01)
- Published: 2020-11-02T22:14:05.000Z
- Modified: 2026-06-17T03:28:42.047Z
- Weaknesses: CWE-674
- Assigned by: apple

## Description

A stack overflow issue existed in Swift for Linux. The issue was addressed with improved input validation for dealing with deeply nested malicious JSON input.

(As written by CVE List.)

## Affected

- Swift Swift 5.1.5 for Linux: from unspecified before Swift 5.1.5 for Linux
- apple swift: up to 5.1.4

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://forums.swift.org/t/swift-5-1-5-for-linux-jsonserialization-limit-recursion-when-parsing/34514> (vendor-advisory)

## Sources

- CVE List: [CVE-2020-9861](https://www.cve.org/CVERecord?id=CVE-2020-9861), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-9861](https://nvd.nist.gov/vuln/detail/CVE-2020-9861), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-9861 · Whole record: https://cve.day/CVE-2020-9861.json · Rebuilt by cve.day 2026-11-25T22:57:55.557Z
