CVE-2023-32303: Planet Planet's Secret File Is Created Vulnerability

HIGH
Advisory Identifier: GHSA-j5fj-rfh6-qj85
CVSS 5.5
CWE-732
Published
Advisory Summary

CVE-2023-32303 is a HIGH (CVSS 5.5) planet's secret file is created vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Planet libraries in the PyPI ecosystem. The issue involves planet's secret file is created with excessive permissions. Remediation is available by upgrading affected packages to version 2.0.1.

CVE-2023-32303 at a Glance

CVE Identifier CVE-2023-32303
GHSA Identifier GHSA-j5fj-rfh6-qj85
Severity HIGH
CVSS v3.1 Base Score 5.5
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Planet
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:H/I:N/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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-32303

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

planet fixed: 2.0.1
pip install planet>=2.0.1
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 planet

How to Check if You Are Affected

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

pip show planet

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Planet, 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 secret file stores the user's Planet API authentication information. It should only be accessible by the user, but its permissions allowed the user's group and non-group to read the file as well. ### Validation Check the permissions on the secret file with `ls -l ~/.planet.json` and ensure that they read as `-rw-------` ### Patches [d71415a8](https://github.com/planetlabs/planet-client-python/commit/d71415a83119c5e89d7b80d5f940d162376ee3b7) ### Workarounds Set the secret file permissions to only user read/write by hand: ``` chmod 600 ~/.planet.json ```

CVE-2023-32303 Affected Planet Versions

1 component(s)
Fixed Versions:
2.0.1
Product / Package Ecosystem Affected Versions Fixed Version
planet
PyPI
< 2.0.1
2.0.1

References

Frequently Asked Questions

What is CVE-2023-32303?
CVE-2023-32303 is a security vulnerability in Planet involving Planet's secret file is created with excessive permissions under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Planet versions are affected?
Affected versions include releases prior to 2.0.1 across affected packages: planet.
What version fixes CVE-2023-32303?
Upgrading to 2.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is planet affected?
Yes, planet is affected in releases prior to 2.0.1. Upgrade your dependency to 2.0.1 or later.
What is the CVSS score of CVE-2023-32303?
CVE-2023-32303 has a CVSS v3.1 base score of 5.5 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-32303?
CVE-2023-32303 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check PyPI dependencies for CVE-2023-32303?
Run the dependency tree command: 'pip show planet'. 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-j5fj-rfh6-qj85",
  "modified" : "2024-10-11T20:58:37Z",
  "published" : "2023-05-12T20:55:36Z",
  "aliases" : [ "CVE-2023-32303" ],
  "summary" : "Planet's secret file is created with excessive permissions",
  "details" : "### Impact\nThe secret file stores the user's Planet API authentication information. It should only be accessible by the user, but its permissions allowed the user's group and non-group to read the file as well. \n\n### Validation\nCheck the permissions on the secret file with `ls -l ~/.planet.json` and ensure that they read as `-rw-------`\n\n### Patches\n[d71415a8](https://github.com/planetlabs/planet-client-python/commit/d71415a83119c5e89d7b80d5f940d162376ee3b7)\n\n### Workarounds\nSet the secret file permissions to only user read/write by hand:\n```\nchmod 600 ~/.planet.json\n```\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "planet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/planetlabs/planet-client-python/security/advisories/GHSA-j5fj-rfh6-qj85"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32303"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/planetlabs/planet-client-python/commit/d71415a83119c5e89d7b80d5f940d162376ee3b7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/planetlabs/planet-client-python"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/planetlabs/planet-client-python/releases/tag/2.0.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/planet/PYSEC-2023-71.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-12T20:55:36Z",
    "nvd_published_at" : "2023-05-12T21:15:09Z"
  }
}