Ubuntu CVE Tracker
UBUNTU-CVE-2022-29221
Details
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.45 and 4.1.1, template authors could inject php code by choosing a malicious {block} name or {include} file name. Sites that cannot fully trust template authors should upgrade to versions 3.1.45 or 4.1.1 to receive a patch for this issue. There are currently no known workarounds.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:16.04:LTS | collabtive | All versions, no fix listed |
| Ubuntu:16.04:LTS | galette | All versions, no fix listed |
| Ubuntu:16.04:LTS | gosa | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | smarty3 | All versions, no fix listed |
| Ubuntu:18.04:LTS | gosa | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | postfixadmin | All versions before 3.0.2-2ubuntu0.1~esm1 (fixed in 3.0.2-2ubuntu0.1~esm1) |
| Ubuntu:Pro:18.04:LTS | smarty3 | All versions, no fix listed |
| Ubuntu:20.04:LTS | gosa | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | postfixadmin | All versions before 3.2.1-3ubuntu0.1~esm1 (fixed in 3.2.1-3ubuntu0.1~esm1) |
| Ubuntu:Pro:20.04:LTS | smarty3 | All versions, no fix listed |
| Ubuntu:22.04:LTS | gosa | All versions, no fix listed |
| Ubuntu:22.04:LTS | smarty3 | All versions before 3.1.39-2ubuntu1.22.04.1 (fixed in 3.1.39-2ubuntu1.22.04.1) |
| Ubuntu:Pro:22.04:LTS | postfixadmin | All versions before 3.3.10-2ubuntu0.1~esm1 (fixed in 3.3.10-2ubuntu0.1~esm1) |
| Ubuntu:24.04:LTS | gosa | All versions, no fix listed |
| Ubuntu:25.10 | gosa | All versions, no fix listed |
| Ubuntu:26.10 | gosa | All versions, no fix listed |
| Ubuntu:26.04:LTS | gosa | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2022-29221
- https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4c
- https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccddd
- https://github.com/smarty-php/smarty/commit/3606c4717ed6348e114a610ff1e446048dcd0345
- https://github.com/smarty-php/smarty/releases/tag/v3.1.45
- https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccddd
- https://github.com/smarty-php/smarty/releases/tag/v4.1.1
- https://ubuntu.com/security/notices/USN-6012-1
- https://ubuntu.com/security/notices/USN-6550-1
- https://www.cve.org/CVERecord?id=CVE-2022-29221