CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2025-0343

High
Published: Translated: NVD NIST

Summary

Podatność CVE-2025-0343 dotyczy biblioteki Swift ASN.1, która może ulegać awarii podczas analizy niektórych konstrukcji BER/DER. Awaria jest spowodowana błędnym założeniem w bibliotece, że pewne obiekty mogą być dostarczane tylko w formach skonstruowanych lub prymitywnych.

Risk Assessment

Podatność ta może być wykorzystana jako wektor ataku typu denial-of-service, szczególnie podczas analizy danych BER/DER z nieznanych źródeł, takich jak certyfikaty TLS. Choć nie występuje problem z bezpieczeństwem pamięci, awaria może prowadzić do przerwania usług.

Recommendation

Zaleca się unikanie analizy danych BER/DER z nieznanych źródeł oraz wprowadzenie dodatkowych zabezpieczeń w celu weryfikacji poprawności danych przed ich przetworzeniem.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS