Description
Polyaxon through 2.16.4 renders operation specification fields with an unsandboxed Jinja2 environment during server-side run preparation, allowing authenticated users to execute arbitrary code. Attackers can submit runs with Jinja2 payloads in queue, namespace, conditions, presets, or dependencies fields to execute operating system commands in the scheduler process context, exposing database credentials and service tokens.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| polyaxon | polyaxon | ≤ 2.16.4 | — |
References
- GitHub Issue #1540 issue-tracking
- https://github.com/polyaxon/polyaxon product
- engine.py - get_engine builds an unsandboxed jinja2.Environment used by render_template technical-description
- sections.py - PARSING_SECTIONS includes the user-controlled queue, namespace and conditions fields technical-description
- VulnCheck Advisory: Polyaxon through 2.16.4 Server-Side Template Injection via Unsandboxed Jinja2 Engine third-party-advisory