CVE-2025-57848: Incorrect Default Permissions in Red Hat RHEL-8-CNV-4.12
A container privilege escalation flaw was found in certain Container-native Virtualization 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.
AI Analysis
Technical Summary
This vulnerability arises from incorrect default permissions on the /etc/passwd file in certain Container-native Virtualization images, allowing group-writable access. An attacker able to execute commands inside the container and belonging to the root group can exploit this to modify /etc/passwd, adding new users with arbitrary UIDs, including root, thus escalating privileges within the container. Red Hat rates this as moderate severity but notes that OpenShift's default multi-layered security posture, including restrictive SCC profiles and SELinux mandatory access controls, effectively prevent exploitation. The issue is specific to container environments and does not affect standard RHEL installations. Red Hat has released updated OpenShift Virtualization 4.19.14 images containing fixes for this vulnerability.
Potential Impact
If exploited, this vulnerability allows an attacker with local command execution and root group membership inside a container to escalate privileges to full root within that container by modifying /etc/passwd. This could compromise container integrity and confidentiality. However, OpenShift's default security mechanisms, such as SCC and SELinux, mitigate the risk by restricting container permissions and enforcing strict isolation. The vulnerability does not affect host systems or containers without the specific permissive configuration. No known exploits are reported in the wild.
Mitigation Recommendations
Red Hat OpenShift's default Security Context Constraints and SELinux policies effectively mitigate this vulnerability by restricting container permissions and preventing privilege escalation. Users should ensure they are running containers with the default or similarly restrictive SCC profiles. Red Hat has released updated OpenShift Virtualization 4.19.14 images that include fixes for this issue; applying these updates is recommended. For other container runtimes, users should evaluate their security controls on a case-by-case basis. No additional immediate action is required if using OpenShift with default security settings.
CVE-2025-57848: Incorrect Default Permissions in Red Hat RHEL-8-CNV-4.12
Description
A container privilege escalation flaw was found in certain Container-native Virtualization 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.
CVSS v3.1
Score 6.4medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from incorrect default permissions on the /etc/passwd file in certain Container-native Virtualization images, allowing group-writable access. An attacker able to execute commands inside the container and belonging to the root group can exploit this to modify /etc/passwd, adding new users with arbitrary UIDs, including root, thus escalating privileges within the container. Red Hat rates this as moderate severity but notes that OpenShift's default multi-layered security posture, including restrictive SCC profiles and SELinux mandatory access controls, effectively prevent exploitation. The issue is specific to container environments and does not affect standard RHEL installations. Red Hat has released updated OpenShift Virtualization 4.19.14 images containing fixes for this vulnerability.
Potential Impact
If exploited, this vulnerability allows an attacker with local command execution and root group membership inside a container to escalate privileges to full root within that container by modifying /etc/passwd. This could compromise container integrity and confidentiality. However, OpenShift's default security mechanisms, such as SCC and SELinux, mitigate the risk by restricting container permissions and enforcing strict isolation. The vulnerability does not affect host systems or containers without the specific permissive configuration. No known exploits are reported in the wild.
Mitigation Recommendations
Red Hat OpenShift's default Security Context Constraints and SELinux policies effectively mitigate this vulnerability by restricting container permissions and preventing privilege escalation. Users should ensure they are running containers with the default or similarly restrictive SCC profiles. Red Hat has released updated OpenShift Virtualization 4.19.14 images that include fixes for this issue; applying these updates is recommended. For other container runtimes, users should evaluate their security controls on a case-by-case basis. No additional immediate action is required if using OpenShift with default security settings.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- redhat
- Date Reserved
- 2025-08-21T14:40:40.822Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/errata/RHEA-2025:19904","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHEA-2025:21119","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHEA-2025:21677","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHEA-2025:22750","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHEA-2026:0511","vendor":"Red Hat"},{"url":"https://access.redhat.com/security/cve/CVE-2025-57848","vendor":"Red Hat"}]
Threat ID: 68fa8e34326f59cb11ee3240
Added to database: 10/23/2025, 20:21:08 UTC
Last enriched: 08/06/2026, 13:05:05 UTC
Last updated: 09/10/2026, 19:36:51 UTC
Views: 306
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.