CVE-2026-39396: OpenBao: Decompression Bomb via Unbounded Copy in OCI Plugin Extraction (DoS)
ExtractPluginFromImage() in OpenBao’s OCI plugin downloader extracts a plugin binary from a container image by streaming decompressed tar data via io.Copy with no upper bound on the number of bytes written.
An attacker who controls or compromises the OCI registry referenced in the victim’s configuration can serve a crafted image containing a decompression bomb that decompresses to an arbitrarily large file.
The SHA256 integrity check occurs after the full file is written to disk, meaning the hash mismatch is detected only after the damage (disk exhaustion) has already occurred. This allow the attacker to replace legit plugin image with no need to change its signature.
References
- github.com/advisories/GHSA-r65v-xgwc-g56j
- github.com/openbao/openbao
- github.com/openbao/openbao/commit/af576af5322c6552a017ad10fd76aa4f40fd021e
- github.com/openbao/openbao/pull/2941
- github.com/openbao/openbao/releases/tag/v2.5.3
- github.com/openbao/openbao/security/advisories/GHSA-r65v-xgwc-g56j
- nvd.nist.gov/vuln/detail/CVE-2026-39396
Code Behaviors & Features
Detect and mitigate CVE-2026-39396 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →