# CVE-2021-22696: OAuth 2 authorization service vulnerable to DDos attacks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 6.59% (percentile 95, 2026-11-26)
- **CWE:** CWE-918, CWE-400
- **Aliases:** GHSA-7q4h-pj78-j7vg
- **Published:** 2021-04-02T10:05:14.000Z
- **Modified:** 2026-06-17T03:37:34.920Z

## Who should check

- Projects that depend on Maven package org.apache.cxf:cxf (\>= 3.4.0, \< 3.4.3)
- Projects that depend on Maven package org.apache.cxf:apache-cxf (\>= 3.4.0, \< 3.4.3)
- Anyone running Apache Software Foundation Apache CXF \>= unspecified, \< 3.4.3; \>= unspecified, \< 3.3.10

## 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 and fixed versions

- Maven `org.apache.cxf:cxf`: affected \>= 3.4.0, \< 3.4.3; fixed 3.4.3, 3.3.10 (osv)
- Maven `org.apache.cxf:apache-cxf`: affected \>= 3.4.0, \< 3.4.3; fixed 3.4.3, 3.3.10 (osv)
- Apache Software Foundation Apache CXF: \>= unspecified, \< 3.4.3; \>= unspecified, \< 3.3.10 (cvelist)

## Mitigation

- Upgrade org.apache.cxf:cxf to one of 3.4.3, 3.3.10 (or later in the same release line).
- Upgrade org.apache.cxf:apache-cxf to one of 3.4.3, 3.3.10 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-22696. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-22696.md
Affected: org.apache.cxf:cxf >= 3.4.0, < 3.4.3; org.apache.cxf:apache-cxf >= 3.4.0, < 3.4.3
Fixed in: 3.4.3, 3.3.10

Steps:
1. Search this machine and project for org.apache.cxf:cxf (Maven), org.apache.cxf:apache-cxf (Maven), Apache Software Foundation Apache CXF: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-22696 being exploited?

There is no confirmed exploitation: CVE-2021-22696 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 6.59% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-22696?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2021-22696?

org.apache.cxf:cxf \>= 3.4.0, \< 3.4.3; org.apache.cxf:apache-cxf \>= 3.4.0, \< 3.4.3.

### Is there a fix for CVE-2021-22696?

Yes. Fixed in 3.4.3, 3.3.10. Upgrade org.apache.cxf:cxf to one of 3.4.3, 3.3.10 (or later in the same release line). Upgrade org.apache.cxf:apache-cxf to one of 3.4.3, 3.3.10 (or later in the same release line).

### How do I check if I'm affected by CVE-2021-22696?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://cxf.apache.org/security-advisories.data/CVE-2021-22696.txt.asc>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-22696>
- patch: <https://www.oracle.com/security-alerts/cpuoct2021.html>
- patch: <https://www.oracle.com/security-alerts/cpuapr2022.html>
- patch: <https://github.com/apache/cxf/commit/40503a53914758759894f704bbf139ae89ace286>
- patch: <https://github.com/apache/cxf/commit/aa789c5c4686597a7bdef2443909ab491fc2bc04>
- other: <https://lists.apache.org/thread.html/r8651c06212c56294a1c0ea61a5ad7790c06502209c03f05c0c7c9914%40%3Cdev.cxf.apache.org%3E>
- other: <http://www.openwall.com/lists/oss-security/2021/04/02/2>
- other: <https://lists.apache.org/thread.html/r8651c06212c56294a1c0ea61a5ad7790c06502209c03f05c0c7c9914%40%3Cusers.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4%40%3Ccommits.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r6445001cc5f9a2bb1e6316993753306e054bdd1d702656b7cbe59045%40%3Cannounce.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e%40%3Ccommits.cxf.apache.org%3E>
- other: <https://github.com/apache/cxf>
- other: <https://lists.apache.org/thread.html/r6445001cc5f9a2bb1e6316993753306e054bdd1d702656b7cbe59045@%3Cannounce.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r8651c06212c56294a1c0ea61a5ad7790c06502209c03f05c0c7c9914@%3Cdev.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r8651c06212c56294a1c0ea61a5ad7790c06502209c03f05c0c7c9914@%3Cusers.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4@%3Ccommits.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e@%3Ccommits.cxf.apache.org%3E>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-22696>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7q4h-pj78-j7vg> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-22696> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-22696>
