CVE catalog

CVE-2018-13982

smarty3: CVE-2018-13982

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
3.46% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiansmarty3sid3.1.48-2fixed
Debiansmarty3forky3.1.48-2fixed
Debiansmarty3trixie3.1.48-2fixed
Debiansmarty3bookworm3.1.47-2+deb12u1fixed
Debiansmarty3bookworm-security3.1.47-2+deb12u1fixed
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-2vulnerable
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-3vulnerable
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1fixed
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-2vulnerable
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-3vulnerable
Ubuntusmarty318.043.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansmarty3sourcesid3.1.33+20180830.1.3a78a21f+selfpack1-1not yet assignedNot reportedNot reported
Debiansmarty3sourceforky3.1.33+20180830.1.3a78a21f+selfpack1-1not yet assignedNot reportedNot reported
Debiansmarty3sourcetrixie3.1.33+20180830.1.3a78a21f+selfpack1-1not yet assignedNot reportedNot reported
Debiansmarty3sourcebookworm3.1.33+20180830.1.3a78a21f+selfpack1-1not yet assignedNot reportedNot reported
Ubuntusmarty3deb18.043.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1Not reportedUSN-5348-1Not reported
Ubuntusmarty3deb18.043.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1Not reportedUBUNTU-CVE-2018-13982Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [smarty3]Fixed
    Details (4)
    • 3.1.47-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.1.33+20180830.1.3a78a21f+selfpack1-1

      dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.1.33+20180830.1.3a78a21f+selfpack1-1

      dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm-security

      Fixed · Fixed: 3.1.33+20180830.1.3a78a21f+selfpack1-1

      dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm-security

      Fixed · Fixed: 3.1.33+20180830.1.3a78a21f+selfpack1-1

      dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12

[Debian 13 (Trixie)]

  • [smarty3]Fixed
    Details (2)
    • 3.1.48-2 · all · trixie

      Fixed · Fixed: 3.1.33+20180830.1.3a78a21f+selfpack1-1

      dsa · smarty3 · debian · 13

    • 3.1.48-2 · all · trixie

      Fixed · Fixed: 3.1.33+20180830.1.3a78a21f+selfpack1-1

      dsa · smarty3 · debian · 13

Observed:

References