Security mailing lists by PureSourceCode

CVE-2026-141426

LOW 2.0CVSS 4.0

The Google Drive client secret is written with permissions readable by other local users in whatstk

Incorrect Default Permissions (CWE-276) in gdrive_init() (whatstk/utils/gdrive.py) in whatstk from 0.5.0 before 0.9.0 allows another user of the same machine to read the Google Drive OAuth client secret of the user who ran it. The function creates ~/.config/whatstk/gdrive with os.makedirs and no mode argument, copies the supplied client secret file to client_secrets.json with shutil.copyfile, and writes settings.yaml through a plain open call, so all three take whatever the process umask allows. Under a default umask of 022 the directory is created 0755 and both files 0644. shutil.copyfile does not carry the source file's permissions over, so a client secret the user had restricted to 0600 is written out at 0644. Whether the files end up readable by other local users therefore depends on the umask in force when gdrive_init runs and on the permissions of the directories above them, and not on the permissions of the file the user supplied. The refresh token in credentials.json is written by pydrive2 rather than by whatstk and is observed at 0600. This results in the OAuth client secret and the generated settings being readable in plain text by other users of the machine.

Published
1 Dec 2026
Last modified
2 Dec 2026
Assigned by
4daa8cea-433a-44bd-9456-53b127fc289a
NVD status
Deferred
Weakness
CWE-276
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 4daa8cea-433a-44bd-9456-53b127fc289a (Secondary) CVSS 4.0 LOW 2.0 CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVE List Secur0 CVSS 4.0 LOW 2.0 CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://pypi.org whatstk >= 0.5.0, < 0.9.0 0.9.0

References

History

  • 2 Dec 2026 22:21 UTC · NVD: updated (other details)
  • 2 Dec 2026 21:47 UTC · CVE List: updated (other details)
  • 1 Dec 2026 20:28 UTC · NVD: first stored (published 1 Dec 2026)
  • 1 Dec 2026 19:30 UTC · CVE List: first stored (published 1 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.