Vulnerability in Cocoapods
CVE-2024-38366
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.178, 97.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Cocoapods — versions < 001cc3a430e75a16307f5fd6cdff1363ad2f40f3
- Cocoapods Trunk.cocoapods.org
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- ReeFSpeK/CocoaPods-RCE_CVE-2024-38366 (1 star, last pushed 2024-07-01): CocoaPods RCE Vulnerability CVE-2024-38366
Also mentioned in 4 other repositories (ARPSyndicate/cve-scores, fkie-cad/nvd-json-data-feeds, nomi-sec/PoC-in-GitHub, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/CocoaPods/CocoaPods/security/advisories/GHSA-x2x4-g675-qg7c (Third Party Advisory)
- https://blog.cocoapods.org/CocoaPods-Trunk-RCEs-2023 (Vendor Advisory)
- https://evasec.webflow.io/blog/eva-discovered-supply-chain-vulnerabities-in-cocoapods#2-remote-code-execution-on-the-cocoapods-trunk-server (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.