CVE-2024-38366

CVE-2024-38366 is a critical-severity vulnerability in Cocoapods Trunk.cocoapods.org with a CVSS 3.x base score of 10.0. Its EPSS exploit-prediction score of 18% places it in the 97th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-74.

Key facts

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.

Frequently asked questions

What is CVE-2024-38366?
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.
How severe is CVE-2024-38366?
CVE-2024-38366 has a CVSS 3.x base score of 10.0, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2024-38366 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 18% (97th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-38366?
CVE-2024-38366 affects Cocoapods Trunk.cocoapods.org. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-38366?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2024-38366 have an EU (EUVD) identifier?
Yes. CVE-2024-38366 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-37280.
When was CVE-2024-38366 published?
CVE-2024-38366 was published on 2024-07-01 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Cocoapods Trunk.cocoapods.org

All CVEs affecting Cocoapods Trunk.cocoapods.org →

Other CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities

Browse all CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities →