Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-16831

Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-16831
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:17 UTC · Revision 1

Source evidence

CVE-2018-16831

core-osv · Original source

Published 11 Sept 2018, 13:29 UTC

Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.

osv:CVE-2018-16831
Complete source record
{
  "id": "9d6d37ab880523d1f2b490fe48684a1b481555c636e8551518189e899376e8b8",
  "url": "https://osv.dev/vulnerability/CVE-2018-16831",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-16831",
    "summary": "Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.",
    "evidence": "osv:CVE-2018-16831",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-16831",
      "aliases": [
        "CVE-2018-16831",
        "GHSA-65j5-vpm7-6xp4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/smarty-php/smarty",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "ac9d4b587e5bf53381e21881820a9830765cb459"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "last_affected": "3.1.32"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.1.32",
            "v3.1.31",
            "v3.1.30",
            "v3.1.29",
            "v3.1.28",
            "v2.6.28",
            "v3.1.27",
            "v3.1.26",
            "v3.1.25",
            "v3.1.24",
            "v3.1.23",
            "v3.1.21",
            "v3.1.20",
            "v3.1.19",
            "v3.1.18",
            "v3.1.17",
            "v3.1.16",
            "v3.1.15",
            "v3.1.14",
            "v3.1.13",
            "v3.1.12",
            "v3.1.11",
            "v2.6.27",
            "v2.6.26",
            "v2.6.25",
            "v2.6.24"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16831.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:04.046851347Z",
      "provider": "osv",
      "references": [
        "https://github.com/smarty-php/smarty/issues/486"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-16831",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 381224,
  "published_at": "2018-09-11T13:29:01.293+00:00"
}