BreachSpiderVerified, not vibes

CVE-2025-0343 in Swift products

High 7.5

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. Import...

Affects 0 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.5
EPSS0.5%
EPSS percentile35th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Swift — —
Vector — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-0343
BreachSpider IDBS-2025-GLOBAL-210303-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2025-01-15
Last modified2026-04-15
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-228: CWE-228

Analysis AI-written, not human-reviewed

Swift ASN.1 library crashes when parsing certain BER/DER constructions due to incorrect assumptions about object forms, leading to a preconditionFailure.

An attacker can craft malicious BER/DER encoded data that violates the expected object form constraints, causing the Swift ASN.1 library to crash. This can be exploited in applications that rely on this library for parsing ASN.1 data.

Questions

What is CVE-2025-0343?

Swift ASN.1 library crashes when parsing certain BER/DER constructions due to incorrect assumptions about object forms, leading to a preconditionFailure.

What is the CVSS score for CVE-2025-0343?

CVE-2025-0343 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.5%.

Is CVE-2025-0343 actively exploited?

No confirmed active exploitation of CVE-2025-0343 as of 2026-05-30.

How do I remediate CVE-2025-0343?

Priority: HIGH.

What systems are affected by CVE-2025-0343?

CVE-2025-0343 affects Swift; Vector.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Swift","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.