Bug 2387265 (CVE-2025-8766)

Summary: CVE-2025-8766 noobaa-core: Excessive permissions of /etc could lead to escalation of privilege in the noobaa-core container
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: manissin, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
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
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Deadline: 2026-03-13   

Description OSIDB Bzimport 2025-08-08 16:12:35 UTC
noobaa-core sets the entire /etc dir to 664. Allowing a user in the container to modify system files, including /etc/passwd. This could lead to an exscalation of privilege within the container or impact the integrity of processes within the container.

https://github.com/noobaa/noobaa-core/blame/23e67498e7f72f220c9aec8c1c671bff07d38d13/src/deploy/NVA_build/setup_platform.sh#L115