Server-Side Template Injection (SSTI) occurs when an attacker can inject malicious input into templates used by a web application server. Many web frameworks use templates for rendering dynamic content, and SSTI exploits occur if the template's variables are not properly sanitized, allowing attackers to execute arbitrary code on the server.