---
title: "CVE-2022-1642: Swift Project Swift Corelib-Foundation Vulnerability"
publisher: SpecStream
source: "CVE Program (CVEProject cvelistV5)"
source_url: "https://github.com/CVEProject/cvelistV5"
---

# CVE-2022-1642: Swift Project Swift Corelib-Foundation Vulnerability

SpecStream dataset, built from [CVE Program (CVEProject cvelistV5)](https://github.com/CVEProject/cvelistV5), updated December 6, 2026.

CVE-2022-1642 is a published software vulnerability affecting Swift Project Swift Corelib-Foundation. Published June 16, 2022 by Swift. A program using swift-corelibs-foundation is vulnerable to a denial of service attack caused by a potentially malicious source producing a JSON document containing a type mismatch. This vulnerability is caused by the interaction between a deserialization mechanism offered by the Swift standard.

[CVE Vulnerabilities](/data/cve)

SpecStream is the live web data engine for teams and agents.

- CVE ID: CVE-2022-1642
- Status: Published
- Affected vendor: Swift Project
- Affected product: Swift Corelib-Foundation
- Assigner CNA: Swift
- Published date: June 16, 2022
- Last updated: August 3, 2024
- Weakness (CWE): CWE-241: Improper Handling of Unexpected Data Type

## Vulnerability data and live monitoring

Query CVE feeds, affected software packages and severity updates through the SpecStream API or export structured CSV files.

- [https://specstream.ai/data/cve](https://specstream.ai/data/cve)
- [https://specstream.ai/signup?src=cve-vulnerabilities](https://specstream.ai/signup?src=cve-vulnerabilities)

CVE Terms of Use (Public Vulnerability Records).

## Access via API, MCP, or CSV

Query live web and register data via the SpecStream Search API ($1 per 1,000 fast searches), Extract API ($0.80 per 1,000 Markdown pages), or MCP server (`npx -y @specstream/mcp-server`). Start with [$2 free API credit (no card)](https://specstream.ai/signup) or unlock 5,000 CSV rows/mo plus $49 API credit with the [Monthly Pro Pass ($49/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=starter).

Free to quote with credit and a link. Copying in bulk needs a [data licence](https://specstream.ai/data/licence).

## Business lists in the United States

- [Iron fabricators in the United States](https://specstream.ai/data/businesses/iron-fabricators/united-states)
- [Vocational and technical schools in the United States](https://specstream.ai/data/businesses/vocational-and-technical-schools/united-states)
- [Flight schools in the United States](https://specstream.ai/data/businesses/flight-schools/united-states)
- [Shared office spaces in the United States](https://specstream.ai/data/businesses/shared-office-spaces/united-states)
- [Cosmetics and fragrance stores in the United States](https://specstream.ai/data/businesses/cosmetics-and-fragrance-stores/united-states)
- [Painting contractors in the United States](https://specstream.ai/data/businesses/painting-contractors/united-states)
