Skip to content
Heist/ feed
Back to feed
Low

Go Snowflake Driver has race condition when checking access to Easy Logging configuration file

Type: advisorySources: OSV

gosnowflake is the Snowflake Golang driver. Versions starting from 1.7.0 to before 1.13.3, are vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition. When using the Easy Logging feature on Linux and macOS, the Driver reads logging configuration from a user-provided file. On Linux and macOS the Driver verifies that the configuration file can be written to only by its owner. That check was vulnerable to a TOCTOU race condition and failed to verify that the file owner matches the user running the Driver. This could allow a local attacker with write access to the configuration file or the directory containing it to overwrite the configuration and gain control over logging level and output location. This issue has been patched in version 1.13.3.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-46327
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:24 UTC · Revision 1

Source evidence

Go Snowflake Driver has race condition when checking access to Easy Logging configuration file

core-osv · Original source

Published 28 Apr 2025, 22:33 UTC

gosnowflake is the Snowflake Golang driver. Versions starting from 1.7.0 to before 1.13.3, are vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition. When using the Easy Logging feature on Linux and macOS, the Driver reads logging configuration from a user-provided file. On Linux and macOS the Driver verifies that the configuration file can be written to only by its owner. That check was vulnerable to a TOCTOU race condition and failed to verify that the file owner matches the user running the Driver. This could allow a local attacker with write access to the configuration file or the directory containing it to overwrite the configuration and gain control over logging level and output location. This issue has been patched in version 1.13.3.

osv:CVE-2025-46327
Complete source record
{
  "id": "36f762357bbd02cd38f43c8bea01d4ee2e73f62ad09f8501e97d152146413ed6",
  "url": "https://osv.dev/vulnerability/CVE-2025-46327",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Go Snowflake Driver has race condition when checking access to Easy Logging configuration file",
    "summary": "gosnowflake is the Snowflake Golang driver. Versions starting from 1.7.0 to before 1.13.3, are vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition. When using the Easy Logging feature on Linux and macOS, the Driver reads logging configuration from a user-provided file. On Linux and macOS the Driver verifies that the configuration file can be written to only by its owner. That check was vulnerable to a TOCTOU race condition and failed to verify that the file owner matches the user running the Driver. This could allow a local attacker with write access to the configuration file or the directory containing it to overwrite the configuration and gain control over logging level and output location. This issue has been patched in version 1.13.3.",
    "evidence": "osv:CVE-2025-46327",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2025-46327",
      "aliases": [
        "CVE-2025-46327",
        "GHSA-6jgm-j7h2-2fqg",
        "GO-2025-3650"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/snowflakedb/gosnowflake",
              "type": "GIT",
              "events": [
                {
                  "introduced": "46d412c69e5909cb56ad6f838245878e7015ccb6"
                },
                {
                  "fixed": "3d3e3b0b45d0ad9b49293ddc88ef7253cdcb7a02"
                },
                {
                  "fixed": "ba94a4800e23621eff558ef18ce4b96ec5489ff0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:snowflake:gosnowflake:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "1.7.0"
                      },
                      {
                        "fixed": "1.13.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ba94a4800e23621eff558ef18ce4b96ec5489ff0"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.13.2",
            "v1.13.1",
            "v1.13.0",
            "v1.12.1",
            "v1.12.0",
            "v1.11.2",
            "v1.11.1",
            "v1.11.0",
            "v1.10.1",
            "v1.10.0",
            "v1.9.0",
            "v1.8.0",
            "v1.7.2",
            "v1.7.1",
            "v1.7.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46327.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.379895162Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46327.json",
        "https://github.com/snowflakedb/gosnowflake/security/advisories/GHSA-6jgm-j7h2-2fqg",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-46327",
        "https://github.com/snowflakedb/gosnowflake/commit/ba94a4800e23621eff558ef18ce4b96ec5489ff0"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-367"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46327.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-46327",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491847,
  "published_at": "2025-04-28T22:33:05.249+00:00"
}