Skip to main content
Vulnerability Database/CVE-2026-103870

CVE-2026-103870: Pulp RPM Path Traversal Vulnerability

CVE-2026-103870 is a path traversal flaw in pulp-rpm that allows authenticated users to write files outside intended directories during distribution tree publishing. This post covers technical details, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-103870 Overview

A path traversal flaw exists in pulp-rpm when publishing a distribution tree. The service uses addon and variant identifiers from the .treeinfo file as directory names without sanitization. An authenticated user who can sync or upload a crafted tree can cause the publish task to create a directory outside the task work area. The Pulp worker user then writes repository metadata and packages to that location. The flaw does not disclose data, does not overwrite existing files or directories, and does not stop the service.

Critical Impact

An authenticated user can write RPM repository metadata and package files to arbitrary filesystem locations writable by the Pulp worker user, enabling potential staging of malicious content outside intended publish paths.

Affected Products

  • pulp-rpm (Pulp Project RPM content plugin)
  • Red Hat distributions bundling pulp-rpm (see Red Hat advisory for specific product versions)
  • Satellite deployments that include the affected pulp-rpm component

Discovery Timeline

  • 2026-10-07 - CVE CVE-2026-103870 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-103870

Vulnerability Analysis

The vulnerability is a path traversal issue classified under CWE-22. It affects the pulp-rpm publish workflow for distribution trees. A .treeinfo file describes installable Linux distribution trees and includes addon and variant sections. Each addon or variant declares an identifier that pulp-rpm uses as a directory name during publish. The publish code trusts these identifiers and does not constrain them to the task work area.

When an attacker supplies an identifier containing path separators or parent directory references, the publish task resolves the final write path outside the intended output tree. The Pulp worker process then writes repomd data and package files into that directory, provided it does not already exist. The attack requires authenticated access with permission to sync or upload content, which maps to the low privilege requirement in the vulnerability metadata.

Root Cause

The root cause is missing input validation on addon and variant IDs parsed from .treeinfo. The publish logic concatenates attacker-controlled strings into filesystem paths without verifying that the resolved path stays within the designated working directory. The code also lacks a canonical path check after resolution.

Attack Vector

An attacker with sync or upload privileges crafts a .treeinfo file that defines an addon or variant whose ID encodes a relative path. The attacker then triggers a publish of that distribution tree. The Pulp worker user creates the traversed directory and writes repository metadata and RPM packages to it. Because the flaw refuses to overwrite existing files, impact is limited to writing into locations not already occupied. Refer to the Red Hat CVE-2026-103870 advisory and Red Hat Bug Report #2544606 for upstream technical details.

Detection Methods for CVE-2026-103870

Indicators of Compromise

  • New directories created by the Pulp worker user outside the configured publish root or task working directory.
  • .treeinfo files in synced or uploaded content containing addon or variant IDs with .., /, or other path separator characters.
  • Unexpected repodata directories or RPM files appearing in filesystem locations writable by the Pulp worker.

Detection Strategies

  • Audit uploaded and synced .treeinfo files for malformed addon and variant identifiers before publish tasks execute.
  • Monitor Pulp worker filesystem writes and alert when write paths resolve outside the configured publish and working directories.
  • Review Pulp task logs for publish operations that reference variant or addon IDs containing non-alphanumeric characters.

Monitoring Recommendations

  • Enable Linux audit rules on the Pulp worker to log creat, mkdir, and openat syscalls targeting directories outside the Pulp data root.
  • Forward Pulp application logs and OS audit events to a centralized data lake for correlation across publish tasks and filesystem activity.
  • Baseline the expected directory structure under the Pulp publish root and alert on deviations.

How to Mitigate CVE-2026-103870

Immediate Actions Required

  • Restrict sync and upload permissions in Pulp to trusted operators only until a patched pulp-rpm version is deployed.
  • Review recently synced or uploaded distribution trees and inspect their .treeinfo files for suspicious addon or variant IDs.
  • Audit the filesystem under paths writable by the Pulp worker user for unexpected repodata directories or RPM packages.

Patch Information

Consult the Red Hat CVE-2026-103870 advisory and Red Hat Bug Report #2544606 for fixed package versions. Upgrade pulp-rpm to the patched release once your distribution publishes it. Restart Pulp workers after upgrading to ensure the fixed code paths are loaded.

Workarounds

  • Limit the Pulp worker user's filesystem write permissions to only the required publish and working directories using strict POSIX permissions.
  • Run Pulp workers with mandatory access controls such as SELinux in enforcing mode to confine writes to labeled directories.
  • Reject or sanitize .treeinfo uploads containing addon or variant IDs with path separator characters at an ingress proxy or validation hook.
bash
# Example SELinux check to confirm Pulp worker confinement
ps -eZ | grep pulp
ls -Z /var/lib/pulp
sestatus

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.