Skip to content
RCE Write-up Advanced

CVE-2022-27518 exploited in the wild by APT5: everything you need to know

A vulnerability in Citrix ADC and Citrix Gateway allows an unauthenticated remote attacker to execute arbitrary code on the appliance. Attackers could bypass authentication controls and gain access to targeted organisations.

Amitai Cohen Follow

Published on wiz.io

On December 13, 2022, the National Security Agency (NSA) released an advisory warning of exploitation in-the-wild of Citrix products by APT5, a threat actor attributed to China. The impacted product is Citrix Application Delivery Controller (ADC), formerly known as NetScaler, which provides orchestration and…

Amitai Cohen, on wiz.io

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 a flaw in how the SAML authentication component processes input, allowing an unauthenticated attacker to execute code.

Impact

An unauthenticated attacker could execute arbitrary code and bypass authentication controls, but only on customer-managed appliances configured with SAML.

What the attacker needed

Customer-managed Citrix ADC or Gateway; SAML SP or IdP configuration; affected version

The fix

The vulnerability was fixed by updating to version 12.1-65.25, 13.0-88.16, or any 13.1 build; disabling SAML authentication is a workaround.

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.

This is a flaw in a networking device that sits in front of applications. An attacker who can reach the device can run their own code on it without logging in, which can let them get past login checks and into the organisation's systems.

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 Amitai Cohen

View all

6 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.