# CVE-2021-41571: Pulsar Admin API allows access to data from other tenants using getMessageById API

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-02-01 · Modified: 2024-08-04
- Aliases: GHSA-3whx-qrj5-hh2h
- Record: https://cvemate.com/vulnerability/CVE-2021-41571 · JSON: https://cvemate.com/vulnerability/CVE-2021-41571/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.783%, percentile 79.052%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- apache software foundation apache pulsar: ≥ Apache Pulsar, ≤ 2.8.0
- apache pulsar: ≥ 2.6.0, \< 2.6.4 \| ≥ 2.7.0, \< 2.7.3 \| 2.8.0
- org.apache.pulsar pulsar (Maven): ≤ 2.6.4 \| ≥ 2.7.0, \< 2.7.4 \| ≥ 2.8.0, \< 2.8.1

## References

- <https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId>
- <https://github.com/apache/pulsar/issues/11814>
- <https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41571>
- <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>
- <https://github.com/apache/pulsar/releases/tag/v2.7.4>
- <https://github.com/apache/pulsar/releases/tag/v2.8.1>

---

Data as of 2026-12-05T03:31:56.424Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
