{"id":"CVE-2022-29266","state":"PUBLISHED","title":"apisix/jwt-auth may leak secrets in error response","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.","publishedAt":"2022-04-20T07:15:13.000Z","updatedAt":"2024-08-03T06:17:54.494Z","severity":null,"assigner":"apache","products":["Apache Software Foundation Apache APISIX"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache APISIX","versions":[{"version":"Apache APISIX","status":"affected","lessThanOrEqual":"2.13.0","versionType":"custom"}]}],"references":["https://lists.apache.org/thread/6qpfyxogbvn18g9xr8g218jjfjbfsbhr","http://www.openwall.com/lists/oss-security/2022/04/20/1"],"weaknesses":["CWE-209"],"ingestedAt":"2026-10-29T19:49:57.813Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/29xxx/CVE-2022-29266.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-29266","state":"PUBLISHED","datePublished":"2022-04-20T07:15:13.000Z","dateUpdated":"2024-08-03T06:17:54.494Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2022-04-15T00:00:00.000Z"},"containers":{"cna":{"title":"apisix/jwt-auth may leak secrets in error response","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache APISIX","versions":[{"version":"Apache APISIX","status":"affected","lessThanOrEqual":"2.13.0","versionType":"custom"}]}],"references":[{"url":"https://lists.apache.org/thread/6qpfyxogbvn18g9xr8g218jjfjbfsbhr","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/20/1","name":"[oss-security] 20220420 CVE-2022-29266: Apache APISIX: apisix/jwt-auth may leak secrets in error response","tags":["mailing-list","x_refsource_MLIST"]}],"metrics":[{"other":{"content":{"other":"critical"},"type":"unknown"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-209","description":"CWE-209 Generation of Error Message Containing Sensitive Information","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","dateUpdated":"2022-04-25T12:10:09.000Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09"},"credits":[{"lang":"en","value":"Discovered and reported by a team from Kingdee Software (China) Ltd. consisting of Zhongyuan Tang, Hongfeng Xie, and Bing Chen."}],"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"1. Upgrade to 2.13.1 and above\n\n2. Apply the following patch to Apache APISIX and rebuild it:\nThis will make this error message no longer contain sensitive information and return a fixed error message to the caller.\nFor the current LTS 2.13.x or master:\nhttps://github.com/apache/apisix/pull/6846\nhttps://github.com/apache/apisix/pull/6847\nhttps://github.com/apache/apisix/pull/6858\nFor the last LTS 2.10.x:\nhttps://github.com/apache/apisix/pull/6847\nhttps://github.com/apache/apisix/pull/6855\n\n3. Manually modify the version you are using according to the commit above and rebuild it to circumvent the vulnerability."}],"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2022-29266","STATE":"PUBLIC","TITLE":"apisix/jwt-auth may leak secrets in error response"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache APISIX","version":{"version_data":[{"version_affected":"<=","version_name":"Apache APISIX","version_value":"2.13.0"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"credit":[{"lang":"eng","value":"Discovered and reported by a team from Kingdee Software (China) Ltd. consisting of Zhongyuan Tang, Hongfeng Xie, and Bing Chen."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{"other":"critical"}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-209 Generation of Error Message Containing Sensitive Information"}]}]},"references":{"reference_data":[{"name":"https://lists.apache.org/thread/6qpfyxogbvn18g9xr8g218jjfjbfsbhr","refsource":"MISC","url":"https://lists.apache.org/thread/6qpfyxogbvn18g9xr8g218jjfjbfsbhr"},{"name":"[oss-security] 20220420 CVE-2022-29266: Apache APISIX: apisix/jwt-auth may leak secrets in error response","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2022/04/20/1"}]},"source":{"discovery":"UNKNOWN"},"work_around":[{"lang":"en","value":"1. Upgrade to 2.13.1 and above\n\n2. Apply the following patch to Apache APISIX and rebuild it:\nThis will make this error message no longer contain sensitive information and return a fixed error message to the caller.\nFor the current LTS 2.13.x or master:\nhttps://github.com/apache/apisix/pull/6846\nhttps://github.com/apache/apisix/pull/6847\nhttps://github.com/apache/apisix/pull/6858\nFor the last LTS 2.10.x:\nhttps://github.com/apache/apisix/pull/6847\nhttps://github.com/apache/apisix/pull/6855\n\n3. Manually modify the version you are using according to the commit above and rebuild it to circumvent the vulnerability."}]}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.apache.org/thread/6qpfyxogbvn18g9xr8g218jjfjbfsbhr","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/20/1","name":"[oss-security] 20220420 CVE-2022-29266: Apache APISIX: apisix/jwt-auth may leak secrets in error response","tags":["mailing-list","x_refsource_MLIST","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T06:17:54.494Z"}}]}}}