CVEBrief

Home / Backblaze / B2_Command_Line_Tool / CVE-2022-23653

CVE-2022-23653: is it exploited, and which versions of Backblaze B2_Command_Line_Tool are affected and fixed?

CVE-2022-23653 is a time-of-check time-of-use race condition vulnerability in Backblaze B2_Command_Line_Tool. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: b2 before 3.2.1 (GitHub advisory GHSA-8wr4-2wm6-w3pr). Fixed in 3.2.1 (GitHub advisory GHSA-8wr4-2wm6-w3pr). Severity: Medium (4.7, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:50 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 11:38 UTC
Affected
b2 before 3.2.1
GitHub advisory GHSA-8wr4-2wm6-w3pr
Fixed in
3.2.1
GitHub advisory GHSA-8wr4-2wm6-w3pr
Severity
Medium 4.7
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
0.21% in 30 days
higher than 12% of CVEs; FIRST, December 2, 2026

What is CVE-2022-23653?

B2 Command Line Tool TOCTOU application key disclosure

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.

From the CVE record by GitHub_M, last updated April 23, 2025, 19:00 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
BackblazeB2_Command_Line_Tool< 3.2.1

As the CVE record by GitHub_M states it, last updated April 23, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
PyPIb2< 3.2.13.2.1GHSA-8wr4-2wm6-w3pr

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 4, 2024. Summary: B2 Command Line Tool TOCTOU application key disclosure.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
backblazeb2 command line toolthrough 3.2.0application

NVD analysis (status Modified), last modified June 17, 2026, 04:30 UTC.

How severe is CVE-2022-23653?

ScoreVersionVectorSource
Medium 4.7CVSS 3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NGitHub_M
Medium 4.7CVSS 3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NNVD
Low 1.9CVSS 2.0AV:L/AC:M/Au:N/C:P/I:N/A:NNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2022-23653 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, April 23, 2025)
EPSS
0.21% probability of exploitation activity in the next 30 days, percentile 11.8 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
January 19, 2022
Published
February 23, 2022, 23:05 UTC
CVE record updated
April 23, 2025, 19:00 UTC by GitHub_M
NVD
Modified, last modified June 17, 2026, 04:30 UTC
Last checked
CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:50 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

Questions about CVE-2022-23653

Is CVE-2022-23653 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.21% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Backblaze B2_Command_Line_Tool are affected by CVE-2022-23653?

b2 before 3.2.1, per the GitHub advisory GHSA-8wr4-2wm6-w3pr. The tables above give every range the sources list.

Which version fixes CVE-2022-23653?

3.2.1, per the GitHub advisory GHSA-8wr4-2wm6-w3pr. Check the vendor's advisory before you rely on it.

How severe is CVE-2022-23653?

Medium (4.7, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2022-23653?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.