CVE-2019-12423
Vulnerability in Apache CXF
Check your servers for CVE-2019-12423
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-12423 affects cxf, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 6.06%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 94.1% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of cxf and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i cxf
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-12423 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-12423RHEL, Rocky, Alma, Fedora
rpm -q cxf
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-12423Alpine
apk list --installed | grep -i cxfWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-12423
trivy image --scanners vuln IMAGE | grep CVE-2019-12423
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- http://cxf.apache.org/security-advisories.data/CVE-2019-12423.txt.asc?version=1&modificationDate=1579178393000&api=v2 cxf.apache.org
Other references
- [announce] 20200116 [CVE-2019-12423] - Apache CXF OpenId Connect JWK Keys service returns private/secret credentials… lists.apache.org · mailing list
- [cxf-commits] 20200319 svn commit: r1058035 - in /websites/production/cxf/content: cache/main.pageCache… lists.apache.org · mailing list
- [cxf-commits] 20200401 svn commit: r1058573 - in /websites/production/cxf/content: cache/main.pageCache index.html… lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpujul2020.html oracle.com
- https://www.oracle.com/security-alerts/cpuoct2020.html oracle.com
- [cxf-commits] 20201112 svn commit: r1067927 - in /websites/production/cxf/content: cache/main.pageCache… lists.apache.org · mailing list
- [cxf-commits] 20210402 svn commit: r1073270 - in /websites/production/cxf/content: cache/main.pageCache… lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpuApr2021.html oracle.com
- [cxf-commits] 20210616 svn commit: r1075801 - in /websites/production/cxf/content: cache/main.pageCache index.html… lists.apache.org · mailing list
Source: the record CVE-2019-12423 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse