{"api_version":"1","generated_at":"2026-06-11T18:48:27+00:00","cve":"CVE-2026-45380","urls":{"html":"https://cve.report/CVE-2026-45380","api":"https://cve.report/api/cve/CVE-2026-45380.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-45380","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-45380"},"summary":{"title":"bit7z: Path Traversal via Null Byte Injection from `gcount()` Off-by-One in `restoreSymlink()`","description":"bit7z is a cross-platform C++ static library that allows the compression/extraction of archive files. Prior to version 4.0.12, a one-byte off-by-one error in SafeOutPathBuilder::restoreSymlink() allows an attacker to craft a .7z archive that, when extracted with bit7z on any non-Windows platform, creates a symlink escaping the intended output directory. Subsequent archive entries extracted through this symlink write arbitrary files outside the extraction directory with the permissions of the extracting process. This issue has been patched in version 4.0.12.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-06-10 22:16:58","updated_at":"2026-06-11 16:16:23"},"problem_types":["CWE-22","CWE-193","CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","CWE-193 CWE-193: Off-by-one Error"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"3.6","severity":"LOW","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","baseScore":3.6,"baseSeverity":"LOW","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"LOW"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"3.6","severity":"LOW","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","data":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":3.6,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1"}}],"references":[{"url":"https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v","name":"https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v","refsource":"134c704f-9b21-4f2e-91b3-4a467353bcc0","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/rikyoz/bit7z/releases/tag/v4.0.12","name":"https://github.com/rikyoz/bit7z/releases/tag/v4.0.12","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-45380","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45380","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"rikyoz","product":"bit7z","version":"affected < 4.0.12","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-45380","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-06-11T14:12:55.595820Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-06-11T14:13:00.096Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"references":[{"tags":["exploit"],"url":"https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v"}],"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"product":"bit7z","vendor":"rikyoz","versions":[{"status":"affected","version":"< 4.0.12"}]}],"descriptions":[{"lang":"en","value":"bit7z is a cross-platform C++ static library that allows the compression/extraction of archive files. Prior to version 4.0.12, a one-byte off-by-one error in SafeOutPathBuilder::restoreSymlink() allows an attacker to craft a .7z archive that, when extracted with bit7z on any non-Windows platform, creates a symlink escaping the intended output directory. Subsequent archive entries extracted through this symlink write arbitrary files outside the extraction directory with the permissions of the extracting process. This issue has been patched in version 4.0.12."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":3.6,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-193","description":"CWE-193: Off-by-one Error","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-06-10T20:00:24.177Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v","tags":["x_refsource_CONFIRM"],"url":"https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v"},{"name":"https://github.com/rikyoz/bit7z/releases/tag/v4.0.12","tags":["x_refsource_MISC"],"url":"https://github.com/rikyoz/bit7z/releases/tag/v4.0.12"}],"source":{"advisory":"GHSA-8wj8-9jwv-j24v","discovery":"UNKNOWN"},"title":"bit7z: Path Traversal via Null Byte Injection from `gcount()` Off-by-One in `restoreSymlink()`"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-45380","datePublished":"2026-06-10T20:00:24.177Z","dateReserved":"2026-05-12T00:51:29.086Z","dateUpdated":"2026-06-11T14:13:00.096Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-06-10 22:16:58","lastModifiedDate":"2026-06-11 16:16:23","problem_types":["CWE-22","CWE-193","CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","CWE-193 CWE-193: Off-by-one Error"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","baseScore":3.6,"baseSeverity":"LOW","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"LOW"},"exploitabilityScore":1,"impactScore":2.5}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"45380","Ordinal":"1","Title":"bit7z: Path Traversal via Null Byte Injection from `gcount()` Of","CVE":"CVE-2026-45380","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"45380","Ordinal":"1","NoteData":"bit7z is a cross-platform C++ static library that allows the compression/extraction of archive files. Prior to version 4.0.12, a one-byte off-by-one error in SafeOutPathBuilder::restoreSymlink() allows an attacker to craft a .7z archive that, when extracted with bit7z on any non-Windows platform, creates a symlink escaping the intended output directory. Subsequent archive entries extracted through this symlink write arbitrary files outside the extraction directory with the permissions of the extracting process. This issue has been patched in version 4.0.12.","Type":"Description","Title":"bit7z: Path Traversal via Null Byte Injection from `gcount()` Of"}]}}}