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

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.78%, higher than 78% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-01T12:40:53.000Z
- Modified: 2026-06-17T04:08:40.220Z
- Also known as: GHSA-3whx-qrj5-hh2h
- Weaknesses: CWE-20, CWE-863
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Pulsar: from Apache Pulsar up to 2.8.0
- org.apache.pulsar:pulsar (Maven): up to 2.6.4; from 2.7.0 before 2.7.4; from 2.8.0 before 2.8.1
- apache pulsar: from 2.6.0 before 2.6.4; from 2.7.0 before 2.7.3; 2.8.0

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/apache/pulsar/issues/11814> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId> (patch, vendor-advisory, web)
- <https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr> (mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41571> (advisory)
- <https://github.com/apache/pulsar/pull/11852> (web)
- <https://github.com/apache/pulsar/pull/11912> (web)
- <https://github.com/apache/pulsar/pull/11913> (web)
- <https://github.com/apache/pulsar> (package)
- <https://github.com/apache/pulsar/releases/tag/v2.7.4> (web)
- <https://github.com/apache/pulsar/releases/tag/v2.8.1> (web)

## Sources

- CVE List: [CVE-2021-41571](https://www.cve.org/CVERecord?id=CVE-2021-41571), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3whx-qrj5-hh2h](https://github.com/advisories/GHSA-3whx-qrj5-hh2h), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-41571](https://nvd.nist.gov/vuln/detail/CVE-2021-41571), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41571 · Whole record: https://cve.day/CVE-2021-41571.json · Rebuilt by cve.day 2026-11-25T22:58:06.742Z
