CVE-2024-29834: Apache Pulsar Improper Authorization For Namespace And Vulnerability
MODERATECVE-2024-29834 is a MODERATE (CVSS 6.4) improper authorization for namespace and vulnerability (CWE-863: Incorrect Authorization) affecting Apache Pulsar libraries in the Maven ecosystem. The issue involves improper authorization for namespace and topic management endpoints. Remediation is available by upgrading affected packages to version 3.0.4, 3.2.2.
CVE-2024-29834 at a Glance
Security Impact
CVSS: 6.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:C/C:L/I:L/A:N).
How to Fix CVE-2024-29834
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.
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-broker</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-broker</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-broker</artifactId>
<version>3.0.4</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-broker</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-broker</artifactId>
<version>3.2.2</version>
</dependency>
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-29834, 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.0.4), 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
CVE-2024-29834 Affected Apache Pulsar Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.pulsar:pulsar-broker
|
Maven |
≥ 2.7.1
≤ 2.10.6
|
|
|
org.apache.pulsar:pulsar-broker
|
Maven |
≥ 2.11.0
≤ 2.11.4
|
|
|
org.apache.pulsar:pulsar-broker
|
Maven |
≥ 3.0.0
< 3.0.4
|
3.0.4
|
|
org.apache.pulsar:pulsar-broker
|
Maven |
≥ 3.1.0
≤ 3.1.3
|
|
|
org.apache.pulsar:pulsar-broker
|
Maven |
≥ 3.2.0
< 3.2.2
|
3.2.2
|
References
Frequently Asked Questions
What is CVE-2024-29834?
Which Apache Pulsar versions are affected?
What version fixes CVE-2024-29834?
Is pulsar-broker affected?
What is the CVSS score of CVE-2024-29834?
What CWE is associated with CVE-2024-29834?
How can I check Maven dependencies for CVE-2024-29834?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7mg2-6c6v-342r",
"modified" : "2024-05-02T18:48:41Z",
"published" : "2024-04-02T21:30:27Z",
"aliases" : [ "CVE-2024-29834" ],
"summary" : "Apache Pulsar: Improper Authorization For Namespace and Topic Management Endpoints",
"details" : "This vulnerability allows authenticated users with produce or consume permissions to perform unauthorized operations on partitioned topics, such as unloading topics and triggering compaction. These management operations should be restricted to users with the tenant admin role or superuser role. An authenticated user with produce permission can create subscriptions and update subscription properties on partitioned topics, even though this should be limited to users with consume permissions. This impact analysis assumes that Pulsar has been configured with the default authorization provider. For custom authorization providers, the impact could be slightly different. Additionally, the vulnerability allows an authenticated user to read, create, modify, and delete namespace properties in any namespace in any tenant. In Pulsar, namespace properties are reserved for user provided metadata about the namespace.\n\nThis issue affects Apache Pulsar versions from 2.7.1 to 2.10.6, from 2.11.0 to 2.11.4, from 3.0.0 to 3.0.3, from 3.1.0 to 3.1.3, and from 3.2.0 to 3.2.1. \n\n3.0 Apache Pulsar users should upgrade to at least 3.0.4.\n3.1 and 3.2 Apache Pulsar users should upgrade to at least 3.2.2.\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:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.pulsar:pulsar-broker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.1"
}, {
"last_affected" : "2.10.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.pulsar:pulsar-broker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.11.0"
}, {
"last_affected" : "2.11.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.pulsar:pulsar-broker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.0.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.pulsar:pulsar-broker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"last_affected" : "3.1.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.pulsar:pulsar-broker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29834"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/pulsar/commit/6ffe667cddad3e959e02ce31fd09b2f9a439d50a"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/pulsar/commit/b51b74883fb66673161d0b73c6a7257d073c57a5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/pulsar"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/v0ltl94k9lg28qfr1f54hpkvvsjc5bj5"
}, {
"type" : "WEB",
"url" : "https://pulsar.apache.org/security/CVE-2024-29834"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/04/02/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-03T20:26:35Z",
"nvd_published_at" : "2024-04-02T20:15:09Z"
}
}