CVE-2024-39864 Apache CloudStack: Integration API service uses dynamic port when disabled

Critical 9.8 Published Updated

Attackers on the management network can discover a hidden unauthenticated API port to execute remote code and compromise CloudStack infrastructure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-39864?

CVE-2024-39864 is a critical missing authorization vulnerability in Apache Cloudstack, published on 5 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The CloudStack integration API service allows running its unauthenticated API server (usually on port 8096 when configured and enabled via integration.api.port global setting) for internal portal integrations and for testing purposes. By default, the integration API service port is disabled and is considered disabled when integration.api.port is set to 0 or negative. Due to an improper initialisation logic, the integration API service would listen on a random port when its port value is set to 0 (default value). An attacker that can access the CloudStack management network could scan and find the randomised integration API service port and exploit it to perform unauthorised administrative actions and perform remote code execution on CloudStack managed hosts and result in complete compromise of the confidentiality, integrity, and availability of CloudStack managed infrastructure.

Users are recommended to restrict the network access on the CloudStack management server hosts to only essential ports. Users are recommended to upgrade to version 4.18.2.1, 4.19.0.2 or later, which addresses this issue.

Weakness: CWE-94, CWE-665

Which versions are affected by CVE-2024-39864?

It affects 1 product.

Products include Apache Cloudstack.

How do I fix CVE-2024-39864?

No fix has been published for CVE-2024-39864 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-39864 being exploited?

There is no known exploitation of CVE-2024-39864 in the wild and no public exploit code.

All Apache Cloudstack vulnerabilities

Sources

Also known as GHSA-qcg7-r5qq-mqmw.

Is CVE-2024-39864 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free