Skip to content
RCE Write-up Intermediate

Rooted By Rotation Inside Cve 2025 11462

The AWS Client VPN for macOS failed to validate the destination path of log files during rotation, allowing a local non-admin user to create a symlink from the log file to a privileged location such as /etc/crontab. When the client wrote to the log, it wrote attacker-controlled content to the symlinked file, which was then executed as root at the next cron interval.

gm0 Follow

Published on cybersecuritywriteups.com

In October 2025, AWS disclosed CVE-2025–11462, which is a local privilege escalation vulnerability in the AWS Client VPN for macOS. While seemingly mundane, the flaw exposes a critical weakness in how client-side software handles log rotation, allowing non-admin users to escalate privileges to root through symlink…

gm0, on cybersecuritywriteups.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the log rotation code trusted a file path without checking whether it had been replaced by a symbolic link, creating a time-of-check-to-time-of-use gap.

Impact

A local non-admin user could escalate privileges to root, enabling lateral movement and persistence without triggering network-based defences.

What the attacker needed

Local access to a macOS host; non-admin user account; AWS Client VPN 1.3.2 to 5.2.0 installed

The fix

The vulnerability was fixed in AWS Client VPN for macOS version 5.2.1, and the text recommends strict validation of file paths in log rotation and other background tasks.

How it was found

  1. Create a symlink from the VPN log file to /etc/crontab.
  2. Trigger an internal API call to write a malicious cron job.
  3. Wait for log rotation, after which the cron job runs 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 write-up has not been written yet. The Original tab links to the source.

Log rotation is a routine housekeeping task where a program renames or replaces its log file so it does not grow forever. Here the program did not check where the log file actually pointed, so a regular user could replace it with a shortcut (a symlink) to a sensitive system file. When the program wrote its log, it wrote into that sensitive file instead, and the system later ran the contents with full administrator rights.

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 gm0

View all

12 more disclosed reports, best first.

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.