CVE-2022-24778
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-24778 affects the imgcrypt library, which provides API extensions for containerd to support encrypted container images. The vulnerability was discovered in March 2022 and affects versions prior to 1.1.4. The issue lies in the CheckAuthorization function, which is designed to verify whether a user is authorized to access an encrypted image and prevent users from running images previously decrypted by others on the same system (GitHub Advisory).

Technical details

The vulnerability occurs when handling images with a ManifestList where the local host's architecture is not the first one in the list. The CheckAuthorization function only tested the first architecture in the list, which may not have its layers available locally since it couldn't be run on the host architecture. This implementation flaw led to an incorrect authorization verdict, allowing the image to run even when the layers weren't available. The vulnerability has a CVSS v3.1 base score of 7.5 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The vulnerability could allow unauthorized users to access encrypted container images on shared systems without providing the necessary decryption keys, effectively bypassing the authorization checks. This was possible if the image had been previously decrypted by another user on the same system (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in imgcrypt version 1.1.4, which now properly handles architecture-specific manifest checks. For systems unable to update immediately, a workaround involves using different namespaces for each remote user. The fix includes modifications to skip over irrelevant architectures and test only the manifest of the local architecture (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management