CVE-2021-22696
JSON

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 packageVersionsReported by
Apache Software Foundation Apache CXFfrom unspecified before 3.4.3, from unspecified before 3.3.10CVE List
org.apache.cxf:cxf (Maven)from 3.4.0 before 3.4.3, before 3.3.10GitHub Advisory Database
org.apache.cxf:apache-cxf (Maven)from 3.4.0 before 3.4.3, before 3.3.10GitHub Advisory Database
apache cxfbefore 3.3.10, from 3.4.0 before 3.4.3NVD
oracle business_intelligence5.5.0.0.0, 5.9.0.0.0, 12.2.1.3.0, 12.2.1.4.0NVD
oracle communications_diameter_intelligence_hubfrom 8.0.0 up to 8.1.0, from 8.2.0 up to 8.2.3NVD
oracle communications_element_manager8.2.2NVD
oracle communications_session_report_managerfrom 8.0.0 up to 8.2.4.0NVD
oracle communications_session_route_managerfrom 8.0.0 up to 8.2.4NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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

https://cxf.apache.org/security-advisories.data/CVE-2021-22696.txt.ascvendor-advisory, web
https://lists.apache.org/thread.html/r8651c06212c56294a1c0ea61a5ad7790c06502209c03f05c0c7c9914%40%3Cdev.cxf.apache.org%3Emailing-list
http://www.openwall.com/lists/oss-security/2021/04/02/2mailing-list, third-party-advisory, web
https://lists.apache.org/thread.html/r8651c06212c56294a1c0ea61a5ad7790c06502209c03f05c0c7c9914%40%3Cusers.cxf.apache.org%3Emailing-list
https://lists.apache.org/thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4%40%3Ccommits.cxf.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r6445001cc5f9a2bb1e6316993753306e054bdd1d702656b7cbe59045%40%3Cannounce.apache.org%3Emailing-list
https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e%40%3Ccommits.cxf.apache.org%3Emailing-list
https://www.oracle.com/security-alerts/cpuoct2021.htmlpatch, third-party-advisory, web
https://www.oracle.com/security-alerts/cpuapr2022.htmlpatch, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-22696advisory
https://github.com/apache/cxf/commit/40503a53914758759894f704bbf139ae89ace286web
https://github.com/apache/cxf/commit/aa789c5c4686597a7bdef2443909ab491fc2bc04web

Sources

SourceRecordLicence
CVE ListCVE-2021-22696 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-7q4h-pj78-j7vg changed 2023-11-08CC-BY-4.0
NVDCVE-2021-22696 changed 2026-06-17Public domain