CVE-2023-32076: In toto In-toto Vulnerable To Configuration Read Vulnerability

MODERATE
Advisory Identifier: GHSA-wc64-c5rv-32pf
CVSS 5.5
CWE-15 CWE-610
Published
Advisory Summary

CVE-2023-32076 is a MODERATE (CVSS 5.5) in-toto vulnerable to configuration read vulnerability (CWE-15: External Control of System or Configuration Setting) affecting In toto libraries in the PyPI ecosystem. The issue involves in-toto vulnerable to configuration read from local directory. Remediation is available by upgrading affected packages to version 2.0.0.

CVE-2023-32076 at a Glance

CVE Identifier CVE-2023-32076
GHSA Identifier GHSA-wc64-c5rv-32pf
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-15: External Control of System or Configuration Setting
Affected Product In toto
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2023-32076

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

in-toto fixed: 2.0.0
pip install in-toto>=2.0.0
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 in-toto

How to Check if You Are Affected

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

pip show in-toto

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-15: External Control of System or Configuration Setting, where one or more system settings or configuration elements can be externally controlled by a user. In In toto, 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

### Impact The in-toto configuration is read from various directories and allows users to configure the behavior of the framework. The files are from directories following the XDG base directory specification [1]. Among the files read is `.in_totorc` which is a hidden file in the directory in which in-toto is run. If an attacker controls the inputs to a supply chain step, they can mask their activities by also passing in an `.in_totorc` file that includes the necessary exclude patterns and settings. RC files are widely used in other systems [2] and security issues have been discovered in their implementations as well [3]. We found in our conversations with in-toto adopters that `in_totorc` is not their preferred way to configure in-toto. As none of the options supported in `in_totorc` is unique, and can be set elsewhere using API parameters or CLI arguments, we decided to drop support for `in_totorc`. ### Other Recommendations Sandbox functionary code as recommended in https://github.com/in-toto/docs/security/advisories/GHSA-p86f-xmg6-9q4x. ### References [1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html [2] https://spec.editorconfig.org/ [3] https://github.blog/2022-04-12-git-security-vulnerability-announced/

CVE-2023-32076 Affected In toto Versions

1 component(s)
Fixed Versions:
2.0.0
Product / Package Ecosystem Affected Versions Fixed Version
in-toto
PyPI
< 2.0.0
2.0.0

References

Frequently Asked Questions

What is CVE-2023-32076?
CVE-2023-32076 is a security vulnerability in In toto involving in-toto vulnerable to Configuration Read From Local Directory under CWE-15: External Control of System or Configuration Setting.
Which In toto versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: in-toto.
What version fixes CVE-2023-32076?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is in-toto affected?
Yes, in-toto is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What is the CVSS score of CVE-2023-32076?
CVE-2023-32076 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-32076?
CVE-2023-32076 is classified under CWE-15: External Control of System or Configuration Setting (One or more system settings or configuration elements can be externally controlled by a user.).
How can I check PyPI dependencies for CVE-2023-32076?
Run the dependency tree command: 'pip show in-toto'. 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-wc64-c5rv-32pf",
  "modified" : "2023-05-11T20:47:56Z",
  "published" : "2023-05-11T20:47:56Z",
  "aliases" : [ "CVE-2023-32076" ],
  "summary" : "in-toto vulnerable to Configuration Read From Local Directory",
  "details" : "### Impact\n\nThe in-toto configuration is read from various directories and allows users to configure the behavior of the framework. The files are from directories following the XDG base directory specification [1]. Among the files read is `.in_totorc` which is a hidden file in the directory in which in-toto is run. If an attacker controls the inputs to a supply chain step, they can mask their activities by also passing in an `.in_totorc` file that includes the necessary exclude patterns and settings.\n\nRC files are widely used in other systems [2] and security issues have been discovered in their implementations as well [3]. We found in our conversations with in-toto adopters that `in_totorc` is not their preferred way to configure in-toto. As none of the options supported in `in_totorc` is unique, and can be set elsewhere using API parameters or CLI arguments, we decided to drop support for `in_totorc`.\n\n### Other Recommendations\n\nSandbox functionary code as recommended in https://github.com/in-toto/docs/security/advisories/GHSA-p86f-xmg6-9q4x.\n\n### References\n\n[1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html\n[2] https://spec.editorconfig.org/\n[3] https://github.blog/2022-04-12-git-security-vulnerability-announced/\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "in-toto"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.4.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/in-toto/docs/security/advisories/GHSA-p86f-xmg6-9q4x"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/in-toto/in-toto/security/advisories/GHSA-wc64-c5rv-32pf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32076"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/in-toto/in-toto/commit/3a21d84f40811b7d191fa7bd17265c1f99599afd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/in-toto/in-toto"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/in-toto/in-toto/releases/tag/v2.0.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/in-toto/PYSEC-2023-63.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-15", "CWE-610" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-11T20:47:56Z",
    "nvd_published_at" : "2023-05-10T18:15:10Z"
  }
}