CVE-2025-0343
Last modified
CVE-2025-0343 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.32% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-0343?
How severe is CVE-2025-0343?
How do I fix CVE-2025-0343?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-0336A vulnerability was found in Codezips Project Management Sys…9.8
- CVE-2025-0337ServiceNow has addressed an authorization bypass vulnerabili…7.1
- CVE-2025-0339A vulnerability classified as problematic has been found in …6.1
- CVE-2025-0340A vulnerability classified as critical was found in code-pro…9.8
- CVE-2025-0341A vulnerability, which was classified as critical, has been …9.8
- CVE-2025-0342A vulnerability, which was classified as problematic, was fo…5.4
- CVE-2025-0344A vulnerability has been found in leiyuxi cy-fast 1.0 and cl…8.8
- CVE-2025-0345A vulnerability was found in leiyuxi cy-fast 1.0 and classif…8.8
- CVE-2025-0346A vulnerability was found in code-projects Content Managemen…7.2
- CVE-2025-0347A vulnerability was found in code-projects Admission Managem…9.8
- CVE-2025-0348A vulnerability was found in CampCodes DepEd Equipment Inven…5.4
- CVE-2025-0349A vulnerability classified as critical has been found in Ten…9.8
Are you affected by CVE-2025-0343?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
