{"schemaVersion":3,"id":"CVE-2026-62992","aliases":["UBUNTU-CVE-2026-62992","DEBIAN-CVE-2026-62992"],"status":"published","duplicateOf":null,"title":null,"description":"Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 5.8.2 (and 4.5.7 on the 4.x line), Security::_checkDir() does not fully resolve symbolic links before validating that a requested path lies within a configured secure directory. An attacker able to place or reference a symlink within a directory Smarty treats as trusted (e.g., a template or config directory) could use it to point outside the intended secure directory, bypassing the containment check and reading arbitrary files accessible to the PHP process. This issue is fixed in versions 5.8.2 and 4.5.7.","dates":{"published":"2026-08-07T15:02:28.873Z","modified":"2026-08-07T16:00:28.634Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.9,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00533,"percentile":0.43913,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.16899999999999996,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00364},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00533,"percentile":0.43913}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00364,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00533,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00533,"percentile":0.43913}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following","description":"The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.","type":"weakness","status":"Incomplete","abstraction":"Compound","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/61.html"}],"affected":[{"vendor":"debian","product":"smarty3","name":"smarty3","label":"smarty3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/smarty3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"smarty4","name":"smarty4","label":"smarty4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/smarty4","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"smarty3","name":"smarty3","label":"smarty3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/smarty3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"smarty4","name":"smarty4","label":"smarty4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/smarty4","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"smarty-php","product":"smarty","name":"smarty","label":"smarty","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0, < 5.8.2","noFixRecorded":false,"fixedIn":null},{"text":"< 4.5.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.8.2 | < 4.5.7","eol":null,"hubHref":"/vendor/smarty-php/smarty"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-f6wf-28g6-769x","label":"github.com/smarty-php/smarty/security/advisories/GHSA-f6wf-28g6-769x","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/smarty-php/smarty/commit/99c048ce7a590c519b79fbd38ad0143a08183a1f","label":"github.com/smarty-php/smarty/commit/99c048ce7a590c519b79fbd38ad0143a08183a1f","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90","label":"github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.5.7","label":"github.com/smarty-php/smarty/releases/tag/v4.5.7","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.2","label":"github.com/smarty-php/smarty/releases/tag/v5.8.2","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-62992","label":"ubuntu.com/security/CVE-2026-62992","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-62992","label":"www.cve.org/CVERecord?id=CVE-2026-62992","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-62992","label":"security-tracker.debian.org/tracker/CVE-2026-62992","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-07T15:02:28.873Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-07T16:00:28.634Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T04:07:20.971Z","stale":false,"partial":false}}