8.8
CWE
94
Advisory Published
CVE Published
Updated

CVE-2022-29221: PHP Code Injection by malicious block or filename in Smarty

First published: Tue May 17 2022(Updated: )

Last updated 24 July 2024

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
composer/smarty/smarty<3.1.45>=4.0.0<4.1.1
debian/smarty3
3.1.39-2+deb11u1
3.1.39-2+deb11u2
3.1.47-2+deb12u1
3.1.48-2
debian/smarty4
4.3.0-1+deb12u2
4.5.4-1
Smarty<3.1.45
Smarty>=4.0.0<4.1.1
Debian=9.0
Debian=10.0
Debian=11.0
Fedora=36
Fedora=37

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2022-29221?

    CVE-2022-29221 is considered a high severity vulnerability due to its potential for PHP code injection which can lead to arbitrary code execution.

  • How do I fix CVE-2022-29221?

    To fix CVE-2022-29221, update Smarty to version 3.1.45 or 4.1.1 or later.

  • Which versions of Smarty are affected by CVE-2022-29221?

    CVE-2022-29221 affects Smarty versions prior to 3.1.45 and between 4.0.0 and 4.1.1.

  • What types of attacks can CVE-2022-29221 facilitate?

    CVE-2022-29221 can facilitate PHP code injection attacks, allowing attackers to execute arbitrary PHP code on the server.

  • Is CVE-2022-29221 related to any specific software distributions?

    Yes, CVE-2022-29221 impacts several distributions including Debian and Fedora, particularly certain versions of Smarty.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203