---
id: CVE-2026-100837
title: >-
  Contrast (Edgeless Systems) through 1.20.0 performs unanchored suffix matching
  when selecting per-registry configuration in the imagepuller
summary: >-
  Contrast (Edgeless Systems) through 1.20.0 performs unanchored suffix matching
  when selecting per-registry configuration in the imagepuller.
  Config.registryFor strips a single trailing dot and then uses
  strings.HasSuffix(hostname, fqdn) …
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-1289
vendor: edgelesssys
product: contrast
affected:
  - contrast <= 1.20.0
published: '2026-09-27'
updated: '2026-09-27'
sourceUpdated: '2026-09-27T02:17:21.937'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-100837'
references:
  - url: >-
      https://github.com/edgelesssys/contrast/security/advisories/GHSA-6c87-g9pw-78fx
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/edgeless-systems-contrast-through-1.20.0-credential-leak-via-registry-suffix-matching
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-27T02:41:45.571Z'
---

## Overview

Contrast (Edgeless Systems) through 1.20.0 performs unanchored suffix matching when selecting per-registry configuration in the imagepuller. Config.registryFor strips a single trailing dot and then uses strings.HasSuffix(hostname, fqdn) without requiring a DNS label boundary, so a registry entry such as [registries."ghcr.io."] is also applied to any host whose name merely ends in that byte sequence, including attacker-registered domains such as evilghcr.io. When an image or layer is pulled from such a sibling domain, the imagepuller sends the configured Authorization header (basic auth, registry token, or identity token), trusts the configured custom CA bundle, follows the configured mirror, and honours insecure-skip-verify (disabling TLS verification) for that host. Image integrity is not affected, as image bytes remain pinned by digest in the policy and are validated after the pull. Configurations that use a leading dot (e.g., [registries.".example.registry"]) are unaffected.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
