Security Advisory

CVE-2022-27518: Citrix ADC/Gateway SAML RCE

Last updated:
  • CVE-2022-27518

CVE-2022-27518 is an unauthenticated remote code execution flaw in Citrix ADC and Citrix Gateway appliances configured as a SAML service provider or identity provider. NVD scores it 9.8, Citrix reported exploitation and CISA KEV lists it. Upgrade to 13.0-58.32, 12.1-65.25 or 12.1-FIPS/NDcPP 12.1-55.291; release 13.1 is not affected.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

6.6%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2022-27518 · Source: NVD

Affected components

ComponentCPEVersion range
Citrix ADC and Citrix Gateway 13.0cpe:2.3:o:citrix:gateway_firmware:*:*:*:*:*:*:*:*13.0 before 13.0-58.32; fixed in 13.0-58.32 and later (Citrix CTX474995)
Citrix ADC and Citrix Gateway 12.1cpe:2.3:o:citrix:application_delivery_controller_firmware:*:*:*:*:*:*:*:*12.1 before 12.1-65.25; fixed in 12.1-65.25 and later releases of 12.1 (Citrix CTX474995)
Citrix ADC 12.1-FIPS and 12.1-NDcPPcpe:2.3:o:citrix:application_delivery_controller_firmware:*:*:*:*:fips:*:*:*Before 12.1-55.291; fixed in 12.1-55.291 and later (Citrix CTX474995)
Citrix ADC and Citrix Gateway before 12.1—End of life; Citrix recommends upgrading to a supported version (Citrix CTX474995). 13.1 is unaffected

What does this mean for affected devices?

Citrix published bulletin CTX474995 and a blog post on 2022-12-13: a vulnerability that "could allow an unauthenticated remote attacker to perform arbitrary code execution on the appliance". Citrix classes it as CWE-664, improper control of a resource through its lifetime; NVD lists NVD-CWE-Other. The precondition is that "Citrix ADC or Citrix Gateway must be configured as a SAML SP or a SAML IdP". Citrix states that "exploits of this issue on unmitigated appliances in the wild have been reported", and the blog speaks of "a small number of targeted attacks in the wild". NVD's Primary score and Citrix's CNA score are both 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) (NVD, CVE record).

Which Citrix ADC and Gateway builds are affected?

Per CTX474995, Citrix ADC and Gateway 13.0 before 13.0-58.32, 12.1 before 12.1-65.25, and Citrix ADC 12.1-FIPS and 12.1-NDcPP before 12.1-55.291. "Citrix ADC and Citrix Gateway version 13.1 is unaffected." NVD's CPE configuration lists the same ranges as appliance firmware (application_delivery_controller_firmware, gateway_firmware). The bulletin only applies to customer-managed appliances. To check exposure, Citrix says to look in ns.conf for add authentication samlAction (SAML SP) or add authentication samlIdPProfile (SAML IdP); if either is present on an affected version, update.

How do you fix CVE-2022-27518?

Install 13.0-58.32 or later, 12.1-65.25 or later releases of 12.1, or 12.1-FIPS/NDcPP 12.1-55.291 or later. Citrix adds that "versions prior to 12.1 are EOL and customers on those versions are recommended to upgrade to one of the supported versions". The blog states: "No workarounds are available for this vulnerability." Later SAML-related NetScaler flaws include the IdP memory overread CVE-2026-3055; the next unauthenticated code execution in the same appliances was CVE-2023-3519. For ranking these edge appliance entries against the rest of a backlog, see KEV and EPSS vulnerability prioritization.

Is CVE-2022-27518 exploited?

Yes. CISA added it to the KEV catalog on 2022-12-13 as "Citrix Application Delivery Controller (ADC) and Gateway Authentication Bypass Vulnerability", describing an authentication bypass that "allows an attacker to execute code as administrator", with a due date of 2023-01-03 and the required action to apply updates per vendor instructions. Known ransomware campaign use is Unknown. It is listed as of 2026-11-25 (catalog version 2026.11.24) (CISA KEV). FIRST EPSS gives 0.06632, the 93.96th percentile, in the 2026-11-24 dataset (FIRST EPSS).

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD: Analyzed; [email protected] Primary CVSS 3.1 9.8; Citrix Secondary 9.8; CWE NVD-CWE-Other (NVD), CWE-664 (Citrix); CPE ranges application_delivery_controller_firmware 12.1 FIPS/NDcPP before 12.1-55.291, 12.1 before 12.1-65.25, 13.0 before 13.0-58.32, gateway_firmware 12.1 before 12.1-65.25, 13.0 before 13.0-58.32; published 2022-12-13; read 2026-11-25. — NVD
  • Bulletin 2022-12-13: unauthenticated remote arbitrary code execution, CWE-664, SAML SP or IdP precondition; affected 13.0 before 13.0-58.32, 12.1 before 12.1-65.25, 12.1-FIPS/NDcPP before 12.1-55.291; 13.1 unaffected; ns.conf checks samlAction / samlIdPProfile; exploits in the wild reported; versions prior to 12.1 EOL. — Citrix CTX474995
  • Citrix blog 2022-12-13: builds released for CVE-2022-27518; 12.1 (incl. FIPS/NDcPP) and 13.0 before 13.0-58.32 with SAML SP or IdP configuration; no workarounds available; small number of targeted attacks in the wild; Citrix-managed cloud customers need no action. — Citrix blog
  • CNA Citrix record: PUBLISHED 2022-12-13; Citrix Gateway, Citrix ADC 12.1, 13.0, 12.1 FIPS/NDcPP; CVSS 3.1 9.8. — CVE.org
  • Catalog 2026.11.24: dateAdded 2022-12-13, due 2023-01-03, ransomware Unknown, CWE-664; required action apply updates per vendor instructions; checked 2026-11-25. — CISA KEV
  • EPSS 0.06632, percentile 0.93958, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Citrix CTX474995: Citrix ADC and Citrix Gateway Security Bulletin for CVE-2022-27518
  3. Citrix blog: Critical security update now available for Citrix ADC, Citrix Gateway
  4. CVE.org record CVE-2022-27518 (CNA: Citrix)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which Citrix ADC configurations are exposed to CVE-2022-27518?

Appliances configured as a SAML service provider or SAML identity provider. Citrix says ns.conf then contains add authentication samlAction (SP) or add authentication samlIdPProfile (IdP) (per Citrix CTX474995).

Is Citrix ADC 13.1 affected by CVE-2022-27518?

No. Citrix states that Citrix ADC and Citrix Gateway 13.1 is unaffected; the affected lines are 13.0 before 13.0-58.32, 12.1 before 12.1-65.25 and 12.1-FIPS/NDcPP before 12.1-55.291 (per Citrix CTX474995).

What about Citrix ADC versions older than 12.1?

Citrix says versions prior to 12.1 are end of life and recommends upgrading to one of the supported versions (per Citrix CTX474995).

Is CVE-2022-27518 exploited?

Yes. Citrix reported exploits on unmitigated appliances, and CISA added it to KEV on 2022-12-13 with a due date of 2023-01-03; it is listed as of 2026-11-25 (catalog version 2026.11.24), ransomware use Unknown (per Citrix CTX474995 and CISA KEV).