Skip to main content

Improper Control of Generation of Code ('Code Injection')

CVE-2024-45053

Severity High
Score 7.2/10

Summary

Fides is an open-source privacy engineering platform. The Email Templating feature uses "Jinja2" without proper input sanitization or rendering environment restrictions, allowing for Server-Side Template Injection (SSTI) that grants Remote Code Execution (RCE) to privileged users. A privileged user refers to an Admin UI user with the default "Owner" or "Contributor" role, who can escalate their access and execute code on the underlying Fides Webserver container where the Jinja template "rendering" function is executed. Users are advised to upgrade to the fixed version or later to secure their systems against this threat. There are no workarounds. This issue affects versions 2.19.0rc6 through 2.44.0rc4, and 2.44.1b0 through 2.44.1b2.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • HIGH
  • HIGH
  • HIGH

CWE-94 - Code Injection

Code injection is a type of vulnerability that allows an attacker to execute arbitrary code. This vulnerability fully compromises the machine and can cause a wide variety of security issues, such as unauthorized access to sensitive information, manipulation of data, denial of service attacks etc. Code injection is different from command injection in the fact that it is limited by the functionality of the injected language (e.g. PHP), as opposed to command injection, which leverages existing code to execute commands, usually within the context of a shell.

Advisory Timeline

  • Published