# CVE-2021-23803: Access Control Bypass

- Severity: Critical 9.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.63%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-12-17T20:05:25.479Z
- Modified: 2026-07-08T06:49:54.495Z
- Also known as: GHSA-6pj2-5fqq-xvjc, SNYK-PHP-LATTELATTE-1932226
- Weaknesses: CWE-863
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- latte/latte: from unspecified before 2.10.6
- latte/latte (Packagist): before 2.10.6
- nette latte: before 2.10.6

## Every score

- snyk: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-PHP-LATTELATTE-1932226> (exploit, patch, third-party-advisory, web)
- <https://github.com/nette/latte/issues/279> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/nette/latte/commit/227c86eda9a8a6d060ea8501923e768b6d992210> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23803> (advisory)
- <https://github.com/nette/latte> (package)

## Sources

- CVE List: [CVE-2021-23803](https://www.cve.org/CVERecord?id=CVE-2021-23803), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-6pj2-5fqq-xvjc](https://github.com/advisories/GHSA-6pj2-5fqq-xvjc), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-23803](https://nvd.nist.gov/vuln/detail/CVE-2021-23803), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23803 · Whole record: https://cve.day/CVE-2021-23803.json · Rebuilt by cve.day 2026-11-25T22:58:06.072Z
