Vulnerabilities in pkg:pypi/planet
PACKAGECVE-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.
pkg:pypi/planet
Vulnerability advisories affecting package pkg:pypi/planet. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-j5fj-rfh6-qj85 | CVE-2023-32303 | HIGH | Planet's secret file is created with excessive permissions |
CVE-2023-32303 at a Glance
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).
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.
pip install planet>=2.0.1
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
CVE-2023-32303 Affected Planet Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
planet
|
PyPI |
< 2.0.1
|
2.0.1
|
References
Frequently Asked Questions
What is CVE-2023-32303?
Which Planet versions are affected?
What version fixes CVE-2023-32303?
Is planet affected?
What is the CVSS score of CVE-2023-32303?
What CWE is associated with CVE-2023-32303?
How can I check PyPI dependencies for CVE-2023-32303?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}