Skip to content
RCE Advisory Advanced CVE-2023-26286

IBM Corporation AIX errlog() Log Injection Vulnerability

The errlog() syscall in IBM AIX 7.2 allows an attacker to inject arbitrary commands via the resource_name field, which is later used by errdemon to construct a shell command. An attacker with local access could execute commands as root.

Tim Brown Follow

Originally disclosed on Cisco Talos

Medium 5.5 View original

An OS command injection vulnerability exists in the errlog() syscall functionality of IBM Corporation AIX 7.2. A specially crafted syscall can lead to execute privileged operation.

Tim Brown, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the errdemon process fails to sanitise the resource_name field before using it to build a command string passed to execve().

Impact

An attacker with local access could execute arbitrary commands as root, potentially compromising the system.

What the attacker needed

Local access to the system; ability to call errlog() syscall

The fix

The vulnerability was fixed by the vendor in a patch released on 2023-04-13.

How it was found

  1. Create an error record with a valid error ID and a resource_name containing shell commands.
  2. Call errlog() with the crafted record.
  3. The event is written to /dev/error and processed by errdemon.
  4. errdemon constructs a shell command using the resource_name and executes it as root.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A system call called errlog() lets programs write error records. One field in that record, the resource name, is later passed to a shell command without being cleaned. By putting shell commands in that field, an attacker can make the system run their commands with high privileges.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Tim Brown

View all

5 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.