{"api_version":"1","generated_at":"2026-04-23T10:40:31+00:00","cve":"CVE-2018-13982","urls":{"html":"https://cve.report/CVE-2018-13982","api":"https://cve.report/api/cve/CVE-2018-13982.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-13982","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-13982"},"summary":{"title":"CVE-2018-13982","description":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2018-09-18 21:29:00","updated_at":"2021-11-02 14:01:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe","name":"https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"- bugfix  possible Security Vulnerability in Smarty_Security class. · smarty-php/smarty@8d21f38 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00015.html","name":"[debian-lts-announce] 20211020 [SECURITY] [DLA 2618-3] smarty3 regression update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2618-3] smarty3 regression update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50","name":"https://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"- bugfix  regarding Security Vulnerability did not solve the problem … · smarty-php/smarty@2e081a5 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1","name":"https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"- bugfix  regarding Security Vulnerability did not solve the problem … · smarty-php/smarty@c9dbe1d · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a240581531","name":"https://github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a240581531","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"Release version 3.1.32 · smarty-php/smarty@bcedfd6 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html","name":"[debian-lts-announce] 20210416 [SECURITY] [DLA 2618-2] smarty3 regression update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2618-2] smarty3 regression update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html","name":"[debian-lts-announce] 20210405 [SECURITY] [DLA 2618-1] smarty3 security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2618-1] smarty3 security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal","name":"https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal","refsource":"MISC","tags":["Exploit","Patch","Third Party Advisory"],"title":"advisories/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal at public · sbaresearch/advisories · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8","name":"https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8","refsource":"CONFIRM","tags":["Patch","Vendor Advisory"],"title":"- bugfix  regarding Security Vulnerability did not solve the problem … · smarty-php/smarty@f9ca3c6 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-13982","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-13982","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"13982","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"13982","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"smarty","cpe5":"smarty","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"13982","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"smarty","cpe5":"smarty","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2018-13982","qid":"178513","title":"Debian Security Update for smarty3 (DLA 2618-1)"},{"cve":"CVE-2018-13982","qid":"178545","title":"Debian Security Update for smarty3 (DLA 2618-2)"},{"cve":"CVE-2018-13982","qid":"178846","title":"Debian Security Update for smarty3 (DLA 2618-3)"},{"cve":"CVE-2018-13982","qid":"198715","title":"Ubuntu Security Notification for Smarty Vulnerabilities (USN-5348-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-13982","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50","refsource":"CONFIRM","url":"https://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50"},{"name":"https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8","refsource":"CONFIRM","url":"https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8"},{"name":"https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1","refsource":"CONFIRM","url":"https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1"},{"name":"https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe","refsource":"CONFIRM","url":"https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe"},{"name":"https://github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a240581531","refsource":"CONFIRM","url":"https://github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a240581531"},{"name":"https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal","refsource":"MISC","url":"https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversal"},{"refsource":"MLIST","name":"[debian-lts-announce] 20210405 [SECURITY] [DLA 2618-1] smarty3 security update","url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20210416 [SECURITY] [DLA 2618-2] smarty3 regression update","url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20211020 [SECURITY] [DLA 2618-3] smarty3 regression update","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00015.html"}]}},"nvd":{"publishedDate":"2018-09-18 21:29:00","lastModifiedDate":"2021-11-02 14:01:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*","versionEndExcluding":"3.1.33","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"13982","Ordinal":"130645","Title":"CVE-2018-13982","CVE":"CVE-2018-13982","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"13982","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"13982","Ordinal":"2","NoteData":"2018-09-18","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"13982","Ordinal":"3","NoteData":"2021-10-20","Type":"Other","Title":"Modified"}]}}}