Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-141426— The Google Drive client secret is written with permissions readable by other local users in whatstk

Quick assessment

Affected
lucasrodes whatstk
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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/wh

CVSS 2.0 · Low
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-141426

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
The Google Drive client secret is written with permissions readable by other local users in whatstk
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
缺省权限不正确
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
lucasrodes whatstk 0.5.0 ~ 0.9.0 -

II. Public POCs for CVE-2026-141426

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-141426

请登录查看更多情报信息。

Other References for CVE-2026-141426 (2)

IV. Related Vulnerabilities