Contrast BadAML injection allows arbitrary code execution
# BadAML BadAML is an AML injection attack that exploits the ACPI interface and allows arbitrary code execution in a confidential VM. The attack was first published in 2024: - - ## Impact An attacker with control over the host (which is assumed in the attacker model of Contrast) can execute malicious AML code to gain arbitrary code execution within the confidential guest. AML is byte code embedded in ACPI tables that are passed from the host (QEMU) to the guest firmware (OVMF), and then passed from OVMF to the Linux kernel. The Linux kernel has an interpreter that executes the AML code. An attacker can craft a table with malicious AML code and the kernel will execute it. AML is Turing-complete and the interpreter has access to the full guest memory, including private pages. See the [paper](https://dl.acm.org/doi/pdf/10.1145/3719027.3765123) for a detailed description and background of the attack. Note that this is not a vulnerability specific to Contrast, but rather a generic vulnerability in Confidential Computing setups that use the ACPI interface. ## Affected platforms This issue affects the SNP platforms supported by Contrast: `Metal-QEMU-SNP` and `Metal-QEMU-SNP-GPU`. Users on these platforms should switch to the fixed Contrast version immediately. `Metal-QEMU-TDX` isn't affected, as the content of the ACPI tables is covered by the runtime measurements (measured into RTMR 0 by OVMF) on Intel TDX. ## Patches A sandbox similar to the one proposed in the paper has been impl
GHSA-g9ww-x58f-9g6m
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-g9ww-x58f-9g6m
github.com/edgelesssys/contrast
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.18.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.18.0"
}
]
}
],
"package": {
"name": "github.com/edgelesssys/contrast",
"purl": "pkg:golang/github.com/edgelesssys/contrast",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-g9ww-x58f-9g6m/GHSA-g9ww-x58f-9g6m.json"
}
}
]- Related CVEs
- CVE-2026-100839
Source reference:
/aliases
Publisher severity
high
Source reference: /database_specific/severity
- Event
- #19704 · Revision 1
- Added to Heist Feed
- Publisher date
GO-2026-4863
Revision 1
Contrast BadAML injection allows arbitrary code execution in github.com/edgelesssys/contrast
Contrast BadAML injection allows arbitrary code execution in github.com/edgelesssys/contrast
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GO-2026-4863
github.com/edgelesssys/contrast
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.18.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.18.0"
}
]
}
],
"package": {
"name": "github.com/edgelesssys/contrast",
"purl": "pkg:golang/github.com/edgelesssys/contrast",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-4863.json"
},
"ecosystem_specific": {}
}
]- Related CVEs
- CVE-2026-100839
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #19705 · Revision 1
- Added to Heist Feed
- Publisher date