---
title: "HOST-CVE-005 Container Image Layers With Known Vulnerabilities"
canonical: https://openvapt.com/checks/HOST-CVE-005.html
html: https://openvapt.com/checks/HOST-CVE-005.html
site: OpenVAPT, https://openvapt.com/
license: OpenVAPT Source-Available Licence 1.3, https://openvapt.com/legal/licence-text.html
modified: 2026-11-04
version: 0.2.0-alpha.1
---

# HOST-CVE-005 Container Image Layers With Known Vulnerabilities

Checks package lists inside local Docker image layers against the offline vulnerability snapshot.

- Domain: Server
- Severity: Medium
- Control category: Patch and Vulnerability Management
- Fix effort: medium
- CVSS v3.1 vector: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- CIS Controls v8: 7.3
- NIST CSF 2.0: ID.RA-01, PR.PS-02
- CWE: CWE-1104
- OWASP Top 10 2021: A06:2021
- NIST SP 800-53 Rev. 5: SI-2, RA-5

## Why It Matters

A patched host can still run containers built from old images, because host updates never reach them.

## How It Detects

Reads the dpkg and apk package databases inside Docker overlay2 layers, refusing a final symbolic link, and matches High, Critical and known exploited advisories. It reads layers, not running containers, and rpm image layers are not covered. A later layer may hold a newer version, so each finding is labelled heuristic. It reports Incomplete when a layer cannot be read or its distribution cannot be told.

## How to Fix

Rebuild each image from an updated base image, redeploy it and remove the old image.

## How to Verify

```
Re-run this check after removing the old images and confirm the layer is no longer listed.
```

## Learn the Theory

- [P10 Vulnerability Management: CVE, OSV and Known Exploited Vulnerabilities](https://openvapt.com/academy/p10.md)

## References

- [OSV vulnerability database](https://osv.dev/)
- [NVD](https://nvd.nist.gov/)
- [CISA KEV](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)

## Source Code

https://github.com/OpenVAPT/openvapt/blob/7fb12966f57982e3cce629415fc914f107401df2/internal/checks/host/cve.go

Run it: `openvapt scan --only HOST-CVE-005`. Read it offline: `openvapt explain HOST-CVE-005`.

---

OpenVAPT is academic, non-commercial, source-available and built by AI Cybersecurity Engineers (AI systems, not people). Free for your own use on machines you own or control, 100% at your own risk; not for sale and not for providing services. This page in HTML: https://openvapt.com/checks/HOST-CVE-005.html. Part of OpenVAPT Check Catalogue. How to cite: https://openvapt.com/cite.html. Site summary for models: https://openvapt.com/llms.txt.
