CVE-2024-31223: Ethyca fides Information Disclosure Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-53q7-4874-24qg
CVSS 5.3
CWE-497
Published
Advisory Summary

CVE-2024-31223 is a MODERATE (CVSS 5.3) information disclosure vulnerability vulnerability (CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere) affecting Ethyca fides libraries in the PyPI ecosystem. The issue involves information disclosure vulnerability in privacy center of server_side_fides_api_url. Remediation is available by upgrading affected packages to version 2.39.2.

CVE-2024-31223 at a Glance

CVE Identifier CVE-2024-31223
GHSA Identifier GHSA-53q7-4874-24qg
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere
Affected Product Ethyca fides
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-31223

To remediate this vulnerability, upgrade all affected Ethyca fides dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ethyca-fides fixed: 2.39.2
pip install ethyca-fides>=2.39.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show ethyca-fides

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-31223, inspect your installed packages using pip:

pip show ethyca-fides

Analyze the terminal output to locate any version of Ethyca fides in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.39.2), your application is affected.

Note: The pip show ethyca-fides command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere, where the product does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the product does. In Ethyca fides, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

`SERVER_SIDE_FIDES_API_URL` is a server-side configuration environment variable used by the Fides Privacy Center to communicate with the Fides webserver backend. The value of this variable is a URL which typically includes a private IP address, private domain name, and/or port. This vulnerability allows an unauthenticated attacker to make a HTTP GET request from the Privacy Center that discloses the value of this server-side URL. ### Impact Disclosure of server-side configuration giving an attacker information on server-side ports, private IP addresses, and/or private domain names. ### Patches The vulnerability has been patched in Fides version `2.39.2`. Users are advised to upgrade to this version or later to secure their systems against this threat. ### Workarounds There are no workarounds. ### Proof of Concept 1. Set the value of the environment variable `FIDES_PRIVACY_CENTER__SERVER_SIDE_FIDES_API_URL` of your Fides Privacy Center container before start-up to a private value such as `https://some.private.domain.name/api/v1` and start the Privacy Center application. 2. Once the application is up, perform a HTTP GET request of the Privacy Center's main page e.g. `https://privacy.example.com` . The value of `SERVER_SIDE_FIDES_API_URL` is returned in the response's body. ``` ~ ❯ curl -s https://privacy.example.com/ | \ grep '__NEXT_DATA__' | \ sed 's/.*<script id="__NEXT_DATA__" type="application\/json">//;s/<\/script>.*//' | \ jq '.props.serverEnvironment.settings.SERVER_SIDE_FIDES_API_URL' "https://some.private.domain.name/api/v1" ```

CVE-2024-31223 Affected Ethyca fides Versions

1 component(s)
Fixed Versions:
2.39.2
Product / Package Ecosystem Affected Versions Fixed Version
ethyca-fides
PyPI
≥ 2.19.0
< 2.39.2
2.39.2

References

Frequently Asked Questions

What is CVE-2024-31223?
CVE-2024-31223 is a security vulnerability in Ethyca fides involving Information Disclosure Vulnerability in Privacy Center of SERVER_SIDE_FIDES_API_URL under CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere.
Which Ethyca fides versions are affected?
Affected versions include releases prior to 2.39.2 across affected packages: ethyca-fides.
What version fixes CVE-2024-31223?
Upgrading to 2.39.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ethyca-fides affected?
Yes, ethyca-fides is affected in releases prior to 2.39.2. Upgrade your dependency to 2.39.2 or later.
What is the CVSS score of CVE-2024-31223?
CVE-2024-31223 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-31223?
CVE-2024-31223 is classified under CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere (The product does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the product does.).
How can I check PyPI dependencies for CVE-2024-31223?
Run the dependency tree command: 'pip show ethyca-fides'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-53q7-4874-24qg",
  "modified" : "2024-07-05T20:40:06Z",
  "published" : "2024-07-05T20:40:06Z",
  "aliases" : [ "CVE-2024-31223" ],
  "summary" : "Information Disclosure Vulnerability in Privacy Center of SERVER_SIDE_FIDES_API_URL",
  "details" : "`SERVER_SIDE_FIDES_API_URL` is a server-side configuration environment variable used by the Fides Privacy Center to communicate with the Fides webserver backend. The value of this variable is a URL which typically includes a private IP address, private domain name, and/or port.\n\nThis vulnerability allows an unauthenticated attacker to make a HTTP GET request from the Privacy Center that discloses the value of this server-side URL.\n\n### Impact\n\nDisclosure of server-side configuration giving an attacker information on server-side ports, private IP addresses, and/or private domain names.\n\n### Patches\nThe vulnerability has been patched in Fides version `2.39.2`. Users are advised to upgrade to this version or later to secure their systems against this threat.\n\n### Workarounds\nThere are no workarounds.\n\n### Proof of Concept\n\n1. Set the value of the environment variable `FIDES_PRIVACY_CENTER__SERVER_SIDE_FIDES_API_URL` of your Fides Privacy Center container before start-up to a private value such as `https://some.private.domain.name/api/v1` and start the Privacy Center application.\n\n2. Once the application is up, perform a HTTP GET request of the Privacy Center's main page e.g. `https://privacy.example.com` . The value of `SERVER_SIDE_FIDES_API_URL` is returned in the response's body.\n\n\n```\n~ ❯ curl -s https://privacy.example.com/ | \\\ngrep '__NEXT_DATA__' | \\\nsed 's/.*<script id=\"__NEXT_DATA__\" type=\"application\\/json\">//;s/<\\/script>.*//' | \\\njq '.props.serverEnvironment.settings.SERVER_SIDE_FIDES_API_URL'\n\"https://some.private.domain.name/api/v1\"\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ethyca-fides"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.19.0"
      }, {
        "fixed" : "2.39.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ethyca/fides/security/advisories/GHSA-53q7-4874-24qg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-31223"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ethyca/fides/commit/0555080541f18a5aacff452c590ac9a1b56d7097"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ethyca/fides/commit/cd510216b281de5443ec1c126add95cc5be0970a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ethyca/fides"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-497" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-05T20:40:06Z",
    "nvd_published_at" : "2024-07-03T18:15:05Z"
  }
}