← Lab /Systems

F5 BIG-IP APM’s OAuth endpoint suffers unauthenticated heap overflow allowing RCE

CVE-2026-94127 is an unauthenticated heap overflow in the Authorization header handling of BIG-IP APM that can be exploited to achieve remote code execution.

Systems watchTowr Labs 23 Sep 2026 Disclosure Prototype evidence

Published as “Is This A Joke? In The Auth Header? (F5 BIG-IP UnAuth Heap-Overflow to RCE CVE-2026-94127)”

Why it matters

An unauthenticated attacker can crash BIG-IP APM and, with modest additional steps, achieve remote code execution, exposing critical edge infrastructure.

Summary

The researchers reverse-engineered the BIG-IP APM binary and found that the patched code adds a size check for the Authorization header, which was missing before. By sending an Authorization header larger than 0x4100 bytes to the /f5-oauth2/v1/userinfo endpoint, they trigger a heap overflow that overwrites a function pointer. The overflow leads to a crash and, after additional gadget chaining, they achieve remote code execution by writing to a SELinux-protected hook script. Their exploit works on a real appliance but is limited by SELinux restrictions and requires a favorable heap layout.

What they found 1

  1. The vulnerability is a missing size check before copying the Authorization header into a heap buffer.

    “before the patch, there was no size check before copying the value to the heap buffer, and now there is one.”

Caveats 5

  • SELinux blocked the exec syscall ("-1, errno=13 (EACCES) :(")
  • The web server was also under SELinux, preventing direct shell execution.
  • Exploit requires a specific heap layout; in about 90% of runs an object with a function pointer lands just past the overflow buffer.
  • No PIE binary, but SELinux mitigations limit the payloads that can be executed.
  • The proof-of-concept writes to a hook script rather than spawning a direct shell.

What’s new here 4

  • Identified missing length validation for Authorization headers in BIG-IP APM OAuth flow.
  • Demonstrated a reproducible heap overflow by sending >0x4100-byte Authorization header.
  • Developed an exploit that overwrites a heap-resident function pointer to execute arbitrary code.
  • Documented mitigation challenges such as SELinux enforcement and lack of PIE.

In the news