Incorrect Permission Assignment for Critical Resource Affecting planet package, versions [,2.0.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (18th 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 IDSNYK-PYTHON-PLANET-5534533
  • published14 May 2023
  • disclosed12 May 2023
  • creditUnknown

Introduced: 12 May 2023

CVE-2023-32303  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade planet to version 2.0.1 or higher.

Overview

planet is a Planet SDK for Python

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource where the secret file, which stores the user's Planet API authentication information, has permissions that allow the user's group and non-group to read the file as well.

Mitigation

Check the permissions on the secret file with ls -l ~/.planet.json and ensure that they read as -rw-------

Workarounds

Users that are not able to upgrade to the fixed version can set the secret file permissions to only user read/write by hand:

chmod 600 ~/.planet.json

References

CVSS Base Scores

version 3.1