CVE-2022-29221
Last modified
CVE-2022-29221 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 4.54% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Smarty | Smarty | < 3.1.45 |
| Smarty | Smarty | >= 4.0.0, < 4.1.1 |
| Debian | Debian Linux | 9.0 |
| Debian | Debian Linux | 10.0 |
| Debian | Debian Linux | 11.0 |
| Fedoraproject | Fedora | 36 |
| Fedoraproject | Fedora | 37 |
References
- https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccdddPatch, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.45Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.1.1Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4cThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00044.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202209-09Third Party Advisory
- https://www.debian.org/security/2022/dsa-5151Third Party Advisory
- https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccdddPatch, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.45Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.1.1Release Notes, Third Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4cThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00044.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202209-09Third Party Advisory
- https://www.debian.org/security/2022/dsa-5151Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-29221?
How severe is CVE-2022-29221?
How do I fix CVE-2022-29221?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-29216TensorFlow is an open source platform for machine learning. …7.8
- CVE-2022-29217PyJWT is a Python implementation of RFC 7519. PyJWT supports…7.5
- CVE-2022-29218RubyGems is a package registry used to supply software for t…7.5
- CVE-2022-29219Lodestar is a TypeScript implementation of the Ethereum Cons…7.5
- CVE-2022-2922Relative Path Traversal in GitHub repository dnnsoftware/dnn…4.9
- CVE-2022-29220github-action-merge-dependabot is an action that automatical…6.5
- CVE-2022-29222Pion DTLS is a Go implementation of Datagram Transport Layer…7.5
- CVE-2022-29223Azure RTOS USBX is a USB host, device, and on-the-go (OTG) e…9.8
- CVE-2022-29224Envoy is a cloud-native high-performance proxy. Versions of …5.9
- CVE-2022-29225Envoy is a cloud-native high-performance proxy. In versions …7.5
- CVE-2022-29226Envoy is a cloud-native high-performance proxy. In versions …9.1
- CVE-2022-29227Envoy is a cloud-native high-performance edge/middle/service…7.5
Are you affected by CVE-2022-29221?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
