Apache Ranger: OS command injection in UnixUserGroupBuilder (CVE-2026-28672)
Apache Ranger versions 2.8.0 and earlier are vulnerable to OS command injection via the UnixUserGroupBuilder component when processing crafted usernames containing shell metacharacters.
CVE search metadata
CVE search record: CVE-2026-28672. Severity: critical. CVSS: 9.8. EPSS: 2.63%. KEV: no. Product: Ranger (<= 2.8.0). Brief: Apache Ranger: OS command injection in UnixUserGroupBuilder (CVE-2026-28672). Brief link: https://feed.craftedsignal.io/briefs/2026-10-apache-ranger-rce/
Triage facts
Revision 1- Applicability
- Ranger (<= 2.8.0)
- Evidence
- Unknown
- Severity
- High
- Action
- Immediate escalation
- Sources
- 3 public sources
- Freshness
- Revision 1Oct 25, 08:40 UTC
- Detection
- 1 rule
- Vulnerabilities
- 1 CVE
- Source quality
- B2Very likely
Apache Ranger versions 2.8.0 and earlier contain an OS command injection vulnerability (CVE-2026-28672) within the UnixUserGroupBuilder component of the user-sync (unixusersync) module. The vulnerability occurs because the application concatenates a username directly into a bash -c command string used to query group information. An attacker who can influence the synchronized username (e.g., via LDAP, Active Directory, or file-based sync sources) can inject shell metacharacters to execute arbitrary commands with the privileges of the Ranger user-sync process.
Attack Chain
- Attacker identifies an accessible user-sync source (LDAP, AD, or file) that Apache Ranger monitors.
- Attacker injects a malicious username containing shell metacharacters (e.g.,
username; command) into the user-sync source. - The
UnixUserGroupBuildercomponent fetches the malicious username from the source. - The application constructs a command string:
id -G [malicious_username]. - The application executes the string via
Runtime.getRuntime().exec(new String[]{"bash", "-c", ...}). - The shell interprets the metacharacters and executes the attacker-supplied command.
Impact
Successful exploitation allows for arbitrary command execution on the host system running the Apache Ranger user-sync service, typically resulting in full compromise of the user-sync host.
Recommendation
- Upgrade Apache Ranger to version 2.9.0 or later, which executes the
idcommand directly as an argument vector, preventing shell interpretation of the username. - Audit user-sync sources (LDAP/AD/File) for suspicious or unexpected usernames containing shell metacharacters (e.g.,
;,&,|,`,$). - Monitor the user-sync host for spawned child processes originating from the Ranger Java process that are not expected administrative tools (e.g.,
id).
Immediate actions
Upgrade Apache Ranger to 2.9.0
Threat Hunt
Audit Ranger user-sync logs for usernames containing shell metacharacters
Data: Application logs (Ranger user-sync module)
Mitigations
Upgrade to version 2.9.0
CVE-2026-28672
Detection coverage 1
Detect CVE-2026-28672 Exploitation - Suspicious Child Processes from Ranger
highDetects suspicious processes spawned by the Apache Ranger user-sync process, which indicates potential command injection exploitation.
Detection queries are available on the platform. Get full rules →