CVE-2025-27154: Python Token Cache File Write Without Restrictive Chmod
Method `$METHOD` writes credential/token data to a file via `open(self.$PATH, "w", ...)` without restricting the file's permissions. The created file inherits the process umask (typically yielding mode `rw-r--r--` / 0644), which exposes the stored secret to any other local user or process running as a different UID (CWE-276 — Incorrect Default Permissions; C
greprules fetch cve-2025-27154-python-token-cache-file-write-without-restrictive-chmod --engine opengrepDescription
Method `$METHOD` writes credential/token data to a file via `open(self.$PATH, "w", ...)` without restricting the file's permissions. The created file inherits the process umask (typically yielding mode `rw-r--r--` / 0644), which exposes the stored secret to any other local user or process running as a different UID (CWE-276 — Incorrect Default Permissions; C
Community feedback
0 rule-level signals from signed-in users.
- Useful reports
- 0
- Context false positives
- 0
- Metadata suggestions
- 0
Contextual precision
Aggregated from approved scan feedback. False-positive reports describe observed scan contexts, not a global rule verdict.
- Findings observed
- 0
- Projects
- 0
- Reporters
- 0
Precision details are collecting more signed-in reports before verdict counts or ratios are emphasized.
No approved finding verdicts yet.
No scan diagnostics reported yet.