Advisory

GHSA-7gfx-wxfh-7rvm

Also known as: CVE-2018-13982

Summary

Smarty Path Traversal Vulnerability

Details

Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to insufficient template code sanitization. This allows attackers controlling the executed template code to bypass the trusted directory security restriction and read arbitrary files.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-13 01:05 UTC
Modified
2024-02-16 08:20 UTC

Affected packages and fixes

smarty/smarty

Packagist · All systems

Affected

  • introduced 0, fixed 3.1.33 (ecosystem)

Fixed versions

3.1.33

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences