{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2025-0343",
        "assignerOrgId": "e4a1ddda-f4f5-496e-96c8-82c37d06abd0",
        "state": "PUBLISHED",
        "assignerShortName": "Swift",
        "dateReserved": "2025-01-08T18:27:05.903Z",
        "datePublished": "2025-01-15T00:48:07.959Z",
        "dateUpdated": "2025-03-24T16:07:03.833Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "e4a1ddda-f4f5-496e-96c8-82c37d06abd0",
                "shortName": "Swift",
                "dateUpdated": "2025-01-15T00:48:07.959Z"
            },
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE-228: Improper Handling of Syntactically Invalid Structure"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "Swift Project",
                    "product": "Swift ASN1",
                    "versions": [
                        {
                            "version": "1.0.0",
                            "versionType": "semver",
                            "status": "affected",
                            "lessThan": "1.3.1"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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.\n\nImportantly, 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.\n\nThese 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."
                }
            ],
            "references": [
                {
                    "url": "https://github.com/apple/swift-asn1/security/advisories/GHSA-w8xv-rwgf-4fwh"
                }
            ]
        },
        "adp": [
            {
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "type": "CWE",
                                "cweId": "CWE-228",
                                "lang": "en",
                                "description": "CWE-228 Improper Handling of Syntactically Invalid Structure"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 7.5,
                            "attackVector": "NETWORK",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                            "integrityImpact": "NONE",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "NONE",
                            "confidentialityImpact": "NONE"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-01-15T14:55:10.749413Z",
                                "id": "CVE-2025-0343",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-03-24T16:07:03.833Z"
                }
            }
        ]
    }
}