{"containers":{"cna":{"affected":[{"product":"Apache Pulsar","vendor":"Apache Software Foundation","versions":[{"lessThanOrEqual":"2.8.0","status":"affected","version":"Apache Pulsar","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"other":{"content":{"other":"moderate"},"type":"unknown"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","description":"CWE-863 Incorrect Authorization","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","shortName":"apache","dateUpdated":"2023-07-18T11:52:20.375Z"},"references":[{"tags":["x_refsource_MISC"],"url":"https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId"},{"tags":["x_refsource_MISC"],"url":"https://github.com/apache/pulsar/issues/11814"},{"tags":["x_refsource_MISC"],"url":"https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr"}],"source":{"defect":["https://github.com/apache/pulsar/issues/11814"],"discovery":"UNKNOWN"},"title":"Pulsar Admin API allows access to data from other tenants using getMessageById API","workarounds":[{"lang":"en","value":"If you are running Pulsar behind a proxy you can disable access to the REST API for the flawed API \n\n/admin/v2/non-persistent/{tenant}/{namespace}/{topic}/ledger/{ledgerId}/entry/{entryId}"}],"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2021-41571","STATE":"PUBLIC","TITLE":"Pulsar Admin API allows access to data from other tenants using getMessageById API"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache Pulsar","version":{"version_data":[{"version_affected":"<=","version_name":"Apache Pulsar","version_value":"2.8.0"},{"version_affected":"<=","version_name":"Apache Pulsar","version_value":"2.7.3 +1"},{"version_affected":"<=","version_name":"Apache Pulsar","version_value":"2.6.4 +1"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{"other":"moderate"}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-863 Incorrect Authorization"}]}]},"references":{"reference_data":[{"name":"https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId","refsource":"MISC","url":"https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId"},{"name":"https://github.com/apache/pulsar/issues/11814","refsource":"MISC","url":"https://github.com/apache/pulsar/issues/11814"},{"name":"https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr","refsource":"MISC","url":"https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr"}]},"source":{"defect":["https://github.com/apache/pulsar/issues/11814"],"discovery":"UNKNOWN"},"work_around":[{"lang":"en","value":"If you are running Pulsar behind a proxy you can disable access to the REST API for the flawed API \n\n/admin/v2/non-persistent/{tenant}/{namespace}/{topic}/ledger/{ledgerId}/entry/{entryId}"}]}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-04T03:15:29.204Z"},"title":"CVE Program Container","references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"https://pulsar.apache.org/admin-rest-api/#operation/getLastMessageId"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/apache/pulsar/issues/11814"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://lists.apache.org/thread/8n3k7pvyh4cf9q2jfzb6pb32ync6xlvr"}]}]},"cveMetadata":{"assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","assignerShortName":"apache","cveId":"CVE-2021-41571","datePublished":"2022-02-01T12:40:53.000Z","dateReserved":"2021-09-23T00:00:00.000Z","dateUpdated":"2024-08-04T03:15:29.204Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"}