Contrast has insecure LUKS2 persistent storage partitions may be opened and used
### Summary A malicious host may provide a crafted LUKS2 volume to a Contrast pod VM that uses the [secure persistent volume](https://docs.edgeless.systems/contrast/howto/encrypted-storage) feature. The guest will open the volume and write secret data using a volume key known to the attacker. LUKS2 volume metadata is (a) not authenticated and (b) supports null key-encryption algorithms, allowing an attacker to create a volume such that the volume: - Opens (cryptsetup open) without error using any passphrase or token - Records all writes in plaintext (or ciphertext with an attacker-known key) ### Details Contrast uses cryptsetup to setup secure persistent volumes, using the secret seed as key for the cryptsetup encryption. To do so the Contrast Initializer will invoke the `cryptsetup` CLI. If the device provided by Kubernetes is a identified as cryptsetup device, the Initializer assumes a pod restart happened and the device was previously encrypted with the secret seed. The Initializer will try to open the device, and assume it is protected if the operation succeeds. However, due to the unsafe handling of null keyslot algorithms in the cryptsetup 2.8.1, it is possible that the opened volume is not encrypted at all. Cryptsetup prior to version 2.8.1 does not report an error when processing LUKS2-formatted disks that use the `cipher_null-ecb` algorithm in the keyslot `encryption` field. ### Impact Using a maliciously crafted cryptsetup device, an attacker can read confidential d
GHSA-f5p4-p5q5-jv3h
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-f5p4-p5q5-jv3h
github.com/edgelesssys/contrast
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.12.1
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.12.1"
}
]
}
],
"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/2025/10/GHSA-f5p4-p5q5-jv3h/GHSA-f5p4-p5q5-jv3h.json",
"last_known_affected_version_range": "<= 1.12.0"
}
}
]- Related CVEs
- CVE-2025-71422
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #19717 · Revision 1
- Added to Heist Feed
- Publisher date
GO-2025-4078
Revision 1
Contrast has insecure LUKS2 persistent storage partitions may be opened and used in github.com/edgelesssys/contrast
Contrast has insecure LUKS2 persistent storage partitions may be opened and used 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-2025-4078
github.com/edgelesssys/contrast
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.12.1
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.12.1"
}
]
}
],
"package": {
"name": "github.com/edgelesssys/contrast",
"purl": "pkg:golang/github.com/edgelesssys/contrast",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2025-4078.json"
},
"ecosystem_specific": {}
}
]- Related CVEs
- CVE-2025-71422
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #19718 · Revision 1
- Added to Heist Feed
- Publisher date