CocoaPods: Exposure of Resource to Wrong Sphere
CVE-2024-38368 is a critical-severity exposure of resource to wrong sphere vulnerability in CocoaPods, with a CVSS 3.1 base score of 9.3 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f4 as the first without the flaw, so updating CocoaPods to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 14.9% chance of exploitation within 30 days, which is in the top 3.25% of all scored CVEs.
Critical severity: a successful attack would have severe impact.
What to do
- Update CocoaPods to 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f4 or a later version.
- Update Trunk.cocoapods.org to 2023-09-22 or a later version.
- Read the advisory on blog.cocoapods.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| CocoaPods | CocoaPods | < 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f4; before 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f4 | 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f4 |
| Cocoapods | Trunk.cocoapods.org | before 2023-09-22 | 2023-09-22 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- HighData or code can be modified at will.
- Availability
- LowPerformance or availability is reduced.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:L. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.3 | Critical | CNA (github.com) |
| CVSS 3.1 | 9.3 | Critical | NVD |
Official description
trunk.cocoapods.org is the authentication server for the CoacoaPods dependency manager. A vulnerability affected older pods which migrated from the pre-2014 pull request workflow to trunk. If the pods had never been claimed then it was still possible to do so. It was also possible to have all owners removed from a pod, and that made the pod available for the same claiming system. This was patched server-side in commit 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f4 in September 2023.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Exposure of Resource to Wrong Sphere
The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
More Exposure of Resource to Wrong Sphere vulnerabilities (CWE-668)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Patches and release notes
Third-party and government advisories
Other references
Other vulnerabilities in CocoaPods
- 9.6 Critical severity
- 10.0 Critical severity
Recent Exposure of Resource to Wrong Sphere vulnerabilities
- 7.1 High severity
- 7.8 High severity
- 7.1 High severity
- 7.1 High severity
- 7.9 High severity
- 8.8 High severity
Spotted an error? Tell us.