USN-7158-1: Smarty vulnerabilities

Published Dec 12, 2024
·
Updated

It was discovered that Smarty incorrectly handled query parameters in requests. An attacker could possibly use this issue to inject arbitrary Javascript code, resulting in denial of service or potential execution of arbitrary code. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2018-25047, CVE-2023-28447) It was discovered that Smarty did not properly sanitize user input when generating templates. An attacker could, through PHP injection, possibly use this issue to execute arbitrary code. (CVE-2024-35226)

Affected Software

10 affected componentsFixes available
All of the following
ubuntu/smarty3<3.1.48-1ubuntu0.24.10.1
3.1.48-1ubuntu0.24.10.1
Ubuntu Ubuntu=24.10
All of the following
ubuntu/smarty3<3.1.48-1ubuntu0.24.04.1
3.1.48-1ubuntu0.24.04.1
Ubuntu Ubuntu=24.04
All of the following
ubuntu/smarty3<3.1.39-2ubuntu1.22.04.2
3.1.39-2ubuntu1.22.04.2
Ubuntu Ubuntu=22.04
All of the following
ubuntu/smarty3<3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1
3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1
Ubuntu Ubuntu=20.04
All of the following
ubuntu/smarty3<3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1
3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1
Ubuntu Ubuntu=18.04

Event History

Dec 12, 2024
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of USN-7158-1?

The severity of USN-7158-1 is high due to the potential for arbitrary code execution.

2

How do I fix USN-7158-1?

To fix USN-7158-1, upgrade to the recommended secure version of the smarty3 package for your Ubuntu version.

3

Which Ubuntu versions are affected by USN-7158-1?

USN-7158-1 affects Ubuntu 18.04 LTS, 20.04 LTS, 22.04 LTS, 24.04 LTS, and 24.10.

4

What type of vulnerability is described in USN-7158-1?

USN-7158-1 describes a vulnerability related to improper handling of query parameters that can lead to JavaScript injection.

5

Can USN-7158-1 result in denial of service?

Yes, USN-7158-1 can potentially lead to denial of service as well as execution of arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203