# CVE-2025-71422: Contrast before 1.12.1 Insecure LUKS2 Persistent Storage

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

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **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.10% (percentile 0, 2026-11-26)
- **CWE:** CWE-347
- **Aliases:** GHSA-f5p4-p5q5-jv3h, GO-2025-4078
- **Published:** 2025-10-28T17:49:59.000Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Projects that depend on Go package github.com/edgelesssys/contrast (\< 1.12.1)
- Anyone running edgelesssys contrast \< 1.12.1

## Description

Contrast is a Kubernetes runtime for confidential containers. In versions before 1.12.1, the secure persistent volume feature is vulnerable to a malicious host supplying a crafted LUKS2 volume to a pod VM. LUKS2 volume metadata is not authenticated and, with cryptsetup versions prior to 2.8.1, a header specifying the null keyslot encryption algorithm (cipher\_null-ecb) is accepted without error. Because the Contrast Initializer assumes a device is protected if \`cryptsetup open\` succeeds with the secret seed, the guest will open the attacker-supplied volume and write secret data in plaintext, or under a volume key known to the attacker, allowing the host to read confidential data that should have been encrypted. Contrast v1.12.1 ships cryptsetup 2.8.1, which disables null ciphers in keyslots when the passphrase is non-empty; v1.13.0 adds detached-header validation in guest memory and integrity protection for secure persistent storage. Contrast persistent volumes were not integrity protected, so integrity impact is not considered.

## Affected and fixed versions

- Go `github.com/edgelesssys/contrast`: affected \< 1.12.1; fixed 1.12.1 (osv)
- edgelesssys contrast: \< 1.12.1 (cvelist)

## Mitigation

- Upgrade github.com/edgelesssys/contrast to 1.12.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-71422.md
Affected: github.com/edgelesssys/contrast < 1.12.1
Fixed in: 1.12.1

Steps:
1. Search this machine and project for github.com/edgelesssys/contrast (Go), edgelesssys contrast: 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-2025-71422 being exploited?

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

### How serious is CVE-2025-71422?

Medium: CVSS 6.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-71422?

github.com/edgelesssys/contrast \< 1.12.1.

### Is there a fix for CVE-2025-71422?

Yes. Fixed in 1.12.1. Upgrade github.com/edgelesssys/contrast to 1.12.1 or later.

### How do I check if I'm affected by CVE-2025-71422?

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://github.com/edgelesssys/contrast/security/advisories/GHSA-f5p4-p5q5-jv3h>
- patch: <https://github.com/edgelesssys/contrast/pull/1731>
- patch: <https://github.com/edgelesssys/contrast/commit/2252a231d570c2dce10a33660452b0bfc3c43958>
- other: <https://www.vulncheck.com/advisories/contrast-before-1.12.1-insecure-luks2-persistent-storage>
- other: <https://github.com/edgelesssys/contrast>
- other: <https://pkg.go.dev/vuln/GO-2025-4078>

## 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-2025-71422>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-f5p4-p5q5-jv3h> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-4078> (license: <https://creativecommons.org/licenses/by/4.0/>)

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