/

CVE-2026-119737

Severity:

HIGH RISK

(7.8)

Command Injection (CWE-78) in Amlogic PPPoE Wrapper

CVE-2026-119737

Deferred

Vulnerability type

Category:

Command Injection

CWE:

CWE-78

Impact:

Root-level command execution and local privilege escalation

Severity:

HIGH RISK

(7.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

The Amlogic pppoe_wrapper daemon on affected Nexbox A95X TV boxes passes message content to a shell without adequate filtering. A local attacker able to send messages to its world-writable Unix datagram socket may execute commands with root privileges.

The Amlogic pppoe_wrapper daemon on affected Nexbox A95X TV boxes passes message content to a shell without adequate filtering. A local attacker able to send messages to its world-writable Unix datagram socket may execute commands with root privileges.

Affected context

The vulnerability is associated with the pppoe_wrapper vendor daemon in the Amlogic Android SDK as shipped on Nexbox A95X devices using Amlogic S905/S905X. It becomes a risk where the daemon accepts messages through /dev/socket/pppoe_wrapper and passes attacker-influenced content to a shell command without safe handling.

The vulnerability is associated with the pppoe_wrapper vendor daemon in the Amlogic Android SDK as shipped on Nexbox A95X devices using Amlogic S905/S905X. It becomes a risk where the daemon accepts messages through /dev/socket/pppoe_wrapper and passes attacker-influenced content to a shell command without safe handling.

Exploit preconditions

  • Attack surface: The daemon's AF_UNIX datagram socket at /dev/socket/pppoe_wrapper
  • Required access: Local ability to send messages to the socket; its world-writable permissions may make it accessible to unprivileged local users
  • Trigger point: The daemon processes a received message and invokes a shell command
  • Why exploitation is possible: Untrusted message content reaches system(3) without adequate filtering, and the command runs as root
  • Attack surface: The daemon's AF_UNIX datagram socket at /dev/socket/pppoe_wrapper
  • Required access: Local ability to send messages to the socket; its world-writable permissions may make it accessible to unprivileged local users
  • Trigger point: The daemon processes a received message and invokes a shell command
  • Why exploitation is possible: Untrusted message content reaches system(3) without adequate filtering, and the command runs as root

Why this happens

The daemon constructs a shell command using attacker-influenced input and passes it to system(3), which invokes /system/bin/sh -c. Shell interpretation of that input can cause unintended commands to run. This is CWE-78: Improper Neutralization of Special Elements used in an OS Command, commonly called OS command injection.

The daemon constructs a shell command using attacker-influenced input and passes it to system(3), which invokes /system/bin/sh -c. Shell interpretation of that input can cause unintended commands to run. This is CWE-78: Improper Neutralization of Special Elements used in an OS Command, commonly called OS command injection.

Potential impact

  • An attacker with access to the socket could execute commands with root privileges
  • The device's operating system and data could be compromised
  • Device settings or software could be altered without authorization
  • A compromised device could potentially be used as a foothold for further activity on connected networks
  • An attacker with access to the socket could execute commands with root privileges
  • The device's operating system and data could be compromised
  • Device settings or software could be altered without authorization
  • A compromised device could potentially be used as a foothold for further activity on connected networks

General mitigation guidance

Defensive approaches generally focus on removing shell interpretation from message handling and limiting access to privileged operations.

  • Prefer direct APIs or fixed-argument process execution over shell command construction
  • Validate inputs against a strict allowlist of expected values and reject unexpected content
  • Apply least privilege so the daemon does not run as root unless essential
  • Restrict socket permissions and access to explicitly authorized clients
  • Keep privileged request handling minimal and separate from parsing untrusted data

Defensive approaches generally focus on removing shell interpretation from message handling and limiting access to privileged operations.

  • Prefer direct APIs or fixed-argument process execution over shell command construction
  • Validate inputs against a strict allowlist of expected values and reject unexpected content
  • Apply least privilege so the daemon does not run as root unless essential
  • Restrict socket permissions and access to explicitly authorized clients
  • Keep privileged request handling minimal and separate from parsing untrusted data

How teams detect issues like this

Review daemon code for message data flowing into system(), shell invocations, or dynamically constructed commands. Static analysis can flag shell execution APIs that receive externally controlled values; code review should also examine Unix socket permissions, caller validation, and the daemon's runtime privileges. Policy checks can restrict shell-based command execution and world-writable IPC endpoints, while runtime monitoring may help identify unexpected root processes spawned by the daemon.

Review daemon code for message data flowing into system(), shell invocations, or dynamically constructed commands. Static analysis can flag shell execution APIs that receive externally controlled values; code review should also examine Unix socket permissions, caller validation, and the daemon's runtime privileges. Policy checks can restrict shell-based command execution and world-writable IPC endpoints, while runtime monitoring may help identify unexpected root processes spawned by the daemon.

Sources

SourceLink
mstreet97.github.iomstreet97.github.io/security-research/vulnerability-disclosure/embedded/cve/2026/10/29/From-UART-to-root-android-version.html
vulncheck.comvulncheck.com/advisories/amlogic-pppoe-wrapper-command-injection-via-af-unix-socket

Frequently asked

questions

The described attack is local: an attacker must be able to send a message to the device's Unix domain socket. Remote exploitation would depend on some separate mechanism that provides access to the device.

An attacker needs local access sufficient to write to /dev/socket/pppoe_wrapper. The socket is described as world-writable, which may allow unprivileged local users to reach it.

Avoid passing untrusted input through a shell. Use direct APIs or fixed-argument execution, validate expected values, restrict socket access, and run the daemon with the least privileges needed.

Audit data flows from IPC and other untrusted sources into command-execution APIs, enforce restrictive permissions, and use static analysis and code-review policies to catch unsafe shell invocation patterns.

The described attack is local: an attacker must be able to send a message to the device's Unix domain socket. Remote exploitation would depend on some separate mechanism that provides access to the device.

An attacker needs local access sufficient to write to /dev/socket/pppoe_wrapper. The socket is described as world-writable, which may allow unprivileged local users to reach it.

Avoid passing untrusted input through a shell. Use direct APIs or fixed-argument execution, validate expected values, restrict socket access, and run the daemon with the least privileges needed.

Audit data flows from IPC and other untrusted sources into command-execution APIs, enforce restrictive permissions, and use static analysis and code-review policies to catch unsafe shell invocation patterns.

Find out what's already
exploitable in your codebase.