8.8high
In StackStorm versions prior to 3.6.0, the jinja interpreter was not run in sandbox mode and thus allows execution of unsafe system command…
- Severity
- 8.8high CVSS:3.1 by NVD
- Exploit likelihood
- 2.56% (higher than 85% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
Description
In StackStorm versions prior to 3.6.0, the jinja interpreter was not run in sandbox mode and thus allows execution of unsafe system commands. Jinja does not enable sandboxed mode by default due to backwards compatibility. Stackstorm now sets sandboxed mode for jinja by default.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| stackstorm stackstorm | before 3.6.0 | NVD |
All scores
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.0high CVSS:2.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C |
What each source says
CVE List
In StackStorm versions prior to 3.6.0, the jinja interpreter was not run in sandbox mode and thus allows execution of unsafe system commands. Jinja does not enable sandboxed mode by default due to backwards compatibility. Stackstorm now sets sandboxed mode for jinja by default.
NVD (es)
En StackStorm versiones anteriores a 3.6.0, el intérprete de jinja no se ejecutaba en modo sandbox y, por tanto, permitía una ejecución de comandos del sistema no seguros. Jinja no habilita el modo sandbox por defecto debido a la compatibilidad con versiones anteriores. Stackstorm ahora establece el modo sandboxed para jinja por defecto
References
| https://github.com/StackStorm/st2/pull/5359 | patch, third-party-advisory | |
| https://podalirius.net/en/articles/python-vulnerabilities-code-execution-in-jinja-templates/ | exploit, third-party-advisory | |
| https://github.com/pallets/jinja/issues/549 | exploit, issue-tracking, third-party-advisory | |
| https://stackstorm.com/2021/12/16/stackstorm-v3-6-0-released/ | release-notes, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-44657 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-44657 changed 2026-06-17 | Public domain |