Cyber Resilience

CVE-2022-29266

High

Published: 20 April 2022

Published
20 April 2022
Modified
21 November 2024
KEV Added
Patch
CVSS Score v3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.3584 97.2th percentile
Risk Priority 37 60% EPSS · 20% KEV · 20% CVSS

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

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

apache
apisix
≤ 2.13.1

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.

addresses: CWE-209

Detects error messages that leak sensitive information as evidence of disclosure.

addresses: CWE-209

The control directly mitigates generation of error messages containing sensitive authentication details by requiring obscured feedback instead of verbose responses.

addresses: CWE-209

Misdirection allows generation of misleading error messages that withhold or falsify sensitive details.

addresses: CWE-209

Explicitly requires error messages to avoid including sensitive or exploitable details while still supporting corrective action.

addresses: CWE-209

Validation ensures error messages contain only expected, non-sensitive content and blocks leakage via verbose errors.

addresses: CWE-209

Fail-safe procedures can be defined to suppress or sanitize error output, reducing generation of messages that contain sensitive information.

References