Skip to content
Heist/ feed
Back to feed
Critical

Apache CloudStack: Integration API service uses dynamic port when disabled

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-39864
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 21:15 UTC · Revision 1

Source evidence

Apache CloudStack: Integration API service uses dynamic port when disabled

core-osv · Original source

Published 5 Jul 2024, 13:40 UTC

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.

osv:CVE-2024-39864
Complete source record
{
  "id": "07bbc1a6ef33a81536f633e35382d57f50e4aa960f52886a735f2d14b141986e",
  "url": "https://osv.dev/vulnerability/CVE-2024-39864",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Apache CloudStack: Integration API service uses dynamic port when disabled",
    "summary": "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.",
    "evidence": "osv:CVE-2024-39864",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-39864",
      "aliases": [
        "CVE-2024-39864"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/cloudstack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6355965dcd956811dd471a9d03c73dadcf68f480"
                },
                {
                  "fixed": "ef5b5bbd4e545bb4e8bc87f878a21da40ba486e8"
                },
                {
                  "introduced": "2746225b999612f156e421199e34ef8de98a3664"
                },
                {
                  "fixed": "616d72665f07f877fb6175e18cfe62d6372d5fd4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:cloudstack:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.18.2.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:cloudstack:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.19.0.0"
                      },
                      {
                        "fixed": "4.19.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.19.0.1",
            "4.19.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39864.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.568401340Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39864.json",
        "https://lists.apache.org/thread/6l51r00csrct61plkyd3qg3fj99215d1",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-39864",
        "https://www.shapeblue.com/shapeblue-security-advisory-apache-cloudstack-security-releases-4-18-2-1-and-4-19-0-2/",
        "https://cloudstack.apache.org/blog/security-release-advisory-4.19.0.2-4.18.2.1"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-665",
          "CWE-94"
        ],
        "cna_assigner": "apache",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.0.0"
                  },
                  {
                    "last_affected": "4.18.2.0"
                  },
                  {
                    "introduced": "4.19.0.0"
                  },
                  {
                    "last_affected": "4.19.0.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39864.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-39864",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 520423,
  "published_at": "2024-07-05T13:40:37.937+00:00"
}