Home / Swift Project / Swift ASN1 / CVE-2025-0343
CVE-2025-0343: is it exploited, and which versions of Swift Project Swift ASN1 are affected and fixed?
CVE-2025-0343 is an improper Handling of Syntactically Invalid Structure vulnerability in Swift Project Swift ASN1. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: github.com/apple/swift-asn1 before 1.3.1 (GitHub advisory GHSA-w8xv-rwgf-4fwh). Fixed in 1.3.1 (GitHub advisory GHSA-w8xv-rwgf-4fwh). Severity: High (7.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:23 UTC.
What is CVE-2025-0343?
Swift ASN.1 can be caused to crash when parsing certain BER/DER constructions. This crash is caused by a confusion in the ASN.1 library itself which assumes that certain objects can only be provided in either constructed or primitive forms, and will trigger a preconditionFailure if that constraint isn't met. Importantly, these constraints are actually required to be true in DER, but that correctness wasn't enforced on the early node parser side so it was incorrect to rely on it later on in decoding, which is what the library did. These crashes can be triggered when parsing any DER/BER format object. There is no memory-safety issue here: the crash is a graceful one from the Swift runtime. The impact of this is that it can be used as a denial-of-service vector when parsing BER/DER data from unknown sources, e.g. when parsing TLS certificates.
From the CVE record by Swift, last updated March 24, 2025, 16:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Swift Project | Swift ASN1 | from 1.0.0 before 1.3.1 | 1.3.1 |
As the CVE record by Swift states it, last updated March 24, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| SwiftURL | github.com/apple/swift-asn1 | < 1.3.1 | 1.3.1 | GHSA-w8xv-rwgf-4fwh |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 15, 2025. Summary: CVE-2025-0343: Swift ASN.1 can crash when parsing maliciously formed BER/DER.
How severe is CVE-2025-0343?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-0343 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, January 15, 2025)
- EPSS
- 0.34% probability of exploitation activity in the next 30 days, percentile 30.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-228 Improper Handling of Syntactically Invalid Structure
Where are the vendor advisories and references?
When was it published, and where is the official record?
- Reserved
- January 8, 2025
- Published
- January 15, 2025, 00:48 UTC
- CVE record updated
- March 24, 2025, 16:07 UTC by Swift
- NVD
- Deferred, last modified June 17, 2026, 08:26 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2025-0343
Is CVE-2025-0343 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.34% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Swift Project Swift ASN1 are affected by CVE-2025-0343?
github.com/apple/swift-asn1 before 1.3.1, per the GitHub advisory GHSA-w8xv-rwgf-4fwh. The tables above give every range the sources list.
Which version fixes CVE-2025-0343?
1.3.1, per the GitHub advisory GHSA-w8xv-rwgf-4fwh. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-0343?
High (7.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2025-0343?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.