{"id":"CVE-2024-38366","published":"2024-07-01T20:42:38Z","modified":"2024-08-02T04:04:25Z","title":"CoacoaPods trunk RCE in email verification system rfc-822","vendor":"CocoaPods","product":"CocoaPods","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.15829,"percentile":0.96953,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/CocoaPods/CocoaPods/security/advisories/GHSA-x2x4-g675-qg7c","tags":["x_refsource_CONFIRM"]},{"url":"https://blog.cocoapods.org/CocoaPods-Trunk-RCEs-2023","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","tags":["x_refsource_MISC"]}],"priority":{"score":31.4,"factors":[{"name":"EPSS percentile","points":19.39},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-06-28","earliestUrl":"https://github.com/ReeFSpeK/CocoaPods-RCE_CVE-2024-38366","repos":[{"name":"ReeFSpeK/CocoaPods-RCE_CVE-2024-38366","url":"https://github.com/ReeFSpeK/CocoaPods-RCE_CVE-2024-38366","stars":1,"created":"2024-06-28"}]},"first":{"date":"2024-06-28","source":"PoC-in-GitHub","url":"https://github.com/ReeFSpeK/CocoaPods-RCE_CVE-2024-38366"},"provenance":"source"},"vendorSlug":"cocoapods","affectedVersions":[{"vendor":"CocoaPods","product":"CocoaPods","versions":["< 001cc3a430e75a16307f5fd6cdff1363ad2f40f3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-07-02T15:01:04.640272Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The CocoaPods trunk server (trunk.cocoapods.org), the authentication server for the CocoaPods dependency manager, contains a flaw in its email verification during signup: an rfc-822 library used to check the email domain's MX records executes a shell command, and that lookup can be manipulated. An unauthenticated remote attacker who can make the server perform the MX lookup via DNS can run commands on the trunk server, which could give root access to the server and its infrastructure, and could have allowed writes to any Podspec in trunk.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:17:31Z"},"euvd":{"id":"EUVD-2024-37280","exploited":false,"provenance":"source"}}