Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-38366

10.0 · CRITICAL
Published Jul 1, 2024 cocoapods CWE-74 EPSS 17.79% (97th pctl)

Overview

CVE-2024-38366 is a critical-severity vulnerability affecting cocoapods trunk.cocoapods.org. It was published on July 1, 2024 and has a CVSS 3.1 base score of 10.0 (CRITICAL).

This vulnerability has a CVSS 3.1 base score of 10.0, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

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.

Remediation

Check the references section for vendor advisories and patches from cocoapods. Update trunk.cocoapods.org to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
cocoapods trunk.cocoapods.org >= 0, < 2023-09-22 Affected

Frequently Asked Questions

What is CVE-2024-38366?

CVE-2024-38366 is a critical-severity vulnerability affecting cocoapods trunk.cocoapods.org. It was published on July 1, 2024 and has a CVSS 3.1 base score of 10.0 (CRITICAL).

How severe is CVE-2024-38366?

This vulnerability has a CVSS 3.1 base score of 10.0, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-38366?

Check the references section for vendor advisories and patches from cocoapods. Update trunk.cocoapods.org to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-38366?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-38366 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.