CVE-2021-27306
Kong vulnerability analysis and mitigation

Overview

An improper access control vulnerability was discovered in the JWT plugin of Kong Gateway versions prior to 2.3.2.0. The vulnerability, identified as CVE-2021-27306, allows unauthenticated users to access authenticated routes without providing a valid JWT token. This security flaw was disclosed on March 18, 2021, affecting Kong Gateway Enterprise installations that use the JWT plugin for authentication (NVD, CVE).

Technical details

The vulnerability stems from Kong Gateway's handling of URI normalization before route matching. When a service has both authenticated and unauthenticated routes, an attacker could bypass authentication by using path traversal techniques (../). The issue occurs when Kong inherits rules from unauthenticated routes without properly normalizing the URI path before matching it against the router. The vulnerability has a CVSS v3.1 Base Score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (Medium Blog).

Impact

The vulnerability allows unauthorized access to protected routes that should require JWT authentication. This could lead to exposure of sensitive information or functionality that was intended to be restricted. The impact is particularly severe when Kong Gateway is used in conjunction with services that normalize URI paths, such as reverse proxies or load balancers (Medium Blog).

Mitigation and workarounds

The vulnerability was fixed in Kong Gateway version 2.3.2.0. The fix ensures that Kong always normalizes the incoming request's URI before matching it against the Router. Organizations using affected versions should upgrade to version 2.3.2.0 or later to address this security issue (Kong Changelog).

Additional resources


SourceThis report was generated using AI

Related Kong vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2021-27306HIGH7.5
  • KongKong
  • cpe:2.3:a:konghq:kong_gateway
NoYesMar 18, 2021

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management