CyberSecBulletin
CVE-2024-38368NVD status: Modified

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.

Patch this week

Critical severity: a successful attack would have severe impact.

What to do

  1. Update CocoaPods to 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f4 or a later version.
  2. Update Trunk.cocoapods.org to 2023-09-22 or a later version.
  3. Read the advisory on blog.cocoapods.org for workarounds and exact fixed builds.
  4. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
CocoaPodsCocoaPods< 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f4; before 71be5440906b6bdfbc0bcc7f8a9fec33367ea0f471be5440906b6bdfbc0bcc7f8a9fec33367ea0f4
CocoapodsTrunk.cocoapods.orgbefore 2023-09-222023-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 systemScoreSeverityScored by
CVSS 3.19.3CriticalCNA (github.com)
CVSS 3.19.3CriticalNVD

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

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Other references

Other vulnerabilities in CocoaPods

All CocoaPods vulnerabilities

Recent Exposure of Resource to Wrong Sphere vulnerabilities

Spotted an error? Tell us.