Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2022-23653
backblaze b2 command line tool

Score4.7 Medium
CVSS 3.1
Exploit probability (EPSS)0.22%
within the next 30 days
CategoryRace condition & concurrency
Published23 February 2022
Last modified: 17 June 2026

In short

This vulnerability can be exploited with local access to the device, with a regular user account, without any user interaction.

A successful attack has high impact: reading confidential data.

Special conditions are required for a successful attack, which makes exploitation harder.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

B2 Command Line Tool is the official command line tool for the backblaze cloud storage service. Linux and Mac releases of the B2 command-line tool version 3.2.0 and below contain a key disclosure vulnerability that, in certain conditions, can be exploited by local attackers through a time-of-check-time-of-use (TOCTOU) race condition. The command line tool saves API keys (and bucket name-to-id mapping) in a local database file (`$XDG_CONFIG_HOME/b2/account_info`, `~/.b2_account_info` or a user-defined path) when `b2 authorize-account` is first run. This happens regardless of whether a valid key is provided or not. When first created, the file is world readable and is (typically a few milliseconds) later altered to be private to the user. If the directory is readable by a local attacker and the user did not yet run `b2 authorize-account` then during the brief period between file creation and permission modification, a local attacker can race to open the file and maintain a handle to it. This allows the local attacker to read the contents after the file after the sensitive information has been saved to it. Users that have not yet run `b2 authorize-account` should upgrade to B2 Command-Line Tool v3.2.1 before running it. Users that have run `b2 authorize-account` are safe if at the time of the file creation no other local users had read access to the local configuration file. Users that have run `b2 authorize-account` where the designated path could be opened by another local user should upgrade to B2 Command-Line Tool v3.2.1 and remove the database and regenerate all application keys. Note that `b2 clear-account` does not remove the database file and it should not be used to ensure that all open handles to the file are invalidated. If B2 Command-Line Tool cannot be upgraded to v3.2.1 due to a dependency conflict, a binary release can be used instead. Alternatively a new version could be installed within a virtualenv, or the permissions can be changed to prevent local users from opening the database file.

CVSS: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Weakness: CWE-367

Affected products

VendorProductVersions
backblazeb2 command line tool<=3.2.0

Sources

Latest in the same category

  • CVE-2026-139905 High 7.3
    Intego NetUpdate through X9 contains a time-of-check time-of-use race condition that allows local unprivileged users to escalate privileges by replacing a verified update package before root installation. Attackers can…
    Race condition & concurrency · 30 November 2026
  • CVE-2026-139884 Medium 4.4
    Kudu before 1.48.0 contains a time-of-check time-of-use race condition in the File Shredder feature that allows local unprivileged users to overwrite and delete arbitrary files with elevated privileges. Attackers who…
    Race condition & concurrency · 30 November 2026
  • CVE-2026-102961 Medium 5.9
    Zephyr's IPv6, IPv4 and IEEE 802.15.4 (6LoWPAN) fragment reassembly implementations each keep a global reassembly cache that two threads modify with no synchronization. In the IPv6 code in…
    Race condition & concurrency · 29 November 2026
  • CVE-2026-138030 Low 2.3
    SylphxAI pdf-reader-mcp 2.4.1 through 3.0.14, 3.0.16, and 3.1.2 through 3.1.4 contains a server-side request forgery vulnerability in its PDF URL loader, which validates the resolved address but does not pin it for…
    Race condition & concurrency · 27 November 2026
  • CVE-2026-81053 Medium 6.7
    Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') vulnerability. A low privileged remote…
    Race condition & concurrency · 27 November 2026
  • CVE-2026-80504 Medium 5.3
    Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') vulnerability. A low privileged local…
    Race condition & concurrency · 27 November 2026