Injectionin CocoaPods.
Proof of concept public (GitHub).
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.
- Upgrade CocoaPods to 001cc3a430e75a16307f5fd6cdff1363ad2f40f3 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 14 Jun 2024CVE ID reserved by GitHub_M.
- 28 Jun 2024First public proof of concept on GitHub.
- 1 Jul 2024Published in the CVE List.
- 2 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other CocoaPods vulnerabilities
Same weakness: Injection
- github.com x_refsource_CONFIRM
- blog.cocoapods.org x_refsource_MISC
- evasec.webflow.io x_refsource_MISC
Patchminder. CVE-2024-38366: Injection in CocoaPods. https://patchminder.com/cve/cve-2024-38366/ (accessed 5 December 2026).