Security Advisory: CVE-2026-42945

Uses: Kong Gateway
Severity
High
Published
2026-06-05
Fixed versions
  • 3.14.0.4
  • 3.13.0.5
  • 3.12.0.7
  • 3.11.0.12
  • 3.10.0.12
  • 3.4.3.27
Affected versions
  • 3.14.0.0 to 3.14.0.3
  • 3.13.0.0 to 3.13.0.4
  • 3.12.0.0 to 3.12.0.6
  • 3.11.0.0 to 3.11.0.11
  • 3.10.0.0 to 3.10.0.11
  • 3.4.0.0 to 3.4.3.26

CVE

Description

Severity

CVE-2026-42945 NGINX ngx_http_rewrite_module vulnerability that requires a specific rewrite directive pattern High

CVE-2026-42945

CVE-2026-42945 affects the NGINX rewrite module and requires a specific vulnerable rewrite directive pattern.

Kong Route regex matching is handled by Kong’s router and isn’t the same as NGINX rewrite directive usage. Kong hasn’t identified the vulnerable NGINX rewrite configuration pattern in the default NGINX configuration that Kong Gateway generates.

Users of custom NGINX directives or templates may have exposure, however.

Am I affected?

If you use custom NGINX directives or templates, check your custom NGINX configuration, including nginx.conf and nginx-kong.conf.

Review the effective nginx.conf and nginx-kong.conf files for rewrite, if, or set directives, especially chained rewrite rules using unnamed captures such as $1 or $2.

Mitigation

If you find any such custom rewrite configuration, replace it with Kong Route matching or other Kong-native routing configuration where possible.

Patches

The vulnerability is addressed by applying the patch appropriate for your version:

Impacted supported versions of Kong Gateway Enterprise

Patch

3.14.0.0 - 3.14.0.3 3.14.0.4
3.13.0.0 - 3.13.0.4 3.13.0.5
3.12.0.0 - 3.12.0.6 3.12.0.7
3.11.0.0 - 3.11.0.11 3.11.0.12
3.10.0.0 - 3.10.0.11 3.10.0.12
3.4.0.0 - 3.4.3.26 3.4.3.27

Contact

If you have questions or need help, open a case with Kong Support or email support@konghq.com.

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!