CVE-2026-126631

Description

A flaw was found in OpenSCAP. This vulnerability allows for information disclosure when performing offline scans of untrusted filesystem images, such as container images or virtual machine (VM) disks. Because the scanner does not properly restrict symbolic link (symlink) resolution to the target image's root directory, an attacker can supply a crafted image containing links pointing to files on the host system. When the scan runs, typically with elevated privileges, OpenSCAP follows these links to read sensitive host files and expose their contents in the scan report or manipulate compliance results.

Statement

This vulnerability is rated as Moderate because exploitation requires an administrator or automated process to evaluate an untrusted offline filesystem image, restricting the blast radius to unauthorized host file reads and compliance tampering rather than direct arbitrary code execution. In default Red Hat Enterprise Linux deployments, standard compliance scans evaluate the live system and do not utilize the affected offline inspection mode. The vulnerability specifically impacts offline scanning pipelines where symlinks inside an inspected filesystem image escape the target directory to access host-level resources under elevated scan permissions.

Mitigation

Avoid executing offline OpenSCAP scans against untrusted container or virtual machine filesystem images directly on sensitive host systems. If inspecting untrusted images is required, perform scans within an isolated sandbox environment, such as a disposable container or virtual machine without access to confidential host files or secrets.

Caveats: Utilizing isolated scanning environments introduces operational overhead and requires managing dedicated, ephemeral scan instances.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.1N/A7.1
Attack VectorLocalN/ALocal
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionRequiredN/ARequired
ScopeChangedN/AChanged
ConfidentialityHighN/AHigh
Integrity ImpactLowN/ALow
Availability ImpactNoneN/ANone

Vector

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

cve.org: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Understanding the Weakness (CWE)

Confidentiality,Integrity,Access Control

Technical Impact: Read Files or Directories; Modify Files or Directories; Bypass Protection Mechanism

An attacker may be able to traverse the file system to unintended locations and read or overwrite the contents of unexpected files. If the files are used for a security mechanism then an attacker may be able to bypass the mechanism.

Other

Technical Impact: Execute Unauthorized Code or Commands

Windows simple shortcuts, sometimes referred to as soft links, can be exploited remotely since a ".LNK" file can be uploaded like a normal file. This can enable remote execution.

Acknowledgements

Red Hat would like to thank Shawn Wells (Mission IT) for reporting this issue.

Frequently Asked Questions

Want to get errata notifications? Sign up here.