Skip to content
Heist/ feed
Back to feed
High

webpy — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-79310

webpy web.py 0.76 is vulnerable to server-side template injection (SSTI). The template engine can be tricked into executing attacker-controlled template code that built-in security checks are designed to reject. When an application precompiles templates from a directory the attacker can write to and later renders them through the precompiled template loader, the sandbox is bypassed and the attacker's code runs, resulting in arbitrary Python code execution and OS command execution on the server.

Products
webpy
Affected versions
1:0.37+20120626-1, 1:0.37+20120626-1ubuntu0.1~esm1, 1:0.38+20170615-1, 1:0.38+20170615-1ubuntu0.1~esm1, 1:0.38-1, 1:0.39+20181101-1, 1:0.40-2, 1:0.40-2ubuntu0.1~esm1, 1:0.61-1, 1:0.61-1ubuntu0.1~esm1, 1:0.62-4, 1:0.62-4ubuntu0.1~esm1, 1:0.62-6, 1:0.70-1, 1:0.76-1
Fixed versions
Not specified
CVEs
CVE-2026-79310
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:32 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-79310

core-osv · Original source

Published 23 Sept 2026, 16:16 UTC

webpy web.py 0.76 is vulnerable to server-side template injection (SSTI). The template engine can be tricked into executing attacker-controlled template code that built-in security checks are designed to reject. When an application precompiles templates from a directory the attacker can write to and later renders them through the precompiled template loader, the sandbox is bypassed and the attacker's code runs, resulting in arbitrary Python code execution and OS command execution on the server.

osv:UBUNTU-CVE-2026-79310

webpy

Fixed versions: Not specified

webpy

Fixed versions: Not specified

webpy

Fixed versions: Not specified

webpy

Fixed versions: Not specified

webpy

Fixed versions: Not specified

webpy

Fixed versions: Not specified

webpy

Fixed versions: Not specified

Complete source record
{
  "id": "fddeacf351cdad5b5b7ab2759f2459d12236104cea419afb795d03e417f254e1",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-79310",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-79310",
    "summary": "webpy web.py 0.76 is vulnerable to server-side template injection (SSTI). The template engine can be tricked into executing attacker-controlled template code that built-in security checks are designed to reject. When an application precompiles templates from a directory the attacker can write to and later renders them through the precompiled template loader, the sandbox is bypassed and the attacker's code runs, resulting in arbitrary Python code execution and OS command execution on the server.",
    "evidence": "osv:UBUNTU-CVE-2026-79310",
    "products": [
      {
        "name": {
          "value": "webpy",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:0.37+20120626-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:0.37+20120626-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "webpy",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:0.38-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:0.38+20170615-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:0.38+20170615-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "webpy",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:0.39+20181101-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:0.40-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:0.40-2ubuntu0.1~esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "webpy",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:0.61-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1:0.61-1ubuntu0.1~esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "webpy",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:0.62-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1:0.62-4ubuntu0.1~esm1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "webpy",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:0.62-6",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1:0.70-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1:0.76-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "webpy",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:0.62-6",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-79310",
      "aliases": [
        "UBUNTU-CVE-2026-79310"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "webpy",
            "purl": "pkg:deb/ubuntu/webpy?arch=source&distro=esm-apps-legacy%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1:0.37+20120626-1",
            "1:0.37+20120626-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-79310.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-webpy",
                "binary_version": "1:0.37+20120626-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "webpy",
            "purl": "pkg:deb/ubuntu/webpy?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1:0.38-1",
            "1:0.38+20170615-1",
            "1:0.38+20170615-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-79310.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-webpy",
                "binary_version": "1:0.38+20170615-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-webpy",
                "binary_version": "1:0.38+20170615-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "webpy",
            "purl": "pkg:deb/ubuntu/webpy?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "1:0.39+20181101-1",
            "1:0.40-2",
            "1:0.40-2ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-79310.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-webpy",
                "binary_version": "1:0.40-2ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "webpy",
            "purl": "pkg:deb/ubuntu/webpy?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "1:0.61-1",
            "1:0.61-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-79310.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-webpy",
                "binary_version": "1:0.61-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "webpy",
            "purl": "pkg:deb/ubuntu/webpy?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "1:0.62-4",
            "1:0.62-4ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-79310.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-webpy",
                "binary_version": "1:0.62-4ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "webpy",
            "purl": "pkg:deb/ubuntu/webpy?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1:0.62-6",
            "1:0.70-1",
            "1:0.76-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-79310.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-webpy",
                "binary_version": "1:0.76-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "webpy",
            "purl": "pkg:deb/ubuntu/webpy?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1:0.62-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-79310.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-webpy",
                "binary_version": "1:0.62-6"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:05.504731191Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-79310"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-79310",
        "https://www.cve.org/CVERecord?id=CVE-2026-79310",
        "https://github.com/lichoin/TraceLoom/blob/main/CVEs/CVE-2026-79310.md",
        "https://github.com/webpy/webpy"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-79310",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356709,
  "published_at": "2026-09-23T16:16:00+00:00"
}