Arbitrary Code Execution Affecting ethyca-fides package, versions [2.11.0,2.19.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-ETHYCAFIDES-5885141
  • published7 Sept 2023
  • disclosed6 Sept 2023
  • creditgrmpyninja

Introduced: 6 Sep 2023

CVE-2023-41319  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade ethyca-fides to version 2.19.0 or higher.

Overview

ethyca-fides is an Open-source ecosystem for data privacy as code.

Affected versions of this package are vulnerable to Arbitrary Code Execution when the Fides webserver API is used to upload a ZIP file containing custom Python code. An attacker can execute arbitrary code on the target system within the context of the webserver python process owner on the webserver container, which by default is root, and leverage that access to attack underlying infrastructure and integrated systems by bypassing the sandboxed environment.

Note: This is only exploitable if the security configuration parameter allow_custom_connector_functions is enabled by the user deploying the Fides webserver container, either in fides.toml or by setting the env var FIDES__SECURITY__ALLOW_CUSTOM_CONNECTOR_FUNCTIONS=True.

Workaround

This vulnerability can be mitigated by ensuring that allow_custom_connector_functions in fides.toml and the FIDES__SECURITY__ALLOW_CUSTOM_CONNECTOR_FUNCTIONS are both either unset or explicitly set to False.

References

CVSS Scores

version 3.1