Vulnerabilities in pkg:maven/org.apache.pulsar/pulsar-broker

PACKAGE
Advisory Identifier: GHSA-g627-r579-rw35
Advisory Summary

CVE-2024-28098 is a MODERATE (CVSS 5.4) improper authorization for topic-level policy vulnerability (CWE-863: Incorrect Authorization) affecting Apache Pulsar libraries in the Maven ecosystem. The issue involves improper authorization for topic-level policy management. Remediation is available by upgrading affected packages to version 3.2.1, 3.1.3, 3.0.3, 2.11.4, 2.10.6.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.pulsar/pulsar-broker

6 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.pulsar/pulsar-broker. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-g627-r579-rw35 CVE-2024-28098 MODERATE Apache Pulsar: Improper Authorization For Topic-Level Policy Management
GHSA-7mg2-6c6v-342r CVE-2024-29834 MODERATE Apache Pulsar: Improper Authorization For Namespace and Topic Management Endpoints
GHSA-47r2-phr8-m8cp CVE-2023-31007 MODERATE Apache Pulsar Broker Improper Authentication vulnerability
GHSA-j2r7-3rvw-g7gx CVE-2023-30428 HIGH Apache Pulsar Broker's Rest Producer vulnerable to Incorrect Authorization
GHSA-j3qw-g67q-7m64 CVE-2022-33683 MODERATE Apache Pulsar Brokers and Proxies vulnerable to Improper Certificate Validation
GHSA-jvf3-mfxv-jcqr CVE-2022-33682 MODERATE Apache Pulsar Broker, Proxy, and WebSocket Proxy vulnerable to Improper Certificate Validation

CVE-2024-28098 at a Glance

CVE Identifier CVE-2024-28098
GHSA Identifier GHSA-g627-r579-rw35
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-863: Incorrect Authorization
Affected Product Apache Pulsar
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-28098

To remediate this vulnerability, upgrade all affected Apache Pulsar dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.pulsar:pulsar-broker fixed: 3.2.1
<dependency>
    <groupId>org.apache.pulsar</groupId>
    <artifactId>pulsar-broker</artifactId>
    <version>3.2.1</version>
</dependency>
org.apache.pulsar:pulsar-broker fixed: 3.1.3
<dependency>
    <groupId>org.apache.pulsar</groupId>
    <artifactId>pulsar-broker</artifactId>
    <version>3.1.3</version>
</dependency>
org.apache.pulsar:pulsar-broker fixed: 3.0.3
<dependency>
    <groupId>org.apache.pulsar</groupId>
    <artifactId>pulsar-broker</artifactId>
    <version>3.0.3</version>
</dependency>
org.apache.pulsar:pulsar-broker fixed: 2.11.4
<dependency>
    <groupId>org.apache.pulsar</groupId>
    <artifactId>pulsar-broker</artifactId>
    <version>2.11.4</version>
</dependency>
org.apache.pulsar:pulsar-broker fixed: 2.10.6
<dependency>
    <groupId>org.apache.pulsar</groupId>
    <artifactId>pulsar-broker</artifactId>
    <version>2.10.6</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.pulsar

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-28098, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.pulsar

Analyze the terminal output to locate any version of Apache Pulsar in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.pulsar command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Apache Pulsar, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The vulnerability allows authenticated users with only produce or consume permissions to modify topic-level policies, such as retention, TTL, and offloading settings. These management operations should be restricted to users with the tenant admin role or super user role. This issue affects Apache Pulsar versions from 2.7.1 to 2.10.5, from 2.11.0 to 2.11.3, from 3.0.0 to 3.0.2, from 3.1.0 to 3.1.2, and 3.2.0. 2.10 Apache Pulsar users should upgrade to at least 2.10.6. 2.11 Apache Pulsar users should upgrade to at least 2.11.4. 3.0 Apache Pulsar users should upgrade to at least 3.0.3. 3.1 Apache Pulsar users should upgrade to at least 3.1.3. 3.2 Apache Pulsar users should upgrade to at least 3.2.1. Users operating versions prior to those listed above should upgrade to the aforementioned patched versions or newer versions.

CVE-2024-28098 Affected Apache Pulsar Versions

5 component(s)
Fixed Versions:
3.2.13.1.33.0.32.11.42.10.6
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.pulsar:pulsar-broker
Maven
≥ 3.2.0
< 3.2.1
3.2.1
org.apache.pulsar:pulsar-broker
Maven
≥ 3.1.0
< 3.1.3
3.1.3
org.apache.pulsar:pulsar-broker
Maven
≥ 3.0.0
< 3.0.3
3.0.3
org.apache.pulsar:pulsar-broker
Maven
≥ 2.11.0
< 2.11.4
2.11.4
org.apache.pulsar:pulsar-broker
Maven
≥ 2.7.1
< 2.10.6
2.10.6

References

Frequently Asked Questions

What is CVE-2024-28098?
CVE-2024-28098 is a security vulnerability in Apache Pulsar involving Improper Authorization For Topic-Level Policy Management under CWE-863: Incorrect Authorization.
Which Apache Pulsar versions are affected?
Affected versions include releases prior to 3.2.1, 3.1.3, 3.0.3, 2.11.4, 2.10.6 across affected packages: org.apache.pulsar:pulsar-broker.
What version fixes CVE-2024-28098?
Upgrading to 3.2.1, 3.1.3, 3.0.3, 2.11.4, 2.10.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pulsar-broker affected?
Yes, org.apache.pulsar:pulsar-broker is affected in releases prior to 3.2.1, 3.1.3, 3.0.3, 2.11.4, 2.10.6. Upgrade your dependency to 3.2.1, 3.1.3, 3.0.3, 2.11.4, 2.10.6 or later.
What is the CVSS score of CVE-2024-28098?
CVE-2024-28098 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-28098?
CVE-2024-28098 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Maven dependencies for CVE-2024-28098?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.pulsar'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g627-r579-rw35",
  "modified" : "2025-02-13T19:07:58Z",
  "published" : "2024-03-12T21:30:59Z",
  "aliases" : [ "CVE-2024-28098" ],
  "summary" : "Apache Pulsar: Improper Authorization For Topic-Level Policy Management",
  "details" : "The vulnerability allows authenticated users with only produce or consume permissions to modify topic-level policies, such as retention, TTL, and offloading settings. These management operations should be restricted to users with the tenant admin role or super user role.\n\nThis issue affects Apache Pulsar versions from 2.7.1 to 2.10.5, from 2.11.0 to 2.11.3, from 3.0.0 to 3.0.2, from 3.1.0 to 3.1.2, and 3.2.0. \n\n2.10 Apache Pulsar users should upgrade to at least 2.10.6.\n2.11 Apache Pulsar users should upgrade to at least 2.11.4.\n3.0 Apache Pulsar users should upgrade to at least 3.0.3.\n3.1 Apache Pulsar users should upgrade to at least 3.1.3.\n3.2 Apache Pulsar users should upgrade to at least 3.2.1.\n\nUsers operating versions prior to those listed above should upgrade to the aforementioned patched versions or newer versions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.pulsar:pulsar-broker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.0"
      }, {
        "fixed" : "3.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.pulsar:pulsar-broker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.1.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.pulsar:pulsar-broker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.pulsar:pulsar-broker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.11.0"
      }, {
        "fixed" : "2.11.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.11.3"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.pulsar:pulsar-broker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.1"
      }, {
        "fixed" : "2.10.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.10.5"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-28098"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/pulsar"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/3m6923y3wxpdcs9346sjvt8ql9swqc2z"
  }, {
    "type" : "WEB",
    "url" : "https://pulsar.apache.org/security/CVE-2024-28098"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/03/12/12"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-13T20:40:35Z",
    "nvd_published_at" : "2024-03-12T19:15:48Z"
  }
}