Apache APISIX: Generation of Error Message Containing Sensitive Information
CVE-2022-29266 is a high-severity generation of error message containing sensitive information vulnerability in Apache APISIX from Apache, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Apache APISIX versions: Apache APISIX through 2.13.0. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 8.14% chance of exploitation within 30 days, which is in the top 5.06% of all scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Apisix to 2.13.1 or a later version.
- Read the advisory on lists.apache.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Apache | Apache APISIX | Apache APISIX through 2.13.0 | Not stated |
| Apache | Apisix | before 2.13.1 | 2.13.1 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 2.0 | 5.0 | Medium | NVD |
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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Generation of Error Message Containing Sensitive Information
The product generates an error message that includes sensitive information about its environment, users, or associated data.
How developers prevent this class of flaw
- Handle exceptions internally and do not display errors containing potentially sensitive information to a user.
- Use naming conventions and strong types to make it easier to spot when sensitive data is being used. When creating structures, objects, or other complex entities, separate the sensitive and non-sensitive data as much as possible.
- Debugging information should not make its way into a production release.
More Generation of Error Message Containing Sensitive Information vulnerabilities (CWE-209)
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Advisories
Third-party and government advisories
- openwall.com/lists/oss-security/2022/04/20/1Mailing List, Third Party Advisory
Other vulnerabilities in Apache APISIX
- 7.0 High severity
- 7.8 High severity
- 8.2 High severity
- 8.1 High severity
- 7.5 High severity
- 7.5 High severity
Recent Generation of Error Message Containing Sensitive Information vulnerabilities
- 7.8 High severity
- 4.3 Medium severity
Spotted an error? Tell us.