# CVE-2019-12423: Private key leak in Apache CXF

> 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:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 6.06% (percentile 94, 2026-11-26)
- **CWE:** CWE-522
- **Aliases:** GHSA-42f2-f9vc-6365
- **Published:** 2020-01-16T17:42:14.000Z
- **Modified:** 2026-06-17T02:14:37.650Z

## Who should check

- Projects that depend on Maven package org.apache.cxf:apache-cxf (\< 3.2.12)
- Projects that depend on Maven package org.apache.cxf:cxf (\< 3.2.12)
- Anyone running Apache CXF All versions of Apache CXF prior to 3.3.5 and 3.2.12.

## Description

Apache CXF ships with a OpenId Connect JWK Keys service, which allows a client to obtain the public keys in JWK format, which can then be used to verify the signature of tokens issued by the service. Typically, the service obtains the public key from a local keystore (JKS/PKCS12) by specifing the path of the keystore and the alias of the keystore entry. This case is not vulnerable. However it is also possible to obtain the keys from a JWK keystore file, by setting the configuration parameter "rs.security.keystore.type" to "jwk". For this case all keys are returned in this file "as is", including all private key and secret key credentials. This is an obvious security risk if the user has configured the signature keystore file with private or secret key credentials. From CXF 3.3.5 and 3.2.12, it is mandatory to specify an alias corresponding to the id of the key in the JWK file, and only this key is returned. In addition, any private key information is omitted by default. "oct" keys, which contain secret keys, are not returned at all.

## Affected and fixed versions

- Maven `org.apache.cxf:apache-cxf`: affected \< 3.2.12; fixed 3.2.12, 3.3.5 (osv)
- Maven `org.apache.cxf:cxf`: affected \< 3.2.12; fixed 3.2.12, 3.3.5 (osv)
- Apache CXF: All versions of Apache CXF prior to 3.3.5 and 3.2.12. (cvelist)

## Mitigation

- Upgrade org.apache.cxf:apache-cxf to one of 3.2.12, 3.3.5 (or later in the same release line).
- Upgrade org.apache.cxf:cxf to one of 3.2.12, 3.3.5 (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-2019-12423. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2019-12423.md
Affected: org.apache.cxf:apache-cxf < 3.2.12; org.apache.cxf:cxf < 3.2.12
Fixed in: 3.2.12, 3.3.5

Steps:
1. Search this machine and project for org.apache.cxf:apache-cxf (Maven), org.apache.cxf:cxf (Maven), 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-2019-12423 being exploited?

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

### How serious is CVE-2019-12423?

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

### Which versions are affected by CVE-2019-12423?

org.apache.cxf:apache-cxf \< 3.2.12; org.apache.cxf:cxf \< 3.2.12.

### Is there a fix for CVE-2019-12423?

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

### How do I check if I'm affected by CVE-2019-12423?

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: <http://cxf.apache.org/security-advisories.data/CVE-2019-12423.txt.asc?version=1&modificationDate=1579178393000&api=v2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2019-12423>
- patch: <https://www.oracle.com/security-alerts/cpujul2020.html>
- patch: <https://www.oracle.com/security-alerts/cpuoct2020.html>
- patch: <https://www.oracle.com/security-alerts/cpuApr2021.html>
- other: <https://lists.apache.org/thread.html/rd588ff96f18563aeb5f87ac8c6bce7aae86cb1a4d4be483f96e7208c%40%3Cannounce.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r36e44ffc1a9b365327df62cdfaabe85b9a5637de102cea07d79b2dbf%40%3Ccommits.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rff42cfa5e7d75b7c1af0e37589140a8f1999e578a75738740b244bd4%40%3Ccommits.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rd49aabd984ed540c8ff7916d4d79405f3fa311d2fdbcf9ed307839a6%40%3Ccommits.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/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e%40%3Ccommits.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r36e44ffc1a9b365327df62cdfaabe85b9a5637de102cea07d79b2dbf@%3Ccommits.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rd49aabd984ed540c8ff7916d4d79405f3fa311d2fdbcf9ed307839a6@%3Ccommits.cxf.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rd588ff96f18563aeb5f87ac8c6bce7aae86cb1a4d4be483f96e7208c@%3Cannounce.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>
- other: <https://lists.apache.org/thread.html/rff42cfa5e7d75b7c1af0e37589140a8f1999e578a75738740b244bd4@%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-2019-12423>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-42f2-f9vc-6365> (license: <https://creativecommons.org/licenses/by/4.0/>)

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