/

CVE-2026-130157

Severity:

HIGH RISK

(7.5)

OS Command Injection (CWE-78) in RepoManager RPM Mirror

CVE-2026-130157

Received

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-78

Impact:

Command execution as the www-data service account

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

RepoManager's RPM mirroring process can pass an upstream package filename to a shell-interpreted RPM query, allowing shell metacharacters in the filename to execute commands. The risk arises when an instance mirrors a repository controlled by an attacker and the default GPG-signature check triggers the vulnerable query; a valid signed package is not required.

Affected context

The issue affects RepoManager instances that mirror RPM repositories and have the "Check GPG signatures" option enabled. A malicious upstream repository can supply a package filename through the primary.xml <location href> field, which is used in the RPM query before a later signature-verification failure.

Exploit preconditions

  • Attack surface: RPM repository mirroring
  • Required access: Ability to control an upstream RPM repository mirrored by the target; direct access to the RepoManager host is not described as necessary.
  • Trigger point: The mirror processes repository metadata while the default GPG-signature check is enabled.
  • Why exploitation is possible: The package filename from the metadata reaches a shell-interpreted RPM query, and command execution occurs before signature verification can reject the package.

Why this happens

The application uses externally supplied package-location data in a command interpreted by a shell without safely separating arguments or preventing shell interpretation. Shell metacharacters in the filename can therefore alter the command's behavior. This is CWE-78: Improper Neutralization of Special Elements used in an OS Command.

Potential impact

  • An attacker may execute commands with the privileges of the www-data service account.
  • The attacker could access or alter data available to that account.
  • The affected service may be disrupted or its configuration changed.
  • Compromise of the service account could enable further activity, depending on host permissions and network access.

General mitigation guidance

Defensive patterns focus on preventing untrusted metadata from becoming shell syntax:

  • Prefer direct process-execution APIs that pass arguments separately and do not invoke a shell.
  • Treat repository metadata as untrusted, and validate package locations against a strict expected format.
  • Avoid relying on signature verification as a safeguard against command execution during earlier processing.
  • Apply least privilege to repository services and limit their filesystem and network access.
  • Keep mirroring inputs and configuration within controlled trust boundaries.

How teams detect issues like this

  • Use static analysis to identify shell-based process execution that incorporates repository metadata or other external input.
  • Review RPM mirroring code for filenames passed through shell command strings rather than separate, safely handled arguments.
  • Apply code-review and CI policies that flag shell invocation and require validation of externally sourced command arguments.
  • Monitor service-account activity for unexpected child processes or commands during repository mirroring.

Sources

SourceLink
github.comgithub.com/lbr38/repomanager/commit/d380579c84accf1786934deee245650bbc68a562
github.comgithub.com/lbr38/repomanager/pull/403
github.comgithub.com/lbr38/repomanager/releases/tag/5.13.3
github.comgithub.com/lbr38/repomanager/security/advisories/GHSA-ph7j-x866-rc66

Frequently asked

questions

The described attack does not require direct access to the RepoManager host, but it does require the target to mirror an RPM repository controlled by the attacker.

The attacker needs control of an upstream RPM repository that the target mirrors. The default signature-check setting triggers the vulnerable query, and a valid signed package is not required.

Avoid shell interpretation when invoking system commands. Pass arguments separately through a process API and validate metadata against a strict expected format.

Treat repository metadata as untrusted, review command-construction paths, enforce static-analysis and code-review checks, and limit service-account privileges.

Find out what's already
exploitable in your codebase.