Apple swift-asn1 up to 1.3.0 BER DER Parser syntactically invalid structure

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
3.4$0-$5k0.00

Summaryinfo

A vulnerability described as critical has been identified in Apple swift-asn1 up to 1.3.0. Affected by this vulnerability is an unknown functionality of the component BER DER Parser. Such manipulation leads to improper handling of syntactically invalid structure. This vulnerability is uniquely identified as CVE-2025-0343. No exploit exists. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability was found in Apple swift-asn1 up to 1.3.0 and classified as problematic. Affected by this issue is an unknown code block of the component BER DER Parser. The manipulation with an unknown input leads to a improper handling of syntactically invalid structure vulnerability. Using CWE to declare the problem leads to CWE-228. The product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification. Impacted is availability. CVE summarizes:

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.

The advisory is shared for download at github.com. This vulnerability is handled as CVE-2025-0343 since 01/08/2025. The exploitation is known to be easy. There are neither technical details nor an exploit publicly available.

Upgrading to version 1.3.1 eliminates this vulnerability.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 3.5
VulDB Meta Temp Score: 3.4

VulDB Base Score: 3.5
VulDB Temp Score: 3.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Improper handling of syntactically invalid structure
CWE: CWE-228 / CWE-20
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: swift-asn1 1.3.1

Timelineinfo

01/08/2025 🔍
01/14/2025 +6 days 🔍
01/14/2025 +0 days 🔍
02/19/2025 +36 days 🔍

Sourcesinfo

Vendor: apple.com

Advisory: github.com
Status: Confirmed

CVE: CVE-2025-0343 (🔍)
GCVE (CVE): GCVE-0-2025-0343
GCVE (VulDB): GCVE-100-291632

Entryinfo

Created: 01/14/2025 18:33
Updated: 02/19/2025 04:55
Changes: 01/14/2025 18:33 (53), 01/15/2025 12:10 (1), 02/19/2025 04:55 (1)
Complete: 🔍
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!