CVE ReportsCVE-2026-12565: Arbitrary File Write via Path Traversal in BBOT unarchive...
Vulnerability ID: CVE-2026-12565
CVSS Score: 5.3
Published: 2026-06-18
CVE-2026-12565 is a medium-severity path traversal (Zip-Slip) vulnerability within the internal unarchive module of the BBOT (Black Lantern Security) OSINT framework. The vulnerability exists due to a failure to validate target paths before extracting archives using host-level command-line utilities. This allows remote, unauthenticated attackers to write arbitrary files outside of the target extraction folder on environments running legacy versions of GNU tar.
Unauthenticated remote attackers can write arbitrary files and potentially achieve remote code execution via a directory traversal exploit in BBOT's unarchive module when executed on legacy platforms.
Post-2.8.4 patch release)Harden unarchive preload and add max extracted size limit
@@ -14,6 +14,8 @@ class unarchive(BaseInternalModule):
"author": "@domwhewell-sage",
}
+ _max_extracted_size = 1_000_000_000 # 1 GB
+
async def setup(self):
...
@@ -82,6 +84,14 @@ async def extract_file(self, path, output_dir):
command = [s.format(filename=path, extract_dir=output_dir) for s in cmd_list]
try:
await self.run_process(command, check=True)
+ extracted_size = sum(f.stat().st_size for f in output_dir.rglob("*") if f.is_file())
+ if extracted_size > self._max_extracted_size:
+ self.helpers.rm_rf(output_dir)
+ self.warning(
+ f"Extracted size {extracted_size:,} bytes exceeds limit "
+ f"({self._max_extracted_size:,} bytes), removing {output_dir}"
+ )
+ return False
Remediation Steps:
Read the full report for CVE-2026-12565 on our website for more details including interactive diagrams and full exploit analysis.