CVE-2022-29266
Published: 20 April 2022
Summary
CVE-2022-29266 is a high-severity Generation of Error Message Containing Sensitive Information (CWE-209) vulnerability in Apache Apisix. Its CVSS base score is 7.5 (High).
Operationally, ranked in the top 2.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
CVE-2022-29266 affects Apache APISIX versions prior to 3.13.1 in the jwt-auth plugin. The flaw stems from verbose error messages generated by the lua-resty-jwt dependency that inadvertently expose a user's secret key, classified under CWE-209 as information exposure through an error message and carrying a CVSS 3.1 score of 7.5.
An unauthenticated remote attacker can trigger the condition by supplying crafted JWT tokens that cause the dependency to emit an error, thereby obtaining the secret key and compromising the confidentiality of authentication material without any user interaction or privileges.
Public advisories published on the Apache mailing lists and oss-security in April 2022 direct users to upgrade to APISIX 3.13.1 or later, which suppresses the sensitive details in error responses returned by the plugin.
The associated EPSS score reached a peak of 0.3645 shortly after disclosure, indicating measurable post-release interest in the issue.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-33609
Vulnerability details
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Detects error messages that leak sensitive information as evidence of disclosure.
The control directly mitigates generation of error messages containing sensitive authentication details by requiring obscured feedback instead of verbose responses.
Misdirection allows generation of misleading error messages that withhold or falsify sensitive details.
Explicitly requires error messages to avoid including sensitive or exploitable details while still supporting corrective action.
Validation ensures error messages contain only expected, non-sensitive content and blocks leakage via verbose errors.
Fail-safe procedures can be defined to suppress or sanitize error output, reducing generation of messages that contain sensitive information.