# CVE-2023-4807: POLY1305 MAC implementation corrupts XMM registers on Windows

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.75% (percentile 51, 2026-11-26)
- **CWE:** CWE-440
- **Published:** 2023-09-08T11:01:53.663Z
- **Modified:** 2026-10-14T22:17:17.873Z

## Who should check

- Anyone running OpenSSL \>= 3.1.0, \< 3.1.3; \>= 3.0.0, \< 3.0.11; \>= 1.1.1, \< 1.1.1w

## 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.

## Affected and fixed versions

- OpenSSL: \>= 3.1.0, \< 3.1.3; \>= 3.0.0, \< 3.0.11; \>= 1.1.1, \< 1.1.1w (cvelist)

## Mitigation

- Upgrade OpenSSL to 1.1.1w or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-4807.md
Affected: OpenSSL >= 3.1.0, < 3.1.3; >= 3.0.0, < 3.0.11; >= 1.1.1, < 1.1.1w
Fixed in: OpenSSL 3.1.3, OpenSSL 3.0.11, OpenSSL 1.1.1w

Steps:
1. Search this machine and project for OpenSSL: 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-2023-4807 being exploited?

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

### How serious is CVE-2023-4807?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-4807?

OpenSSL \>= 3.1.0, \< 3.1.3; \>= 3.0.0, \< 3.0.11; \>= 1.1.1, \< 1.1.1w.

### Is there a fix for CVE-2023-4807?

Yes. Fixed in OpenSSL 3.1.3, OpenSSL 3.0.11, OpenSSL 1.1.1w. Upgrade OpenSSL to 1.1.1w or later.

### How do I check if I'm affected by CVE-2023-4807?

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://www.openssl.org/news/secadv/20230908.txt>
- patch: <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=4bfac4471f53c4f74c8d81020beb938f92d84ca5>
- patch: <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=6754de4a121ec7f261b16723180df6592cbb4508>
- patch: <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=a632d534c73eeb3e3db8c7540d811194ef7c79ff>
- other: <https://security.netapp.com/advisory/ntap-20230921-0001/>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-556635.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-093430.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-331112.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-915275.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-277137.html>

## 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-2023-4807>

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