Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-41571

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-41571
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:22 UTC · Revision 1

Source evidence

CVE-2021-41571

core-osv · Original source

Published 1 Feb 2022, 13:15 UTC

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.

osv:CVE-2021-41571
Complete source record
{
  "id": "4c590693234cc053ffa911b41ff7e71ce3d246bc82503bd10a12de6cbadc44f3",
  "url": "https://osv.dev/vulnerability/CVE-2021-41571",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-41571",
    "summary": "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.",
    "evidence": "osv:CVE-2021-41571",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-41571",
      "aliases": [
        "CVE-2021-41571",
        "GHSA-3whx-qrj5-hh2h"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/pulsar",
              "type": "GIT",
              "events": [
                {
                  "introduced": "653ef409e5a3e72d7a7917d45b54c46e7bff5c16"
                },
                {
                  "fixed": "28f141d968b6ccccaf22ab6f8882ae7d22007199"
                },
                {
                  "introduced": "b0c45952d063b754e387b3f9cbff279b9885b107"
                },
                {
                  "fixed": "d6c2667ea05339efd8aabf56fe667835b4fe76e9"
                },
                {
                  "introduced": "89ac98e4af363b09f2fe8e309539b0e35243aaee"
                },
                {
                  "last_affected": "89ac98e4af363b09f2fe8e309539b0e35243aaee"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:pulsar:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.6.0"
                      },
                      {
                        "fixed": "2.6.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:pulsar:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.7.0"
                      },
                      {
                        "fixed": "2.7.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:pulsar:2.8.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.8.0"
                      },
                      {
                        "last_affected": "2.8.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.8.0",
            "v2.7.3-candidate-1",
            "v2.8.0-candidate-3",
            "v2.8.0",
            "v2.7.2-candidate-1",
            "v2.7.2",
            "v2.7.1-candidate-1",
            "v2.7.1",
            "v2.6.3-candidate-2",
            "v2.6.3",
            "v2.6.3-candidate-1",
            "v2.7.0-candidate-2",
            "v2.7.0",
            "v2.6.2-candidate-2",
            "v2.6.2",
            "v2.6.2-candidate-1",
            "v2.6.1-candidate-1",
            "v2.6.1",
            "v2.6.0-candidate-1",
            "v2.6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41571.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:08.675218097Z",
      "provider": "osv",
      "references": [
        "https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr",
        "https://github.com/apache/pulsar/issues/11814",
        "https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-41571",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384893,
  "published_at": "2022-02-01T13:15:09.663+00:00"
}