{"id":"CVE-2026-45380","aliases":["CVE-2026-45380"],"related":[],"kind":"vulnerability","state":"published","title":"bit7z: Path Traversal via Null Byte Injection from `gcount()` Off-by-One in `restoreSymlink()`","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"bit7z es una biblioteca estática de C++ multiplataforma que permite la compresión/extracción de archivos de archivo. Antes de la versión 4.0.12, un error de un byte por uno en SafeOutPathBuilder::restoreSymlink() permite a un atacante crear un archivo .7z que, al ser extraído con bit7z en cualquier plataforma que no sea Windows, crea un enlace simbólico que escapa del directorio de salida previsto. Las entradas de archivo subsiguientes extraídas a través de este enlace simbólico escriben archivos arbitrarios fuera del directorio de extracción con los permisos del proceso de extracción. Este problema ha sido parcheado en la versión 4.0.12.","source":"nvd"}],"published":"2026-06-10T20:00:24.177Z","modified":"2026-07-23T09:10:00.113Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","score":3.6,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","score":3.6,"rating":"LOW"}],"cwes":["CWE-22","CWE-193"],"affected":[{"ranges":[{"version":"< 4.0.12","status":"affected"}],"vendor":"rikyoz","product":"bit7z","source":"cvelist"}],"references":[{"url":"https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rikyoz/bit7z/releases/tag/v4.0.12","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-11T14:12:55.595Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45380","url":"https://www.cve.org/CVERecord?id=CVE-2026-45380","licence":"CVE Terms of Use","modified":"2026-06-11T14:13:00.096Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45380","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45380","licence":"Public domain","modified":"2026-07-23T09:10:00.113Z"}],"updatedAt":"2026-11-25T22:59:24.374Z","epss":{"score":0.00116,"percentile":0.01758,"date":"2026-12-01T12:00:22.000Z"}}