7.5high
OAuth 2 authorization service vulnerable to DDos attacks
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 6.59% (higher than 95% of CVEs)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-7q4h-pj78-j7vg
Description
CXF supports (via JwtRequestCodeFilter) passing OAuth 2 parameters via a JWT token as opposed to query parameters (see: The OAuth 2.0 Authorization Framework: JWT Secured Authorization Request (JAR)). Instead of sending a JWT token as a "request" parameter, the spec also supports specifying a URI from which to retrieve a JWT token from via the "request_uri" parameter. CXF was not validating the "request_uri" parameter (apart from ensuring it uses "https) and was making a REST request to the parameter in the request to retrieve a token. This means that CXF was vulnerable to DDos attacks on the authorization server, as specified in section 10.4.1 of the spec. This issue affects Apache CXF versions prior to 3.4.3; Apache CXF versions prior to 3.3.10.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache CXF | from unspecified before 3.4.3, from unspecified before 3.3.10 | CVE List |
| org.apache.cxf:cxf (Maven) | from 3.4.0 before 3.4.3, before 3.3.10 | GitHub Advisory Database |
| org.apache.cxf:apache-cxf (Maven) | from 3.4.0 before 3.4.3, before 3.3.10 | GitHub Advisory Database |
| apache cxf | before 3.3.10, from 3.4.0 before 3.4.3 | NVD |
| oracle business_intelligence | 5.5.0.0.0, 5.9.0.0.0, 12.2.1.3.0, 12.2.1.4.0 | NVD |
| oracle communications_diameter_intelligence_hub | from 8.0.0 up to 8.1.0, from 8.2.0 up to 8.2.3 | NVD |
| oracle communications_element_manager | 8.2.2 | NVD |
| oracle communications_session_report_manager | from 8.0.0 up to 8.2.4.0 | NVD |
| oracle communications_session_route_manager | from 8.0.0 up to 8.2.4 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
CXF supports (via JwtRequestCodeFilter) passing OAuth 2 parameters via a JWT token as opposed to query parameters (see: The OAuth 2.0 Authorization Framework: JWT Secured Authorization Request (JAR)). Instead of sending a JWT token as a "request" parameter, the spec also supports specifying a URI from which to retrieve a JWT token from via the "request_uri" parameter. CXF was not validating the "request_uri" parameter (apart from ensuring it uses "https) and was making a REST request to the parameter in the request to retrieve a token. This means that CXF was vulnerable to DDos attacks on the authorization server, as specified in section 10.4.1 of the spec. This issue affects Apache CXF versions prior to 3.4.3; Apache CXF versions prior to 3.3.10.
NVD (es)
CXF admite (por medio de JwtRequestCodeFilter) pasar parámetros de OAuth 2 por medio de un token JWT en lugar de parámetros de consulta (consulte: El Framework de Autorización de OAuth 2.0: JWT Secured Authorization Request (JAR)). En lugar de enviar un token JWT como un parámetro "request", la especificación también admite la especificación de un URI desde el cual recuperar un token JWT por medio del parámetro "request_uri". CXF no estaba comprobando el parámetro "request_uri" (además de asegurarse de que usa "https) y estaba realizando una petición REST hacia el parámetro en la petición para recuperar un token. Esto significa que CXF era vulnerable a ataques de DDos en el servidor de autorización, como lo especifica en sección 10.4.1 de la especificación Este problema afecta a Apache CXF versiones anteriores a 3.4.3; Apache CXF versiones anteriores a 3.3.10.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22696 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7q4h-pj78-j7vg changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-22696 changed 2026-06-17 | Public domain |