CVE-2024-38368
Ruby vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2024-38368) was discovered in CocoaPods, affecting older pods that migrated from the pre-2014 pull request workflow to trunk. The vulnerability, which has a CVSS score of 9.9, allowed attackers to take control of orphaned pods (packages that had never been claimed or had all owners removed) and potentially modify their contents. This issue affected the CocoaPods dependency manager, which is used by over three million applications across the Apple ecosystem (SecurityWeek, HackerNews).

Technical details

The vulnerability stemmed from the 2014 migration to a Trunk server, which reset authorship for all pods. While authors were asked to claim ownership of their pods, 1,866 packages remained orphaned. These unclaimed pods were automatically associated with a default owner using the email address 'unclaimed-pods@cocoapods.org'. The vulnerability allowed attackers to exploit a public API endpoint for claiming pods without any ownership verification process (EVA Security).

Impact

The vulnerability potentially affected thousands of applications and millions of devices across the Apple ecosystem. Researchers found mentions of orphaned pods in applications provided by major companies including Meta (Facebook, WhatsApp), Apple (Safari, AppleTV, Xcode), Microsoft (Teams), as well as TikTok, Snapchat, Amazon, LinkedIn, Netflix, Okta, Yahoo, and Zynga. Overall, 685 pods were identified that had explicit dependencies using orphaned pods (SecurityWeek).

Mitigation and workarounds

CocoaPods addressed these vulnerabilities server-side in September and October 2023, and exploitation is no longer possible. The team also reset all user sessions as a precautionary measure. The 'Claim Your Pods' feature has been removed from the system (CocoaPods Blog).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management