{"id":2349,"cve":"CVE-2026-54447","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-54447\/","cwe":"CWE-732","cwe_number":732,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/732","cvss_score":8.4,"published":"2026-09-14","owasp":"A05 Security Misconfiguration","odc":"Interface","cdc":"Missing Check","category":"Configuration Issues","subcategory":"Insecure Direct Object References (IDOR)","scope":"Local","impact":"Unauthorized Access","summary":"Insecure file permissions expose OAuth token, allowing other users to hijack Garmin Connect accounts.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-54447\/","description":"garminconnect is a Python 3 API wrapper for Garmin Connect that retrieves statistics and manages activities. Prior to 0.3.5, garminconnect\/client.py Client.dump creates the OAuth token directory and garmin_tokens.json without explicit owner-only modes, so a permissive umask such as 022 can leave the directory mode at 0755 and the token file mode at 0644. garmin_tokens.json contains di_refresh_token, and another unprivileged user on a shared Linux or macOS host can read the token and obtain persistent access to the victim's Garmin Connect account, including health, fitness, activity, and device data. The Garmin.login tokenstore path is affected, and a pre-existing loosely permissioned token file remains exposed until rewritten or manually restricted. This issue is fixed in version 0.3.5.","solution":"Upgrade garminconnect to version\u202f0.3.5\u202for later.","affected_component":"garminconnect","fixed_by_upgrading":true,"vulnerable_code":"import os\nimport json\nfrom pathlib import Path\n\nclass Client:\n    def __init__(self, token_dir: str):\n        self.token_path = Path(token_dir) \/ \"garmin_tokens.json\"\n\n    def dump(self, token_data: dict):\n        # VULNERABLE: creates token directory and file with default permissions\n        os.makedirs(self.token_path.parent, exist_ok=True)\n        with open(self.token_path, \"w\") as f:\n            json.dump(token_data, f)\n","patched_code":"import os\nimport json\nfrom pathlib import Path\nimport stat\n\nclass Client:\n    def __init__(self, token_dir: str):\n        self.token_path = Path(token_dir) \/ \"garmin_tokens.json\"\n\n    def dump(self, token_data: dict):\n        # FIX: create directory and file with owner\u2011only permissions\n        os.makedirs(self.token_path.parent, mode=0o700, exist_ok=True)\n        fd = os.open(self.token_path, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600)\n        with os.fdopen(fd, \"w\") as f:\n            json.dump(token_data, f)\n","payload_needed":false,"payload":null,"payload_status":"none","published_fix":[{"repository":"cyberjunky\/python-garminconnect","commit_url":"https:\/\/github.com\/cyberjunky\/python-garminconnect\/commit\/8256b577190b446e279c81b845d8e27d0ea1fbf5","commit_subject":"fix: write token store with owner-only permissions (GHSA-wjhr-76vg-2hvc)","units":[{"file":"garminconnect\/client.py","function":null},{"file":"garminconnect\/client.py","function":"Client.dump"}]}],"references":null}