Bug 2571597 (CVE-2026-126631)

Summary: CVE-2026-126631 openscap: Symlink escape in offline scanning mode allows reading host files outside the scanned root
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rhel-process-autobot, security-response-team, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2576294    
Bug Blocks:    

Description OSIDB Bzimport 2026-11-11 08:57:40 UTC
A flaw was found in OpenSCAP's offline scanning mode. In PROBE_OFFLINE_OWN mode, the OVAL file probes only prefix target paths with OSCAP_PROBE_ROOT instead of confining file access to the scanned root, and oval_fts follows symlinks without checking that the resolved target stays within it. When scanning an untrusted filesystem image, such as a container image or VM disk, an absolute symlink inside the image is resolved against the host's root filesystem. A crafted image can therefore make oscap read host files and include their contents in the scan results, or manipulate compliance results. When offline scans run with elevated privileges, as is typical, this can disclose host files to anyone able to read the scan results.