Skip to content
OpenAdvisories
High · 7.5 CVE-2021-26119 EUVD-2021-0717GHSA-w5hr-jm4j-9jvq

Sandbox escape through template_object in smarty

Published Feb 22, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 smarty3 3.1.39-1 —
Debian 13 smarty3 3.1.39-1 —
Debian 12 smarty3 3.1.39-1 —
Debian 9 smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-2+deb9u2 DLA-2618-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 USN-5348-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS smarty3 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 USN-5348-3
Ubuntu Pro 16.04 LTS smarty3 3.1.21-1ubuntu1+esm1 USN-5348-2

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist smarty/smarty < 3.1.39 3.1.39 GHSA-w5hr-jm4j-9jvq

Advisories 4

References