CVE-2022-29266 apisix/jwt-auth may leak secrets in error response
An attacker can obtain sensitive JWT secret keys from error messages in the Apache APISIX jwt-auth plugin, potentially compromising authentication.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-29266?
CVE-2022-29266 is a high-severity vulnerability in Apache APISIX, published on 20 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In APache APISIX before 3.13.1, the jwt-auth plugin has a security issue that leaks the user's secret key because the error message returned from the dependency lua-resty-jwt contains sensitive information.
Weakness: CWE-209
Which versions are affected by CVE-2022-29266?
1 open source package ship an affected version, including apisix. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apisix Bitnami | All versions | 2.13.1 |
Products include Apache Apisix.
How do I fix CVE-2022-29266?
Upgrade apisix to 2.13.1 or later.
Is CVE-2022-29266 being exploited?
There is no known exploitation of CVE-2022-29266 in the wild and no public exploit code.
Other vulnerabilities in Apache APISIX
- CVE-2022-24112 Apache APISIX Authentication Bypass
- CVE-2022-25757 Apache APISIX: the body_schema check in request-validation plugin can be bypassed
- CVE-2026-31908 Apache APISIX: forward auth plugin allows header injection
- CVE-2026-75005 Apache APISIX: Unauthenticated CPU-exhaustion DoS
- CVE-2025-27446 Privilege escalation in Apache APISIX Java Plugin Runner
Sources
Also known as BIT-apisix-2022-29266, GHSA-x46m-gg6j-22gf.