CVE-2019-12423
Private key leak in Apache CXF
Also known as GHSA-42f2-f9vc-6365
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).
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.
Vulnerability facts
- Affected
- org.apache.cxf:apache-cxf < 3.2.12; org.apache.cxf:cxf < 3.2.12
- Fixed in
- 3.2.12, 3.3.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 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
- EPSS
- 6.06% chance of exploitation in 30 days (percentile 94, 2026-11-26)
- CWE
- CWE-522
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.cxf:apache-cxf | < 3.2.12 | 3.2.12, 3.3.5 | osv |
| Maven org.apache.cxf:cxf | < 3.2.12 | 3.2.12, 3.3.5 | osv |
| Apache CXF | All versions of Apache CXF prior to 3.3.5 and 3.2.12. | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Patches
Other
- https://lists.apache.org/thread.html/rd588ff96f18563aeb5f87ac8c6bce7aae86cb1a4d4be483f96e7208c%40%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/r36e44ffc1a9b365327df62cdfaabe85b9a5637de102cea07d79b2dbf%40%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rff42cfa5e7d75b7c1af0e37589140a8f1999e578a75738740b244bd4%40%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rd49aabd984ed540c8ff7916d4d79405f3fa311d2fdbcf9ed307839a6%40%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4%40%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e%40%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/r36e44ffc1a9b365327df62cdfaabe85b9a5637de102cea07d79b2dbf@%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rd49aabd984ed540c8ff7916d4d79405f3fa311d2fdbcf9ed307839a6@%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rd588ff96f18563aeb5f87ac8c6bce7aae86cb1a4d4be483f96e7208c@%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4@%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e@%3Ccommits.cxf.apache.org%3E
- https://lists.apache.org/thread.html/rff42cfa5e7d75b7c1af0e37589140a8f1999e578a75738740b244bd4@%3Ccommits.cxf.apache.org%3E
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.