{"id":"CVE-2026-81930","aliases":["CVE-2026-81930","PYSEC-2026-4188"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Airflow Snowflake provider: Unvalidated account field redirects SQL API bearer token off-domain","summary":"Apache Airflow's Snowflake provider did not validate the connection's `account` and `region` fields before interpolating them into request URLs. The SQL API endpoint is built as `https://{account}.snowflakecomputing.com/api/v2/statements`, so an `account` value containing `/`, `?` or `#` demotes the intended domain to a path, query or fragment and leaves the attacker in control of the request host.\n\nThe provider sends that request with an `Authorization: Bearer` header carrying a JWT minted from the connection's private key, or the configured OAuth or programmatic access token. A user who can edit the Snowflake connection but cannot read its secrets — Airflow gives connection-configuration users write-only access to stored credentials, and a `private_key_file` lives on the worker rather than in the connection — can therefore cause a valid token for the account to be delivered to a host of their choosing and replay it against the genuine Snowflake endpoint. No Dag-authoring ability is required: the attacker edits the connection and waits for an existing Dag to use it. The same unvalidated value was also used to build the OAuth token-request URL and the Cortex Agent base URL.\n\nAffects deployments where Snowflake connections are editable by users who are not trusted with the connection's credentials. Users are advised to upgrade to `apache-airflow-providers-snowflake` `6.18.0` or later, which rejects `account` and `region` values containing anything other than letters, digits, `.`, `_` and `-` in every URL the provider builds from them.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Apache Airflow's Snowflake provider did not validate the connection's `account` and `region` fields before interpolating them into request URLs. The SQL API endpoint is built as `https://{account}.snowflakecomputing.com/api/v2/statements`, so an `account` value containing `/`, `?` or `#` demotes the intended domain to a path, query or fragment and leaves the attacker in control of the request host.\n\nThe provider sends that request with an `Authorization: Bearer` header carrying a JWT minted from the connection's private key, or the configured OAuth or programmatic access token. A user who can edit the Snowflake connection but cannot read its secrets — Airflow gives connection-configuration users write-only access to stored credentials, and a `private_key_file` lives on the worker rather than in the connection — can therefore cause a valid token for the account to be delivered to a host of their choosing and replay it against the genuine Snowflake endpoint. No Dag-authoring ability is required: the attacker edits the connection and waits for an existing Dag to use it. The same unvalidated value was also used to build the OAuth token-request URL and the Cortex Agent base URL.\n\nAffects deployments where Snowflake connections are editable by users who are not trusted with the connection's credentials. Users are advised to upgrade to `apache-airflow-providers-snowflake` `6.18.0` or later, which rejects `account` and `region` values containing anything other than letters, digits, `.`, `_` and `-` in every URL the provider builds from them.","source":"cvelist"}],"published":"2026-09-29T10:00:23.666Z","modified":"2026-10-08T10:00:03.975Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-522"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"6.18.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Airflow Snowflake provider","package":"apache-airflow-providers-snowflake","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"6.18.0"}],"vendor":"apache","product":"apache-airflow-providers-snowflake","cpe":"cpe:2.3:a:apache:apache-airflow-providers-snowflake:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.18.0"}],"ecosystem":"PyPI","package":"apache-airflow-providers-snowflake","purl":"pkg:pypi/apache-airflow-providers-snowflake","source":"pysec"}],"references":[{"url":"https://github.com/apache/airflow/pull/72174","tags":["fix","issue-tracking","patch"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.apache.org/thread/324jm2mxd5x4nq85jfw1ostz94xwzrmk","tags":["advisory","mailing-list","vendor-advisory"],"sources":["cvelist","nvd","pysec"]},{"url":"http://www.openwall.com/lists/oss-security/2026/09/29/12","tags":["advisory","mailing-list","third-party-advisory"],"sources":["cvelist","nvd","pysec"]}],"credits":["Claude Security Scans","Jarek Potiuk"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-29T18:29:44.043Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-81930","url":"https://www.cve.org/CVERecord?id=CVE-2026-81930","licence":"CVE Terms of Use","modified":"2026-09-29T18:29:50.020Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-81930","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81930","licence":"Public domain","modified":"2026-10-07T19:57:31.443Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4188","url":"https://osv.dev/vulnerability/PYSEC-2026-4188","licence":"CC-BY-4.0","modified":"2026-10-08T10:00:03.975Z"}],"updatedAt":"2026-11-25T22:59:41.429Z","epss":{"score":0.00432,"percentile":0.39325,"date":"2026-12-01T12:00:22.000Z"}}