---
id: CVE-2025-8766
title: >-
  A container privilege escalation flaw was found in certain Multi-Cloud Object
  Gateway Core images
summary: >-
  A container privilege escalation flaw was found in certain Multi-Cloud Object
  Gateway Core images. This issue stems from the /etc/passwd file being created
  with group-writable permissions during build time. In certain conditions, an
  atta…
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-276
  - CWE-276
vendor: redhat
product: openshift_data_foundation
affected:
  - openshift_data_foundation = 4.0
published: '2026-03-13'
updated: '2026-07-09'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-8766'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:37387'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-8766'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2387265'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-8766'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2387265'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-8766.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
epss: 0.00165
epssPercentile: 0.06169
ingestedAt: '2026-07-10T01:55:22.958Z'
---

## Overview

A container privilege escalation flaw was found in certain Multi-Cloud Object Gateway Core images. This issue stems from the /etc/passwd file being created with group-writable permissions during build time. In certain conditions, an attacker who can execute commands within an affected container, even as a non-root user, can leverage their membership in the root group to modify the /etc/passwd file. This could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container

## Affected

- `openshift_data_foundation = 4.0`

## Remediation

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