Pulsar Admin API allows access to data from other tenants using getMessageById API
Published Feb 1, 2022
6.5
MEDIUMCVSS 3.1
EPSS 1.73%
Description
In Apache Pulsar it is possible to access data from BookKeeper that does not belong to the topics accessible by the authenticated user. The Admin API get-message-by-id requires the user to input a topic and a ledger id. The ledger id is a pointer to the data, and it is supposed to be a valid it for the topic. Authorisation controls are performed against the topic name and there is not proper validation the that ledger id is valid in the context of such ledger. So it may happen that the user is able to read from a ledger that contains data owned by another tenant. This issue affects Apache Pulsar Apache Pulsar version 2.8.0 and prior versions; Apache Pulsar version 2.7.3 and prior versions; Apache Pulsar version 2.6.4 and prior versions.
Affected products
-
- Version Apache PulsarStatusaffectedConstraints<=2.8.0
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Apache Software Foundation | Apache Pulsar | n/a |
|
No data.
Red Hat Integration Camel K 1
pulsar-client-admin
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Integration Camel K 1 | pulsar-client-admin | Affected | n/a |
No package ranges for this CVE.
Remediation
Vendor solution
If you are running Pulsar behind a proxy you can disable access to the REST API for the flawed API
/admin/v2/non-persistent/{tenant}/{namespace}/{topic}/ledger/{ledgerId}/entry/{entryId}
References (14)
- https://access.redhat.com/security/cve/CVE-2021-41571 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2048682 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0797 Advisory
- https://github.com/advisories/GHSA-3whx-qrj5-hh2h Advisory
- https://github.com/apache/pulsar/issues/11814 x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory
- https://github.com/apache/pulsar/pull/11852
- https://github.com/apache/pulsar/pull/11912
- https://github.com/apache/pulsar/pull/11913
- https://github.com/apache/pulsar/releases/tag/v2.7.4
- https://github.com/apache/pulsar/releases/tag/v2.8.1
- https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr x_refsource_MISCMailing ListVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-41571
- https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId x_refsource_MISCPatchVendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2021-41571
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2021-41571 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2048682 | Issue Tracking | |
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0797 | Advisory | |
| https://github.com/advisories/GHSA-3whx-qrj5-hh2h | Advisory | |
| https://github.com/apache/pulsar/issues/11814 | x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory | |
| https://github.com/apache/pulsar/pull/11852 | ||
| https://github.com/apache/pulsar/pull/11912 | ||
| https://github.com/apache/pulsar/pull/11913 | ||
| https://github.com/apache/pulsar/releases/tag/v2.7.4 | ||
| https://github.com/apache/pulsar/releases/tag/v2.8.1 | ||
| https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr | x_refsource_MISCMailing ListVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41571 | ||
| https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId | x_refsource_MISCPatchVendor Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2021-41571 |
Change history (0)
No recorded changes yet.