{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-38366",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-06-14T14:16:16.466Z",
        "datePublished": "2024-07-01T20:42:38.281Z",
        "dateUpdated": "2024-08-02T04:04:25.256Z"
    },
    "containers": {
        "cna": {
            "title": "CoacoaPods trunk RCE in email verification system rfc-822",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-74",
                            "lang": "en",
                            "description": "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 10,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/CocoaPods/CocoaPods/security/advisories/GHSA-x2x4-g675-qg7c",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/CocoaPods/CocoaPods/security/advisories/GHSA-x2x4-g675-qg7c"
                },
                {
                    "name": "https://blog.cocoapods.org/CocoaPods-Trunk-RCEs-2023",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://blog.cocoapods.org/CocoaPods-Trunk-RCEs-2023"
                },
                {
                    "name": "https://evasec.webflow.io/blog/eva-discovered-supply-chain-vulnerabities-in-cocoapods#2-remote-code-execution-on-the-cocoapods-trunk-server",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://evasec.webflow.io/blog/eva-discovered-supply-chain-vulnerabities-in-cocoapods#2-remote-code-execution-on-the-cocoapods-trunk-server"
                }
            ],
            "affected": [
                {
                    "vendor": "CocoaPods",
                    "product": "CocoaPods",
                    "versions": [
                        {
                            "version": "< 001cc3a430e75a16307f5fd6cdff1363ad2f40f3",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-07-02T16:35:28.407Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "trunk.cocoapods.org is the authentication server for the CoacoaPods dependency manager. The part of trunk which verifies whether a user has a real email address on signup used a rfc-822 library which executes a shell command to validate the email domain MX records validity. It works via an DNS MX. This lookup could be manipulated to also execute a command on the trunk server, effectively giving root access to the server and the infrastructure. This issue was patched server-side with commit 001cc3a430e75a16307f5fd6cdff1363ad2f40f3 in September 2023. This RCE triggered a full user-session reset, as an attacker could have used this method to write to any Podspec in trunk."
                }
            ],
            "source": {
                "advisory": "GHSA-x2x4-g675-qg7c",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "cocoapods",
                        "product": "cocoapods",
                        "cpes": [
                            "cpe:2.3:a:cocoapods:cocoapods:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "001cc3a430e75a16307f5fd6cdff1363ad2f40f3",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-07-02T15:01:04.640272Z",
                                "id": "CVE-2024-38366",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-07-02T15:19:17.542Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T04:04:25.256Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/CocoaPods/CocoaPods/security/advisories/GHSA-x2x4-g675-qg7c",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/CocoaPods/CocoaPods/security/advisories/GHSA-x2x4-g675-qg7c"
                    },
                    {
                        "name": "https://blog.cocoapods.org/CocoaPods-Trunk-RCEs-2023",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://blog.cocoapods.org/CocoaPods-Trunk-RCEs-2023"
                    },
                    {
                        "name": "https://evasec.webflow.io/blog/eva-discovered-supply-chain-vulnerabities-in-cocoapods#2-remote-code-execution-on-the-cocoapods-trunk-server",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://evasec.webflow.io/blog/eva-discovered-supply-chain-vulnerabities-in-cocoapods#2-remote-code-execution-on-the-cocoapods-trunk-server"
                    }
                ]
            }
        ]
    }
}