CoacoaPods trunk RCE in email verification system rfc-822
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| CocoaPods | CocoaPods | before 001cc3a430e75a16307f5fd6cdff1363ad2f40f3 | 001cc3a430e75a16307f5fd6cdff1363ad2f40f3 | Patch available | CNA |
- CocoaPods VendorCocoaPods Affected before 001cc3a430e75a16307f5fd6cdff1363ad2f40f3 Fixed in 001cc3a430e75a16307f5fd6cdff1363ad2f40f3 Patch available CNA
Remediation
- Fix · CNA CocoaPods (CocoaPods) Fixed in 001cc3a430e75a16307f5fd6cdff1363ad2f40f3
Timeline
- 2026-10-02 Threatist record created from CVE-2024-38366
References
More CocoaPods Trunk.cocoapods.org vulnerabilities
- TI-2024-25624 CoacoaPods trunk sessions verification step could be manipulated for owner session hijacking CVSS 3.1CRITICAL 9.6
- TI-2024-25625 Trunk's 'Claim your pod' could be used to obtain un-used pods CVSS 3.1CRITICAL 9.3
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences