{"api_version":"1","generated_at":"2026-07-23T15:30:40+00:00","cve":"CVE-2022-23651","urls":{"html":"https://cve.report/CVE-2022-23651","api":"https://cve.report/api/cve/CVE-2022-23651.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23651","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23651"},"summary":{"title":"CVE-2022-23651","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-02-23 23:15:00","updated_at":"2022-03-07 16:11:00"},"problem_types":["CWE-367"],"metrics":[],"references":[{"url":"https://github.com/Backblaze/b2-sdk-python/commit/62476638986e5b6d7459aca5ef8ce220760226e0","name":"https://github.com/Backblaze/b2-sdk-python/commit/62476638986e5b6d7459aca5ef8ce220760226e0","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-p867-fxfr-ph2w · Backblaze/b2-sdk-python@6247663 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/Backblaze/b2-sdk-python/security/advisories/GHSA-p867-fxfr-ph2w","name":"https://github.com/Backblaze/b2-sdk-python/security/advisories/GHSA-p867-fxfr-ph2w","refsource":"CONFIRM","tags":[],"title":"b2-sdk-python TOCTOU application key disclosure  · Advisory · Backblaze/b2-sdk-python · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pypi.org/project/b2sdk/","name":"https://pypi.org/project/b2sdk/","refsource":"MISC","tags":[],"title":"b2sdk · PyPI","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23651","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23651","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"23651","vulnerable":"1","versionEndIncluding":"1.14.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"backblaze","cpe5":"b2_python_software_development_kit","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"linux","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23651","vulnerable":"1","versionEndIncluding":"1.14.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"backblaze","cpe5":"b2_python_software_development_kit","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"mac","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-23651","STATE":"PUBLIC","TITLE":"b2-sdk-python TOCTOU application key disclosure"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"b2-sdk-python","version":{"version_data":[{"version_value":"< 1.14.1"}]}}]},"vendor_name":"Backblaze"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4.7,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition"}]}]},"references":{"reference_data":[{"name":"https://github.com/Backblaze/b2-sdk-python/security/advisories/GHSA-p867-fxfr-ph2w","refsource":"CONFIRM","url":"https://github.com/Backblaze/b2-sdk-python/security/advisories/GHSA-p867-fxfr-ph2w"},{"name":"https://github.com/Backblaze/b2-sdk-python/commit/62476638986e5b6d7459aca5ef8ce220760226e0","refsource":"MISC","url":"https://github.com/Backblaze/b2-sdk-python/commit/62476638986e5b6d7459aca5ef8ce220760226e0"},{"name":"https://pypi.org/project/b2sdk/","refsource":"MISC","url":"https://pypi.org/project/b2sdk/"}]},"source":{"advisory":"GHSA-p867-fxfr-ph2w","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-02-23 23:15:00","lastModifiedDate":"2022-03-07 16:11:00","problem_types":["CWE-367"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4.7,"baseSeverity":"MEDIUM"},"exploitabilityScore":1,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:P/I:N/A:N","accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":1.9},"severity":"LOW","exploitabilityScore":3.4,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:backblaze:b2_python_software_development_kit:*:*:*:*:*:linux:*:*","versionEndIncluding":"1.14.0","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:backblaze:b2_python_software_development_kit:*:*:*:*:*:mac:*:*","versionEndIncluding":"1.14.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"23651","Ordinal":"226432","Title":"CVE-2022-23651","CVE":"CVE-2022-23651","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"23651","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}