{"id":"GHSA-6pj2-5fqq-xvjc","aliases":["CVE-2021-23803","SNYK-PHP-LATTELATTE-1932226"],"title":"Incorrect Authorization in latte/latte","description":"This affects the package latte/latte before 2.10.6. There is a way to bypass allowFunctions that will affect the security of the application. When the template is set to allow/disallow the use of certain functions, adding control characters (x00-x08) after the function will bypass these restrictions.","severity":"critical","score":9.8,"published":"2022-01-06T20:56:27.000Z","modified":"2026-07-08T06:49:54.495Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"latte/latte","ranges":[{"events":[{"introduced":"0"},{"fixed":"2.10.6"}],"type":"ECOSYSTEM"}],"versions":["v2.10.1","v2.10.2","v2.10.3","v2.10.4","v2.10.5","v2.2.0","v2.2.1","v2.2.2","v2.2.3","v2.2.4","v2.2.5","v2.2.6","v2.2.7","v2.2.8","v2.2.9","v2.3.0","v2.3.1","v2.3.10","v2.3.11","v2.3.12","v2.3.13","v2.3.2","v2.3.3","v2.3.4","v2.3.5","v2.3.6","v2.3.7","v2.3.8","v2.3.9","v2.4.0","v2.4.1","v2.4.2","v2.4.3","v2.4.4","v2.4.5","v2.4.6","v2.4.7","v2.4.8","v2.4.9","v2.5.0","v2.5.1","v2.5.2","v2.5.3","v2.5.4","v2.5.5","v2.5.6","v2.5.7","v2.6.0","v2.6.1","v2.6.2","v2.6.3","v2.6.4","v2.7.0","v2.7.1","v2.7.2","v2.7.3","v2.7.4","v2.8.0","v2.8.1","v2.8.2","v2.8.3","v2.8.4","v2.8.5","v2.8.6","v2.8.7","v2.8.8","v2.9.0","v2.9.1","v2.9.2","v2.9.3","v2.9.4","v2.9.5","v2.9.6"],"fixed":["2.10.6"]}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-23803","https://github.com/nette/latte/issues/279","https://github.com/nette/latte/commit/227c86eda9a8a6d060ea8501923e768b6d992210","https://github.com/nette/latte","https://snyk.io/vuln/SNYK-PHP-LATTELATTE-1932226"],"sources":[{"name":"OSV","id":"GHSA-6pj2-5fqq-xvjc","modified":"2026-07-08T06:49:54.495161266Z","url":"https://osv.dev/vulnerability/GHSA-6pj2-5fqq-xvjc"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8}]}