The b2-sdk-python library contains a key disclosure vulnerability that can be exploited by local attackers through a time-of-check-time-of-use (TOCTOU) race condition. This vulnerability affects users of the SqliteAccountInfo format, while users of the InMemoryAccountInfo format are safe. The SqliteAccountInfo saves API keys and bucket name-to-id mapping in a local database file, which is initially world-readable and later altered to be private to the user. If the directory containing the file is readable by a local attacker, they can exploit the brief period between file creation and permission modification to read the sensitive information.