patchminder
Proof of concept · GitHub CVE-2024-38366

Injectionin CocoaPods.

Published 1 Jul 2024 · Updated 2 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 10.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 16.0% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 001cc3a430e75a16307f5fd6cdff1363ad2f40f3 or later
In plain words

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.

What to do now
  • Upgrade CocoaPods to 001cc3a430e75a16307f5fd6cdff1363ad2f40f3 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
CocoaPods
before 001cc3a430e75a16307f5fd6cdff1363ad2f40f3
001cc3a430e75a16307f5fd6cdff1363ad2f40f3
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 14 Jun 2024
    CVE ID reserved by GitHub_M.
  2. 28 Jun 2024
    First public proof of concept on GitHub.
  3. 1 Jul 2024
    Published in the CVE List.
  4. 2 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundReeFSpeK/CocoaPods-RCE_CVE-2024-383661 stars · created 28 Jun 2024CocoaPods RCE Vulnerability CVE-2024-38366

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.

Related

Other CocoaPods vulnerabilities

Same weakness: Injection

All CWE-74 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-38366: Injection in CocoaPods. https://patchminder.com/cve/cve-2024-38366/ (accessed 5 December 2026).