Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/edgelesssys/contrast
  4. ›
  5. GHSA-g9ww-x58f-9g6m

GHSA-g9ww-x58f-9g6m: Contrast BadAML injection allows arbitrary code execution

March 26, 2026

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

References

  • blackhat.com/eu-24/briefings/schedule/
  • dl.acm.org/doi/pdf/10.1145/3719027.3765123
  • github.com/advisories/GHSA-g9ww-x58f-9g6m
  • github.com/edgelesssys/contrast
  • github.com/edgelesssys/contrast/security/advisories/GHSA-g9ww-x58f-9g6m

Code Behaviors & Features

Detect and mitigate GHSA-g9ww-x58f-9g6m with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.18.0

Fixed versions

  • 1.18.0

Solution

Upgrade to version 1.18.0 or above.

Impact 8.4 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

go/github.com/edgelesssys/contrast/GHSA-g9ww-x58f-9g6m.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 10 Apr 2026 12:17:50 +0000.