CVE-2025-58713

Rhpam: privilege escalation via excessive /etc/passwd permissions

Published Apr 8, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
A container privilege escalation flaw was found in certain Red Hat Process Automation Manager 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.

Analysis

AI-generated

Technical impact

The vulnerability arises because the /etc/passwd file is built with group‑writable permissions in Red Hat Process Automation Manager container images. An attacker who can run commands inside the container, even as a non‑root user, can take advantage of membership in the root group to modify this file. By adding a user entry with any arbitrary UID—including UID 0—the attacker gains full root privileges within the container. This is a classic privilege escalation flaw identified as CWE‑276.

Affected Systems

The flaw affects Red Hat Process Automation Manager 7 container images (Red Hat Process Automation 7). Specific patch or version numbers are not provided in the advisory. All images built from the affected factory that include the vulnerable /etc/passwd permissions are impacted.

Risk and Exploitability

The CVSS score is 6.4, indicating a moderate severity. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. Exploitability requires the attacker to already execute code inside the container, which is a significant but not trivial prerequisite. Once inside, the elevated privileges can be achieved with minimal effort, making the exploit highly valuable if the initial access is gained.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a fixed version of the Red Hat Process Automation Manager container image from Red Hat.
  • Ensure the container runs under the least privilege model and that no non‑root user has joinable membership in the root group.
  • Verify that the /etc/passwd file inside the container has permissions set to 644 and is not group writable.
  • Apply any vendor patches or updates as soon as they become available.
  • Implement runtime container security controls, such as seccomp and SELinux policies, to restrict file write operations.
  • Monitor container logs for unauthorized modifications to /etc/passwd or other critical configuration files.

Generated by OpenCVE AI on April 8, 2026 at 15:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat jboss Bpms
CPEs cpe:/a:redhat:jboss_enterprise_bpms_platform:7 cpe:/a:redhat:jboss_bpms:7
Vendors & Products Redhat jboss Bpms
Type Values Removed Values Added
First Time appeared Redhat process Automation Manager
CPEs cpe:2.3:a:redhat:process_automation_manager:7.0:*:*:*:*:*:*:*
Vendors & Products Redhat process Automation Manager
Type Values Removed Values Added
First Time appeared Redhat process Automation
Vendors & Products Redhat process Automation
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A container privilege escalation flaw was found in certain Red Hat Process Automation Manager 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.
Title Rhpam: privilege escalation via excessive /etc/passwd permissions
First Time appeared Redhat
Redhat jboss Enterprise Bpms Platform
Weaknesses CWE-276
CPEs cpe:/a:redhat:jboss_enterprise_bpms_platform:7
Vendors & Products Redhat
Redhat jboss Enterprise Bpms Platform
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-276

    Incorrect Default Permissions

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 5, 2026, 4:33 PM
Reserved
Sep 3, 2025, 3:20 PM
Status
Analyzed
Published
Apr 8, 2026, 2:16 PM
Modified
Nov 5, 2026, 5:17 PM
Severity
Moderate
Public date
Apr 8, 2026, 1:44 PM