Advisory

UBUNTU-CVE-2018-13982

Also known as: CVE-2018-13982

Summary

The record has no summary.

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: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2018-09-18 21:29 UTC
Modified
2026-02-04 04:23 UTC

Affected packages and fixes

smarty3

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 (ecosystem)

Fixed versions

3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1

Fix

  • Fixed version 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

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: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences