Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | webpy | No fix yet | — |
| Debian 13 | webpy | No fix yet | — |
| Debian 12 | webpy | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | webpy | No fix yet | — |
| Ubuntu 26.04 LTS | webpy | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | webpy | No fix yet | — |
| Ubuntu Pro 22.04 LTS | webpy | No fix yet | — |
| Ubuntu Pro 20.04 LTS | webpy | No fix yet | — |
| Ubuntu Pro 18.04 LTS | webpy | No fix yet | — |
| Ubuntu Pro 16.04 LTS | webpy | No fix yet | — |