Skip to main content

garminconnect CVE-2026-54447

| EUVDEUVD-2026-77804 HIGH
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-07-15 https://github.com/cyberjunky/python-garminconnect GHSA-wjhr-76vg-2hvc PYSEC-2026-3467
8.4
CVSS 3.1 · Vendor: https://github.com/cyberjunky/python-garminconnect
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain unprivileged local account on shared host
  2. Delivery
    Read world-readable garmin_tokens.json
  3. Exploit
    Extract di_refresh_token
  4. Execution
    Exchange token at Garmin OAuth endpoint
  5. Impact
    Access victim Garmin Connect account and devices

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
Exploitation Conditions

Exploitation requires: (1) the victim uses garminconnect <= 0.3.4 with token persistence enabled (Garmin.login(tokenstore=...), the default in all shipped examples pointing at ~/.garminconnect); (2) the token file is written under a permissive umask (the default 022, producing 0o644); and (3) the attacker already holds a separate, unprivileged interactive local account on the same host with read access to the victim's home path. Limiting factors that reduce real risk: the attack is entirely local (no network vector), does not work on Windows (POSIX modes only), and is moot on single-user or per-user-isolated deployments where no other local account exists or where a restrictive umask (077) was in effect at write time. No authentication to Garmin and no user interaction by the victim beyond a normal login is needed.

Impact

The provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N, base 8.4 High) is internally consistent with the description: exploitation is local (a second user account on the same host), needs no elevated privileges, no user interaction, and the scope change reflects that a host-local file exposure cascades into full compromise of an off-host cloud account. However, the attack is gated by real-world preconditions that a raw 8.4 understates - the attacker must already have an interactive local account on the same multi-user machine AND the victim must have logged in under a permissive umask, which is common but not guaranteed on single-user desktops or containerized deployments where no second user exists. No EPSS score, SSVC decision, KEV entry, or POC was provided; absent those, this reads as a real-but-bounded local privilege/credential-escalation issue rather than an internet-facing mass-exploitation threat. It is not automatable at scale (no network vector) and is best prioritized on genuinely shared hosts.

Exploit ScenarioDerived

On a shared Linux jump host, a victim runs a script that logs into Garmin Connect via garminconnect 0.3.4, which writes ~/.garminconnect/garmin_tokens.json as 0o644. A separate unprivileged local user simply runs cat /home/victim/.garminconnect/garmin_tokens.json, extracts di_refresh_token, and replays it against Garmin's OAuth endpoint to mint access tokens and read/modify the victim's health data and registered devices. No POC was published, but the exploit is a plain file read requiring no tooling given AV:L/AC:L/PR:L.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 15, 2026

Local credential theft in the garminconnect Python library (versions <= 0.3.4) stems from writing its OAuth token store to disk without an explicit file mode, so under the default umask 022 the file garmin_tokens.json - containing the DI refresh token - is created world-readable (0o644). Any unprivileged co-tenant on a shared Linux or macOS host can read the token and exchange it at Garmin's OAuth endpoint for fresh access tokens, gaining persistent access to the victim's Garmin Connect account. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the fix in 0.3.5 is confirmed and the issue is trivially reproducible under default configuration.

RemediationAI

Vendor-released patch: upgrade to garminconnect >= 0.3.5 (pip install --upgrade garminconnect), which forces the directory to 0o700 and the token file to 0o600 via os.open with O_CREAT|O_NOFOLLOW regardless of umask (commit 77a3837). Critically, upgrading only tightens permissions on the NEXT write, so any already-exposed file stays world-readable until then - immediately run chmod 600 ~/.garminconnect/garmin_tokens.json and chmod 700 ~/.garminconnect, or delete the store and re-authenticate to mint a fresh one. If the file was exposed on a shared host, treat the refresh token as compromised and rotate it by deleting the store and logging in again, since the old token remains valid until revoked. If you cannot upgrade, the manual chmod 700/600 on the directory and file is the direct compensating control; its only side effect is that it must be reapplied after any process that rewrites the token store under the old code. The advisory and patch commits are at https://github.com/cyberjunky/python-garminconnect/security/advisories/GHSA-wjhr-76vg-2hvc and https://github.com/cyberjunky/python-garminconnect/commit/77a3837f1f79d486663c9646438e70e8319e1a48.

Affected VersionsENISA

python-garminconnect < 0.3.5

Affected Packages

pypi garminconnect fix: 0.3.5
euvd python_garminconnect fix: 0.3.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

garminconnect is a widely-used unofficial Python client (distributed as pip/garminconnect) for Garmin Connect's web API, using Garmin's DI OAuth flow. The root cause is CWE-732 (Incorrect Permission Assignment for a Critical Resource): Client.dump() called Path.mkdir()/write_text() with no mode argument, delegating permission bits entirely to the process umask. Under the near-universal default umask of 022 this yields a 0o755 directory and a 0o644 token file. The serialized JSON payload persists di_token, di_refresh_token, and di_client_id; because the refresh token is long-lived and independently exchangeable for access tokens, exposing the file is equivalent to exposing durable account credentials. All shipped examples default the token store to ~/.garminconnect, so the insecure path is the out-of-the-box behavior rather than an edge case.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/cyberjunky/python-garminconnect) PRIMARY 8.4 HIGH
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
vuln.today AI 8.4 HIGH

Local read by a co-located unprivileged user (AV:L/PR:L), default umask makes it reliable (AC:L), and host-file exposure compromising an off-host account justifies S:C with C:H/I:H, A:N.

3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (https://github.com/cyberjunky/python-garminconnect).

CVSS VectorVendor: https://github.com/cyberjunky/python-garminconnect

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

Insecure Permission Assignment for Garmin OAuth Token Store

Summary

garminconnect (≤ 0.3.4) wrote its OAuth token store to disk without restricting file-system permissions. Under the default Linux umask (022) the token file garmin_tokens.json was created world-readable (0o644). The file contains the DI refresh token, so any other local user on a shared host could read it and obtain persistent, unauthorized access to the victim's Garmin Connect account.

  • Severity: High
  • Weakness: CWE-732 (Incorrect Permission Assignment for Critical Resource)
  • Affected versions: <= 0.3.4
  • Patched version: 0.3.5

Details

Client.dump() created the token directory and file with no mode argument, leaving permissions entirely to the process umask:

python
def dump(self, path: str) -> None:
    p = Path(path).expanduser()
    if p.is_dir() or not p.name.endswith(".json"):
        p = p / "garmin_tokens.json"
    p.parent.mkdir(parents=True, exist_ok=True)
# no mode=
    p.write_text(self.dumps())
# no permission restriction

The serialized payload includes di_token, di_refresh_token, and di_client_id. The call is in the core library (Garmin.login(tokenstore=...) persists tokens this way), and all shipped usage examples default the token store to ~/.garminconnect.

Under umask 022 the resulting permissions were:

  • token directory → 0o755
  • garmin_tokens.json → 0o644 (world-readable)

A separate, unprivileged user on the same machine could read the file with a plain open() - no elevated privileges required - and extract the refresh token.

Impact

Local credential theft / privilege escalation on multi-user Linux or macOS hosts running under a permissive umask. The stolen refresh token can be exchanged for fresh access tokens via Garmin's OAuth endpoint, granting ongoing access to the victim's account (health/fitness data, activity history, device management) until the token is revoked.

Patch

Fixed in 0.3.5 (commit 77a3837). dump() now creates the directory as 0o700 and writes the token file as 0o600 regardless of umask - using os.open(..., O_CREAT|O_WRONLY|O_TRUNC, 0o600) with O_NOFOLLOW where available, plus a defensive chmod that also tightens a pre-existing loose file:

python
p.parent.mkdir(mode=0o700, parents=True, exist_ok=True)
with contextlib.suppress(OSError):
    p.parent.chmod(0o700)
flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC
if hasattr(os, "O_NOFOLLOW"):
    flags |= os.O_NOFOLLOW
fd = os.open(p, flags, 0o600)
with os.fdopen(fd, "w", encoding="utf-8") as f:
    f.write(self.dumps())
with contextlib.suppress(OSError):
    p.chmod(0o600)

Verified under umask 022: directory 0o700, file 0o600, no group/other access.

Workarounds

If you cannot upgrade immediately, restrict the token store manually and keep it owner-only:

bash
chmod 700 ~/.garminconnect
chmod 600 ~/.garminconnect/garmin_tokens.json

Remediation

  1. Upgrade to garminconnect >= 0.3.5:
bash
   pip install --upgrade garminconnect
  1. Fix any token file already on disk - upgrading only tightens permissions

on the *next* write, so an existing world-readable file stays exposed until then:

bash
   chmod 600 ~/.garminconnect/garmin_tokens.json
# or remove it and log in again to mint a fresh token store
  1. **If the file was exposed on a shared host, treat the refresh token as

compromised.** Re-authenticate (delete the token store and log in again) so a new token is issued; consider the previously stored token potentially read by others until rotated.

Credit

Reported by EQSTLab via a private security advisory. garminconnect thanks them for the detailed, responsible disclosure.

Executive ViewAI

Why It Matters

The garminconnect Python library versions 0.3.4 and earlier fail to restrict file permissions when storing OAuth refresh tokens on disk, making tokens world-readable on default shared Linux and macOS systems. Any unprivileged user on an affected shared system can steal tokens and gain persistent unauthorized access to victim Garmin Connect accounts, compromising fitness data, health information, and location tracking. While no public exploit has been identified at time of analysis, organizations using this library on shared infrastructure face imminent credential theft risk.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade to garminconnect version 0.3.5. As interim mitigations prior to patching: restrict system access to trusted users only, disable multi-user login on systems running the library, and implement file system monitoring to detect world-readable token files.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Low
niche unofficial Python Garmin client, hobbyist/fitness-integration footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy