CVE-2026-12398

A command injection vulnerability was found in galaxy_ng. The do_git_checkout() function in the legacy role import API (v1) interpolates unsanitized git ref names (branch/tag names) into shell commands executed via subprocess.run() with shell=True. An authenticated user who controls a git repository can create a branch or tag with shell metacharacters in the name to achieve remote code execution on the pulp worker. The vulnerable endpoint is only reachable when GALAXY_ENABLE_LEGACY_ROLES is set to True, which is not the default configuration.
Configurations

No configuration.

History

25 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) Una vulnerabilidad de inyección de comandos fue encontrada en galaxy_ng. La función do_git_checkout() en la API (v1) de importación de roles heredados interpola nombres de referencia de git no saneados (nombres de rama/etiqueta) en comandos de shell ejecutados a través de subprocess.run() con shell=True. Un usuario autenticado que controla un repositorio git puede crear una rama o etiqueta con metacaracteres de shell en el nombre para lograr ejecución remota de código en el worker de pulp. El endpoint vulnerable solo es accesible cuando GALAXY_ENABLE_LEGACY_ROLES está configurado como True, lo cual no es la configuración predeterminada.

Information

Published : 2026-06-16 15:16

Updated : 2026-10-25 23:10


NVD link : CVE-2026-12398

Mitre link : CVE-2026-12398

CVE.ORG link : CVE-2026-12398


JSON object : View

Products Affected

No product.

CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')