Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-23803

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-23803
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:15 UTC · Revision 1

Source evidence

CVE-2021-23803

core-osv · Original source

Published 17 Dec 2021, 20:15 UTC

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.

osv:CVE-2021-23803
Complete source record
{
  "id": "4cfc5e79d65c6fde894f404075d4e826c2604d6e44adbe6dda0faaab1741c8d7",
  "url": "https://osv.dev/vulnerability/CVE-2021-23803",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-23803",
    "summary": "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.",
    "evidence": "osv:CVE-2021-23803",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-23803",
      "aliases": [
        "CVE-2021-23803",
        "GHSA-6pj2-5fqq-xvjc",
        "SNYK-PHP-LATTELATTE-1932226"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nette/latte",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8a9bd8af76557fc35abae639ab7b966af706fec9"
                },
                {
                  "fixed": "227c86eda9a8a6d060ea8501923e768b6d992210"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:nette:latte:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.10.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "227c86eda9a8a6d060ea8501923e768b6d992210"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.10.5",
            "v2.10.4",
            "v2.10.3",
            "v2.10.2",
            "v2.10.1",
            "v2.6.2",
            "v2.9.2",
            "v2.9.1",
            "v2.9.0",
            "v2.8.3",
            "v2.8.2",
            "v2.8.1",
            "v2.8.0",
            "v2.7.1",
            "v2.7.0",
            "v2.6.1",
            "v2.6.0",
            "v2.5.4",
            "v2.5.3",
            "v2.5.2",
            "v2.5.1",
            "v2.5.0",
            "v2.4.3",
            "v2.4.2",
            "v2.4.1",
            "v2.4.0",
            "v2.3.2",
            "v2.3.1",
            "v2.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23803.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:38.196260747Z",
      "provider": "osv",
      "references": [
        "https://github.com/nette/latte/commit/227c86eda9a8a6d060ea8501923e768b6d992210",
        "https://github.com/nette/latte/issues/279",
        "https://snyk.io/vuln/SNYK-PHP-LATTELATTE-1932226"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-23803",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384456,
  "published_at": "2021-12-17T20:15:08.287+00:00"
}