Skip to content

CVE-2021-26119 Sandbox escape through template_object in smarty

HighCVSS 7.5 EPSS 8.5% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
PHPUbuntuDebian

Description

Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.

Upgrade path

9 packages: 8 fixed.

PackageAffectedFixed inStatus
debian/smarty3(Debian 12) < 3.1.39-1 3.1.39-1 Fixed
debian/smarty3(Debian 13) < 3.1.39-1 3.1.39-1 Fixed
debian/smarty3(Debian 14) < 3.1.39-1 3.1.39-1 Fixed
smarty/smarty < 3.1.39 3.1.39 Fixed
smarty/smarty(Packagist) < 3.1.39; = v2.6.24; = v2.6.25; = v2.6.26 +34 more 3.1.39 Fixed
ubuntu/smarty3(Ubuntu 18.04) < 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1; = 3.1.31+20161214.1.c7d42e4+selfpack1-2; = 3.1.31+20161214.1.c7d42e4+selfpack1-3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 Fixed
ubuntu/smarty3(Ubuntu Pro 16.04) < 3.1.21-1ubuntu1+esm1; = 3.1.21-1; = 3.1.21-1ubuntu1 3.1.21-1ubuntu1+esm1 Fixed
ubuntu/smarty3(Ubuntu Pro 20.04) < 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1; = 3.1.33+20180830.1.3a78a21f+selfpack1-1; = 3.1.34+20190228.1.c9f0de05+selfpack1-1 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 Fixed
debian linux = 9.0; = 10.0; = 11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
smarty/smarty(Packagist) < 3.1.39 3.1.39
smarty/smarty(Packagist) = v2.6.24 No fix listed
smarty/smarty(Packagist) = v2.6.25 No fix listed
smarty/smarty(Packagist) = v2.6.26 No fix listed
smarty/smarty(Packagist) = v2.6.27 No fix listed
smarty/smarty(Packagist) = v2.6.28 No fix listed
smarty/smarty(Packagist) = v2.6.29 No fix listed
smarty/smarty(Packagist) = v2.6.30 No fix listed
smarty/smarty(Packagist) = v2.6.31 No fix listed
smarty/smarty(Packagist) = v2.6.33 No fix listed
smarty/smarty(Packagist) = v3.1.11 No fix listed
smarty/smarty(Packagist) = v3.1.12 No fix listed
smarty/smarty(Packagist) = v3.1.13 No fix listed
smarty/smarty(Packagist) = v3.1.14 No fix listed
smarty/smarty(Packagist) = v3.1.15 No fix listed
smarty/smarty(Packagist) = v3.1.16 No fix listed
smarty/smarty(Packagist) = v3.1.17 No fix listed
smarty/smarty(Packagist) = v3.1.18 No fix listed
smarty/smarty(Packagist) = v3.1.19 No fix listed
smarty/smarty(Packagist) = v3.1.20 No fix listed
smarty/smarty(Packagist) = v3.1.21 No fix listed
smarty/smarty(Packagist) = v3.1.23 No fix listed
smarty/smarty(Packagist) = v3.1.24 No fix listed
smarty/smarty(Packagist) = v3.1.25 No fix listed
smarty/smarty(Packagist) = v3.1.26 No fix listed
Show 29 more
ProductAffected versionsFixed in
smarty/smarty(Packagist) = v3.1.27 No fix listed
smarty/smarty(Packagist) = v3.1.28 No fix listed
smarty/smarty(Packagist) = v3.1.29 No fix listed
smarty/smarty(Packagist) = v3.1.30 No fix listed
smarty/smarty(Packagist) = v3.1.31 No fix listed
smarty/smarty(Packagist) = v3.1.32 No fix listed
smarty/smarty(Packagist) = v3.1.33 No fix listed
smarty/smarty(Packagist) = v3.1.34 No fix listed
smarty/smarty(Packagist) = v3.1.35 No fix listed
smarty/smarty(Packagist) = v3.1.36 No fix listed
smarty/smarty(Packagist) = v3.1.37 No fix listed
smarty/smarty(Packagist) = v3.1.37.1 No fix listed
smarty/smarty(Packagist) = v3.1.38 No fix listed
debian/smarty3(Debian:12) < 3.1.39-1 3.1.39-1
debian/smarty3(Debian:13) < 3.1.39-1 3.1.39-1
debian/smarty3(Debian:14) < 3.1.39-1 3.1.39-1
smarty/smarty < 3.1.39 3.1.39
debian linux = 9.0 No fix listed
debian linux = 10.0 No fix listed
debian linux = 11.0 No fix listed
ubuntu/smarty3(Ubuntu:Pro:16.04) < 3.1.21-1ubuntu1+esm1 3.1.21-1ubuntu1+esm1
ubuntu/smarty3(Ubuntu:Pro:16.04) = 3.1.21-1 No fix listed
ubuntu/smarty3(Ubuntu:Pro:16.04) = 3.1.21-1ubuntu1 No fix listed
ubuntu/smarty3(Ubuntu:18.04) < 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1
ubuntu/smarty3(Ubuntu:18.04) = 3.1.31+20161214.1.c7d42e4+selfpack1-2 No fix listed
ubuntu/smarty3(Ubuntu:18.04) = 3.1.31+20161214.1.c7d42e4+selfpack1-3 No fix listed
ubuntu/smarty3(Ubuntu:Pro:20.04) < 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1
ubuntu/smarty3(Ubuntu:Pro:20.04) = 3.1.33+20180830.1.3a78a21f+selfpack1-1 No fix listed
ubuntu/smarty3(Ubuntu:Pro:20.04) = 3.1.34+20190228.1.c9f0de05+selfpack1-1 No fix listed

References