CVE-2026-79310

Description

A flaw was found in webpy. This vulnerability, known as Server-Side Template Injection (SSTI), allows a remote attacker to execute malicious code on the server. By exploiting how the application precompiles and renders templates, an attacker can bypass security measures and run arbitrary Python code or operating system commands. This could lead to complete compromise of the affected server.

Déclaration

Red Hat has rated this vulnerability as Important because an authenticated attacker who manipulates template files can bypass execution restrictions and achieve arbitrary code execution on the host server. The blast radius involves full compromise of the underlying application environment, justifying an Important rating rather than Moderate. However, exploitation requires a specific application design where templates are precompiled from directories accessible to untrusted users, limiting exposure in environments with strict filesystem boundaries.

Comprendre la Défaillance (CWE)

Access Control

Technical Impact: Bypass Protection Mechanism

In some cases, injectable code controls authentication; this may lead to a remote vulnerability.

Access Control

Technical Impact: Gain Privileges or Assume Identity

Injected code can access resources that the attacker is directly prevented from accessing.

Integrity,Confidentiality,Availability

Technical Impact: Execute Unauthorized Code or Commands

When a product allows a user's input to contain code syntax, it might be possible for an attacker to craft the code in such a way that it will alter the intended control flow of the product. As a result, code injection can often result in the execution of arbitrary code. Code injection attacks can also lead to loss of data integrity in nearly all cases, since the control-plane data injected is always incidental to data recall or writing.

Non-Repudiation

Technical Impact: Hide Activities

Often the actions performed by injected control code are unlogged.

Questions fréquemment posées

Vous souhaitez recevoir des notifications d'errata ? Signez ici.