CVE-2022-29266 apisix/jwt-auth may leak secrets in error response

High 7.5 Published Updated

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.

PackageAffectedFixed in
apisix BitnamiAll versions2.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.

Sources

Also known as BIT-apisix-2022-29266, GHSA-x46m-gg6j-22gf.

Is CVE-2022-29266 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free