CVE-2023-4807
POLY1305 MAC implementation corrupts XMM registers on Windows
Check your servers for CVE-2023-4807
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-2023-4807 affects openssl, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Issue summary: The POLY1305 MAC (message authentication code) implementation contains a bug that might corrupt the internal state of applications on the Windows 64 platform when running on newer X86_64 processors supporting the AVX512-IFMA instructions.
Impact summary: If in an application that uses the OpenSSL library an attacker can influence whether the POLY1305 MAC algorithm is used, the application state might be corrupted with various application dependent consequences.
The POLY1305 MAC (message authentication code) implementation in OpenSSL does not save the contents of non-volatile XMM registers on Windows 64 platform when calculating the MAC of data larger than 64 bytes. Before returning to the caller all the XMM registers are set to zero rather than restoring their previous content. The vulnerable code is used only on newer x86_64 processors supporting the AVX512-IFMA instructions.
The consequences of this kind of internal application state corruption can be various - from no consequences, if the calling application does not depend on the contents of non-volatile XMM registers at all, to the worst consequences, where the attacker could get complete control of the application process. However given the contents of the registers are just zeroized so the attacker cannot put arbitrary values inside, the most likely consequence, if any, would be an incorrect result of some application dependent calculations or a crash leading to a denial of service.
The POLY1305 MAC algorithm is most frequently used as part of the CHACHA20-POLY1305 AEAD (authenticated encryption with associated data) algorithm. The most common usage of this AEAD cipher is with TLS protocol versions 1.2 and 1.3 and a malicious client can influence whether this AEAD cipher is used by the server. This implies that server applications using OpenSSL can be potentially impacted. However we are currently not aware of any concrete application that would be affected by this issue therefore we consider this a Low severity security issue.
As a workaround the AVX512-IFMA instructions support can be disabled at runtime by setting the environment variable OPENSSL_ia32cap:
OPENSSL_ia32cap=:~0x200000
The FIPS provider is not affected by this issue.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.75%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.9% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 23 Apr 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-440 Expected Behavior Violation
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| OpenSSL |
affected from 3.1.0, before 3.1.3 affected from 3.0.0, before 3.0.11 affected from 1.1.1, before 1.1.1w
Other versions: unaffected
|
Is my server affected?
Find the installed version of openssl 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 openssl
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-4807 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-4807RHEL, Rocky, Alma, Fedora
rpm -q openssl
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-4807Alpine
apk list --installed | grep -i opensslWith 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-2023-4807
trivy image --scanners vuln IMAGE | grep CVE-2023-4807
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
- OpenSSL Advisory openssl.org · vendor advisory
Patches and release notes
- 3.1.3 git commit git.openssl.org · patch
- 3.0.11 git commit git.openssl.org · patch
- 1.1.1w git commit git.openssl.org · patch
Other references
- https://security.netapp.com/advisory/ntap-20230921-0001/ security.netapp.com
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-093430.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-915275.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-277137.html cert-portal.siemens.com
Source: the record CVE-2023-4807 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse