{"id":"UBUNTU-CVE-2021-23803","details":"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.","modified":"2025-10-24T04:50:09Z","published":"2021-12-17T20:15:00Z","upstream":["CVE-2021-23803"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23803"},{"type":"REPORT","url":"https://github.com/nette/latte/commit/227c86eda9a8a6d060ea8501923e768b6d992210"},{"type":"REPORT","url":"https://github.com/nette/latte/issues/279"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-PHP-LATTELATTE-1932226"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23803"}],"affected":[{"package":{"name":"php-nette","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/php-nette@2.3.8-1ubuntu1+esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.4-1","2.3.5-1","2.3.7-1","2.3.8-1","2.3.8-1ubuntu1","2.3.8-1ubuntu1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"php-nette","binary_version":"2.3.8-1ubuntu1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23803.json"}},{"package":{"name":"php-nette","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/php-nette@2.4-20160731-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4-20160731-1","2.4-20160731-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4-20160731-1ubuntu0.1","binary_name":"php-nette"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23803.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}