Skip to content
Heist/ feed
Back to feed
High

smarty3, smarty4 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-82531

Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection vulnerability where the top-level nocache_hash is never restored during extends:/multi-component template inheritance, leaving it null. Attackers can supply assigned data containing a forged SmartyNocache marker that is copied verbatim into the regenerated PHP cache file, executing arbitrary PHP on include for remote code execution.

Products
smarty3, smarty4
Affected versions
3.1.47-2, 3.1.47-2+deb12u1, 3.1.48-1, 3.1.48-2, 4.3.0-1, 4.3.0-1+deb12u1, 4.3.0-1+deb12u2, 4.3.1-1, 4.5.4-1, 4.5.5-1
Fixed versions
Not specified
CVEs
CVE-2026-82531
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 02:54 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-82531

core-osv · Original source

Published 6 Oct 2026, 13:16 UTC

Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection vulnerability where the top-level nocache_hash is never restored during extends:/multi-component template inheritance, leaving it null. Attackers can supply assigned data containing a forged SmartyNocache marker that is copied verbatim into the regenerated PHP cache file, executing arbitrary PHP on include for remote code execution.

osv:DEBIAN-CVE-2026-82531

smarty3

Fixed versions: Not specified

smarty3

Fixed versions: Not specified

smarty3

Fixed versions: Not specified

smarty4

Fixed versions: Not specified

smarty4

Fixed versions: Not specified

smarty4

Fixed versions: Not specified

Complete source record
{
  "id": "17b4ad318c7ea06374317c4e4ebb18136adecdc0c5aeb50b48c40e0ab44468f9",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-82531",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-82531",
    "summary": "Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection vulnerability where the top-level nocache_hash is never restored during extends:/multi-component template inheritance, leaving it null. Attackers can supply assigned data containing a forged SmartyNocache marker that is copied verbatim into the regenerated PHP cache file, executing arbitrary PHP on include for remote code execution.",
    "evidence": "osv:DEBIAN-CVE-2026-82531",
    "products": [
      {
        "name": {
          "value": "smarty3",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.47-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.1.47-2+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.1.48-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.1.48-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "smarty3",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.48-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "smarty3",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.48-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "smarty4",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.3.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.3.0-1+deb12u1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.3.0-1+deb12u2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.3.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.5.4-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.5.5-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "smarty4",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.5.5-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "smarty4",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.5.5-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-82531",
      "aliases": [
        "DEBIAN-CVE-2026-82531"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "smarty3",
            "purl": "pkg:deb/debian/smarty3?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "3.1.47-2",
            "3.1.47-2+deb12u1",
            "3.1.48-1",
            "3.1.48-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82531.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "smarty3",
            "purl": "pkg:deb/debian/smarty3?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "3.1.48-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82531.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "smarty3",
            "purl": "pkg:deb/debian/smarty3?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "3.1.48-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82531.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "smarty4",
            "purl": "pkg:deb/debian/smarty4?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "4.3.0-1",
            "4.3.0-1+deb12u1",
            "4.3.0-1+deb12u2",
            "4.3.1-1",
            "4.5.4-1",
            "4.5.5-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82531.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "smarty4",
            "purl": "pkg:deb/debian/smarty4?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "4.5.5-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82531.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "smarty4",
            "purl": "pkg:deb/debian/smarty4?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "4.5.5-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82531.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-07T05:00:14.028257707Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-82531"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-82531"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-82531",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 93152,
  "published_at": "2026-10-06T13:16:50.18+00:00"
}