Home / Backblaze / b2-sdk-python / CVE-2022-23651
CVE-2022-23651: is it exploited, and which versions of Backblaze b2-sdk-python are affected and fixed?
CVE-2022-23651 is a time-of-check time-of-use race condition vulnerability in Backblaze b2-sdk-python. 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, 15:09 UTC). Affected: b2sdk before 1.14.1 (GitHub advisory GHSA-p867-fxfr-ph2w). Fixed in 1.14.1 (GitHub advisory GHSA-p867-fxfr-ph2w). Severity: Medium (4.7, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:50 UTC.
What is CVE-2022-23651?
b2-sdk-python TOCTOU application key disclosure
b2-sdk-python is a python library to access cloud storage provided by backblaze. Linux and Mac releases of the SDK version 1.14.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. SDK users of the SqliteAccountInfo format are vulnerable while users of the InMemoryAccountInfo format are safe. The SqliteAccountInfo 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 first created, the file is world readable and is (typically a few milliseconds) later altered to be private to the user. If the directory containing the file is readable by a local attacker 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. Consumers of this SDK who rely on it to save data using SqliteAccountInfo class should upgrade to the latest version of the SDK. Those who believe a local user might have opened a handle using this race condition, should remove the affected database files and regenerate all application keys. Users should upgrade to b2-sdk-python 1.14.1 or later.
From the CVE record by GitHub_M, last updated April 23, 2025, 19:00 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Backblaze | b2-sdk-python | < 1.14.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?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | b2sdk | < 1.14.1 | 1.14.1 | GHSA-p867-fxfr-ph2w |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 4, 2024. Summary: b2-sdk-python TOCTOU application key disclosure.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| backblaze | b2 python software development kit | through 1.14.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:30 UTC.
How severe is CVE-2022-23651?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.7 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N | GitHub_M |
| Medium 4.7 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N | NVD |
| Low 1.9 | CVSS 2.0 | AV:L/AC:M/Au:N/C:P/I:N/A:N | NVD |
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-23651 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.22% probability of exploitation activity in the next 30 days, percentile 13.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Where are the vendor advisories and references?
- https://github.com/Backblaze/b2-sdk-python/security/advisories/GHSA-p867-fxfr-ph2w x_refsource_CONFIRM
- https://github.com/Backblaze/b2-sdk-python/commit/62476638986e5b6d7459aca5ef8ce220760226e0 x_refsource_MISC
- https://pypi.org/project/b2sdk/ x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 19, 2022
- Published
- February 23, 2022, 22:50 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, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2022-23651
Is CVE-2022-23651 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.22% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Backblaze b2-sdk-python are affected by CVE-2022-23651?
b2sdk before 1.14.1, per the GitHub advisory GHSA-p867-fxfr-ph2w. The tables above give every range the sources list.
Which version fixes CVE-2022-23651?
1.14.1, per the GitHub advisory GHSA-p867-fxfr-ph2w. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-23651?
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-23651?
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.