{"id":"GHSA-36m2-8rhx-f36j","aliases":["CVE-2022-21648"],"title":"Sandbox bypass in Latte templates","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"### Impact\nThe problem affects users who use the sandbox in Latte and templates from untrusted sources.\n\n### Patches\nSandbox first appeared in Latte 2.8.0. The issue is fixed in the versions 2.8.8, 2.9.6 and 2.10.8. \n\n### References\nThe issues were discovered by\n- JinYiTong (https://github.com/JinYiTong)\n- 赵钰迪 <20212010122@fudan.edu.cn>","severity":"high","score":8.2,"published":"2022-01-06T23:17:07.000Z","modified":"2023-11-08T04:08:06.069Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"latte/latte","sources":[{"name":"OSV · GHSA-36m2-8rhx-f36j","url":"https://osv.dev/vulnerability/GHSA-36m2-8rhx-f36j"}],"ranges":[{"events":[{"introduced":"2.10.0"},{"fixed":"2.10.8"}],"type":"ECOSYSTEM"}],"versions":["v2.10.1","v2.10.2","v2.10.3","v2.10.4","v2.10.5","v2.10.6","v2.10.7"],"fixed":["2.10.8"]},{"ecosystem":"Packagist","name":"latte/latte","sources":[{"name":"OSV · GHSA-36m2-8rhx-f36j","url":"https://osv.dev/vulnerability/GHSA-36m2-8rhx-f36j"}],"ranges":[{"events":[{"introduced":"2.9.0"},{"fixed":"2.9.6"}],"type":"ECOSYSTEM"}],"versions":["v2.9.0","v2.9.1","v2.9.2","v2.9.3","v2.9.4","v2.9.5"],"fixed":["2.9.6"]},{"ecosystem":"Packagist","name":"latte/latte","sources":[{"name":"OSV · GHSA-36m2-8rhx-f36j","url":"https://osv.dev/vulnerability/GHSA-36m2-8rhx-f36j"}],"ranges":[{"events":[{"introduced":"2.8.0"},{"fixed":"2.8.8"}],"type":"ECOSYSTEM"}],"versions":["v2.8.0","v2.8.1","v2.8.2","v2.8.3","v2.8.4","v2.8.5","v2.8.6","v2.8.7"],"fixed":["2.8.8"]}],"sourceAffected":[],"references":["https://github.com/nette/latte/security/advisories/GHSA-36m2-8rhx-f36j","https://nvd.nist.gov/vuln/detail/CVE-2022-21648","https://github.com/nette/latte/commit/9e1b4f7d70f7a9c3fa6753ffa7d7e450a3d4abb0","https://github.com/nette/latte"],"sources":[{"name":"OSV","id":"GHSA-36m2-8rhx-f36j","modified":"2023-11-08T04:08:06.069653Z","url":"https://osv.dev/vulnerability/GHSA-36m2-8rhx-f36j"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","score":8.2}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-29T00:35:31.531Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}