# CVE-2026-82976: Image-customization-controller: unauthenticated plaintext image server with directory listing exposes ignition images containing cluster pull secret

- Severity: High 7.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-11-03T18:36:24.334Z
- Modified: 2026-11-30T21:17:33.520Z
- Weaknesses: CWE-548
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A flaw was found in the image-customization-controller used in OpenShift's bare metal provisioning stack. The controller registers an HTTP file server on port 8084 with no authentication. The custom imageFileSystem implementation exposes a browsable HTML directory listing of all registered images at the root path. The only access control on per-host images is the random UUID filename; the directory listing discloses those UUIDs to any caller on the provisioning network. Each served image embeds an Ignition config containing the base64-encoded cluster pull secret, optional IRONIC_RAMDISK_SSH_KEY, proxy settings, and per-host NetworkManager keyfiles. An adjacent network attacker can enumerate all image UUIDs via directory listing, download any image, extract the embedded Ignition config, and recover the cluster pull secret and SSH key.

### Evidence
**pkg/imagehandler/imagefilesystem.go — root directory is browsable and enumerates all UUID image names**
```go
func (f *imageFileSystem) Readdir(n int) ([]fs.FileInfo, error) {
    f.mu.Lock()
    defer f.mu.Unlock()
    result := []fs.FileInfo{}
    for _, im := range f.images {
        result = append(result, im)
    }
    return result, nil
}

func (f *imageFileSystem) Open(name string) (http.File, error) {
    f.log.Info("Open", "path", name)
    if name == "/" {
        return f, nil
    }
    ...
```

**cmd/controller/main.go — file server bound on all interfaces without auth or TLS**
```go
http.Handle("/", http.FileServer(imageServer.FileSystem()))

go func() {
    server := &http.Server{
        Addr:              imagesBindAddr,   // default ":8084"
        ReadHeaderTimeout: 5 * time.Second,
    }
    err := server.ListenAndServe()
```

**pkg/ignition/service_config.go:94-100 — pull secret is embedded in every served image**
```go
func (b *ignitionBuilder) authFile() ignition_config_types_32.File {
    source := "data:;base64," + strings.TrimSpace(b.ironicAgentPullSecret)
    return ignition_config_types_32.File{
        Node: ignition_config_types_32.Node{Path: "/etc/authfile.json"},
        ...
```

### Attack Pattern
Adjacent provisioning-network client → GET / lists UUID image names → download ISO/initramfs → extract embedded Ignition → recover cluster pull secret and SSH key.

(As written by CVE List.)

## Affected

- openshift4/ose-image-customization-controller-rhel9: no versions given (not affected: from 1795217037 before *; from 1795249932 before *)
- openshift5/ose-image-customization-controller-rhel9: no versions given (not affected: from 1795582787 before *)
- openshift4/ose-image-customization-controller-rhel8: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2026:102899> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:102917> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:103453> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-82976> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2526334> (issue-tracking)
- <https://github.com/openshift/image-customization-controller>
- <https://redhat.atlassian.net/browse/OCPBUGS-105396>

## Sources

- CVE List: [CVE-2026-82976](https://www.cve.org/CVERecord?id=CVE-2026-82976), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-82976](https://nvd.nist.gov/vuln/detail/CVE-2026-82976), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-82976 · Whole record: https://cve.day/CVE-2026-82976.json · Rebuilt by cve.day 2026-11-30T21:32:13.408Z
