Apache Airflow 3.3.1 wave, deserializer gadgets into the scheduler, dependency-vs-handler parser…¶
Advisory enrichment for the Apache Airflow 3.3.1 security release landed in the GitHub updated feed on October 2 23:1xZ (originally published Aug 10-12). Eleven advisories form three replayable operator clusters on any Airflow/orchestrator deployment: DAG-author-to-scheduler code execution through deserialization gadgets, an authorization bypass caused by two components parsing the same ID differently, and a family of secret-masking shape gaps that turn low-privilege read views into credential oracles.
Deserializer gadget enumeration, each fix covers one branch, not the deserializer¶
Airflow's serialization layer rebuilds objects from serialized blobs by importing class names from the blob itself. The advisories are a point-by-point inventory of which branch of the deserializer each fix closed, the durable rule is that the fix for one gadget is the map to the next:
- Exception-node deserialization → arbitrary callable in the Scheduler and API server (GHSA-8prw-8m6x-8w6f / CVE-2026-58076, high): exception nodes are reconstructed by
import_string()on a blob-supplied class name instantiated with blob-supplied args,subprocess.check_output, orbuiltins.evalon thebuiltins-prefixed variant. A DAG author places the payload inexecutor_config; it executes in the scheduler's normal reconstruction loop with no request involved, and in the API server on any authenticated read such asGET /api/v2/dags/{dag_id}/details. Both components hold the metadata DB credentials and the JWT signing secret. Explicit note in the advisory: this is a different sink from CVE-2026-33264 (trigger branch), deployments that patched the earlier advisory are still exposed and must patch again. - Human-in-the-loop
next_kwargssweep (GHSA-q4c3-7575-55j2 / CVE-2026-67260, high): the 3.3.0awaiting_inputstate is swept by the scheduler every 15 seconds, deserializingnext_kwargswith no allow-list coverage; the DAG author controls that value via the task execution API. The defaultallowed_deserialization_classessetting does not cover this path. - Task SDK
Callbackreconstruction (GHSA-2qjv-p2gc-mjg2 / CVE-2026-67587, high): re-running the constructor imports the module named by the stored callback path;SyncCallbackis itself an Airflow class, so it passes the default allow-list, tighteningallowed_deserialization_classesdoes not help. Third gadget, same sweep, separate fix. - XCom JSON string literal instantiation (GHSA-fcmm-42r9-mmmm / CVE-2026-59242, medium):
GET .../xcomEntries/{key}?deserialize=trueskips the_check_forbidden_xcom_keysguard, so any authenticated user with XCom write+read can instantiate arbitraryairflow.*classes on the API server. Write-then-read-back-your-own-payload is the cheapest deserialization primitive there is, probe everydeserialize=true-style flag.
Operator rules: 1. Grep every call site of the patched sink helper, not the patched file. Four separate advisories (CVE-2026-33264 trigger branch, 58076 exception branch, 67260 awaiting-input sweep, 67587 callback constructor) are four branches of the same "reconstruct from serialized blob" pattern. On any orchestrator/queue/workflow engagement, enumerate every deserialization entry point (executor configs, XCom, callbacks, checkpoint/HIL state) independently. 2. Fix ranges are attack maps. The advisories state plainly that upgrading for the sibling CVE leaves you exposed. If a deployment patched one of these, the remaining gadgets are live; version-fingerprint Airflow and diff against 3.3.1 per-advisory, not per-release. 3. Privilege floor: all four are DAG-author (write) or authenticated-read (XCom leg), on shared Airflow instances, low-code users and Viewers with XCom access are the foothold class, and the sink is the component holding DB credentials + JWT signing secret.
Authorization-by-ID: dependency and handler parse the same value with different type parsers¶
- Backfill API cross-DAG authorization bypass (GHSA-j4jc-cq9h-xrhr / CVE-2026-68968, high): the authorization dependency parsed the
backfill_idpath segment with Pythonint(), while the route handler parsed it as pydanticNonNegativeInt, which accepts valuesint()rejects (1.0coerces to 1). FastAPI resolves dependencies before endpoint validation, so onbackfill_id=1.0(or similar) the two acted on different DAGs. A user with edit permission on any one DAG can read, pause, and cancel backfills of any other DAG, including moving another DAG's queued runs tofailed. Backfill IDs are sequential, so target discovery is trivial.
Durable axis, parser-discrepancy authorization: whenever a security check and the business logic each re-parse the same input, any input form where the two parsers disagree (1.0, +1, 1, unicode digits, 0x1, trailing %00-class artifacts) splits authorization from effect. Sweep checklist for any FastAPI/Pydantic/JSON-schema stack: - list every route where auth/permission logic and the handler independently coerce a path/query ID; - probe each with coercion variants (1.0, 1, +1, locale digits) and diff which object was authorized vs which object was acted on (side effects on an owned target with a foreign-ID payload reveal the mismatch safely); - prefer deployments where authorization consumes the handler's already-validated value.
Secret-masker shape gaps, the masker is a shape-sensitive parser¶
Five advisories, one rule: the secret masker is code that makes its own decisions per value shape; enumerate shapes, not names.
- Bulk endpoints log secrets in cleartext (GHSA-cjv4-7hp2-2x9h / CVE-2026-68969, medium): audit-log masking recognized only top-level request fields;
PATCH /api/v2/variablesandPATCH /api/v2/connectionsnest entities two levels deep → unmasked. Any authenticated user with audit-log read (not Variables/Connections read) recovers secrets verbatim, and Connectionextrais logged unencrypted while the DB table encrypts it. The UI's Import Variables action posts to this endpoint, so routine operator imports wrote every secret to the log. - Config API leaks team-scoped secrets (GHSA-c56v-8w4g-3mfm / CVE-2026-65017, medium): the masker matched only base section+option names and never normalized team-prefixed sections → a Viewer with config-read reads a team's Celery broker URL, credentials included, while the equivalent global option is masked.
- Dict-valued
var.jsonrendered in the clear (GHSA-f643-3rc2-j27w / CVE-2026-59244, medium): the masker'sisinstance(str)guard skipped dict values → secret-in-JSON-Variable shown cleartext in Rendered Templates. - Deep-nested list/tuple/set values unmasked (GHSA-g4qj-5vxv-wggf / CVE-2026-54183, medium): the recursion-depth fix (CVE-2026-42358) made only the dict walk unbounded; list/tuple/set entries beyond the depth limit stayed unmasked. (Advisory notes UI-only exposure, keep as a shape-taxonomy lesson, not a standalone finding.)
- Cross-team secret resolution fall-through (GHSA-75mg-c62r-v95g / CVE-2026-68076 env-var backend, GHSA-qmrf-jrpr-rjx6 / CVE-2026-68871 Yandex Lockbox provider, medium): the env-var backend's cross-team guard only ran when no team scope was supplied and its name pattern could not match team names containing underscores → fall-through to a global read resolving another team's stored variable;
POST /api/v2/connections/testthen authenticates outward with the victim team's credentials without returning them, a credential-use oracle. The Lockbox backend resolves team-scoped IDs through the team-agnostic lookup on miss, handing over the foreign secret in full.
Operator rules: - Masker battery: for any "sensitive values are hidden" UI/API surface, test the same secret under: bulk/batch endpoint vs single endpoint, nested dict/list/tuple/set beyond naive depth limits, non-string value types, and scope-prefixed names (team-, tenant-, env- prefixes). Each spelling is an independent code path. - Test/connect endpoints are blind credential-use oracles: even where values are never returned, a test action that dials an attacker-reachable host with resolved credentials proves cross-scope resolution, owned callback, timing/status evidence only. - Audit logs are a secret store: on any Airflow-like platform with audit logging, check whether the log writer sees the same shape the masker was written for; bulk import actions are the highest-volume accidental-secret-to-log path.
Preconditions and validation boundaries¶
- DAG-author legs require a low-privilege author/test-account DAG on a lab or authorized deployment; the API-server read legs (
/details, XComdeserialize=true) need only an authenticated Viewer-class session. Verify the deployment's patched state per-advisory (3.3.1 consolidates; earlier point-fixes are partial). - Parser-discrepancy proofs: use a backfill you own as the authorized target and a second disposable DAG as the foreign target; assert the side effect lands on the foreign DAG only with coercion-shaped IDs. Never cancel/mutate production DAG runs.
- Masker proofs: synthetic Variables/Connections with canary values in a lab deployment; owned callback host for
connections/test; read only your canaries back. Never collect real LDAP/DB credentials, connection strings, or audit logs containing tenant secrets into report evidence, reference field names and masking decisions, redact values.
October 7 follow-up: Hydra proves the config-to-callable class has two bypasses, an unmigrated sink and an evadable blacklist (CVE-2026-106441 + CVE-2026-106442 / GHSA-c3wx-c55w-pxjq + GHSA-rqx7-p7vv-w7hr, hydra-core <1.3.6 / <1.4.0.dev9)¶
Same thesis as this page's import_string leg, proven twice in one framework. (1) Unmigrated sink: Hydra had already wrapped instantiate() _target_ resolution behind a target policy, but its Python-logging configuration path called logging.config.dictConfig() directly, handler class values and formatter/filter/handler/queue/listener () factories are import-and-call directives that never touched the policy. Controlling a Hydra logging config meant code execution even on builds patched for the earlier CVE. (2) Evadable blacklist: the _target_ deny-list itself fell to execution wrappers (timeit.timeit), executable deserialization (pickle.loads), generic dispatch/wrapper targets, target aliases, and callable-returning helpers that obscure the effective callable, name-based checks against a resolver that follows indirection. The vendor now says outright the blacklist "is not a complete security boundary" and ships an execution whitelist as the real fix.
- Durable audit rules for every config-driven callable resolver (this completes the family with the Oct 7 Backstage
markdown_extensionsmodule:callableleg on the Oct 7 Backstage wave page): (a) enumerate every resolver sink in the product, not just the famous one, grep fordictConfig,getattr+call, entry-point loading, pluginimport_strings, decorator factories; the protected path is a decoy once an unprotected sibling consumes the same config namespace; (b) treat any shipped blacklist as a challenge, not a boundary, build the bypass battery once (execution wrappers,loads-family, dispatchers, aliases, deferred return-callables, module:attr spellings, case/underscore variants) and replay it per target; the differential is deny-list rejection vs wrapper acceptance. Fixed-version fingerprint note: 1.3.6 still ships blacklist-only (best-effort by the vendor's own words), so "patched" ≠ whitelist posture; probe the wrapper battery to learn which posture a build actually runs. Proof stays lab-only: a marker file written by the wrapper callable, never a shell.
Tracked from this wave without publication¶
- ~40 further Aug-dated Airflow/Red Hat re-surfacing advisories in the same updated-feed window are publication sync of already-processed/tracked items (the Oct 2 late-wave pattern); grep any late ID against
docs/before promoting.
October 7 20:2xZ follow-up: Hydra Optuna custom_search_space executes via get_method and mutable module-level blocklists self-defeat¶
Two more Hydra legs (published 20:23-20:24Z) extend the callable-resolver family on this page, same product as the earlier dictConfig pair, both config-to-execution:
hydra.sweeper.custom_search_spaceresolves a config-controlled dotted path throughhydra.utils.get_method()and invokes it (GHSA-5jjj-9xc3-rm56 / CVE-2026-106440, 7.8, fixed 1.3.0): Hydra's low-level object-lookup helpers intentionally trust input and do NOT apply the execution policy thatinstantiate()/logging use, so an untrusted Optuna sweep config or command-line override selects any importable callable for execution in the controller process. On 1.4 dev builds this also bypassed an application-provided execution whitelist. Rule (completes the page's resolver-enumeration rule with its inverse): the safe resolver is a decoy when a raw sibling resolver consumes the same config namespace,instantiate()being policy-gated says nothing aboutget_method/get_object/get_static_methodconsumers; grep every lookup-helper call site and diff which apply policy. For ML-pipeline targets, sweep-config/CLI-override injection is the realistic untrusted input (job configs, notebook params), proven with a marker callable that writes a temp file.- Mutable module-level policy sets let config mutate its own blocklist (GHSA-mwj6-rfh8-7qf4 / CVE-2026-106439, fixed 1.3.7):
_locate()resolves attributes on imported objects, so a sibling_target_entry can resolve.discardand remove a blocked target from the live blocklist before the next entry instantiates it (sibling nodes process in insertion order against shared state). Durable bypass pattern for every deny-list-in-process-memory design: if the deny-list object is reachable through the same resolution mechanism it guards, insertion-ordered config = mutate-then-use. Audit test on any policy-gated resolver: can config name an attribute-chain ending in a set/dict mutation method on the policy object? Battery:.discard/.remove/.clear/.pop/updatetargets, ordering canary blocked-target after mutation step. Generalizes the page's "blacklist-as-challenge" rule from input-shape bypass to state-mutation bypass.
October 16 follow-up: provider-plane legs, SSH host-key verification default-off, deferrable-path fix split, and a logout that re-mints its own token (CVE-2026-94134 + CVE-2026-94135 + CVE-2026-96806 + CVE-2026-92228)¶
Four advisories landed against Airflow providers rather than core, the same authority-drift class this page tracks, one tier down:
- SSH/SFTP provider accepts any host key by default (GHSA-p86c-663x-5pxq / CVE-2026-94134):
SSHHookdisables host-key verification unlesshost_keyis configured orno_host_key_checkis explicitly set tofalse, the parameter is a default-on fail-open, so every connection written without thinking about it runs unauthenticated. Worker-to-SFTP man-in-the-middle captures task credentials and data. - The deferrable SFTP paths had the same default as a separate defect (GHSA-65q9-82jj-rffc / CVE-2026-94135):
SFTPTrigger/SFTPHookAsync/SFTPClientPooleach re-implemented connection setup and each got the same insecure default independently; the synchronous-hook fix did not cover the triggerer path. Durable rule, fix-differential across execution modes: when a platform ships sync + async/deferrable + pooled variants of the same connector, treat each as its own code path and test all three; "provider upgraded" ≠ "mode patched" (here one release 7.0.0 fixes both, but only if you notice both existed). - Keycloak auth manager logout revokes the presented token and then immediately re-issues an unrevoked one (GHSA-2vv4-mgc4-grm2 / CVE-2026-96806, fixed in provider 0.11.1):
KeycloakJWTMiddlewareminted a fresh token on the logout response, so the session survived its own destruction, shared-workstation handoff. Lifecycle probe on every IdP-integrated web UI: log in, log out, then replay post-logout material against one authenticated endpoint. This is the same credential-issued-too-early lineage as the Joomla remember-me-pre-MFA leg (Oct 5 page) with the polarity flipped: not issued before the factor, but minted after the teardown. - Keycloak multi-team provisioning granted every team global audit-log read (GHSA-79vw-4xm5-93ph / CVE-2026-92228):
_attach_team_permissionsattached team roles with a blanket global audit read, so any authenticated member of any team read other teams' event logs through the UI/API. On this platform the audit log is itself a secret store (see this page's masker-shape section), team-scoped least privilege collapsing into a global read compounds directly into the cleartext-secrets-in-log class. Probe: low-tier lab user in team A reads/event-logs-family filtered on team B's DAGs/entities.
Operator summary for provider/AI-plugin planes (extends the page's core-plane rules): enumerate provider versions with pip show $(pip list | grep -i airflow-providers | awk '{print $1}'), provider advisories ship on their own cadence and patch levels, and the defaults (fail-open verification, mode-duplicated connection code, middleware re-issue paths, provisioning role templates) are where provider-plane authority drift hides.
October 20 follow-up: AWS auth manager SAML login CSRF, the assertion never had to belong to your browser session (2738/CVE-2026-86467, apache-airflow-providers-amazon <9.38.0)¶
The AWS auth manager's SAML flow discards the AuthnRequest ID at login and never requires the callback assertion's InResponseTo to match it. An unauthenticated attacker who merely gets a logged-out-but-IdP-active victim to load a page can complete a SAML login using the attacker's own assertion inside the victim's browser, the victim silently lands in an Airflow session the attacker controls (same account, attacker knows the credentials/IdP config), and every DAG run, connection edit, or secret the victim makes afterward lands in a session the attacker can act through. The vendor itself names the twin: this is the login-CSRF class already fixed in the Keycloak auth manager as CVE-2026-40948, per-auth-backend fix coverage is the fingerprint to probe.
- Durable rule: on any SAML/OIDC web login, the three binding questions are (1) does the callback require a matching
InResponseTo/state/noncetied to the browser session, (2) is the destination account chosen by the assertion's identity or by the pending session, and (3) what does the app do when the assertion's subject ≠ anyone who started a login. Test shape in a lab IdP: start a login in browser A, complete it with an assertion minted for your own second tenant in browser B's pending session; a session that lands withoutInResponseToenforcement is the finding. Airflow's two auth managers carried the bug independently, for any product with pluggable auth backends (Airflow providers, Superset, datasette-style plugin stacks), enumerate every auth-manager family and run the login-CSRF battery per family, never trusting "the SSO bug was fixed." - Offensive reading for authorized Airflow assessments: this is an unauth → standing-session primitive needing only one victim page-visit, worth testing before credential attacks. Fixed provider 9.38.0; version fingerprint via
pip show apache-airflow-providers-amazonon managed environments where visible.
October 27 01:1xZ follow-up: SSH provider, single-quoted templated environment inside an already-quoted wrapper script → trigger-tier RCE on the remote host (GHSA-v5m9-m7pg-q8f3 / CVE-2026-111422, apache-airflow-providers-ssh < 7.0.1)¶
SSHRemoteJobOperator quoted its templated environment values once, but the values land inside an already-quoted generated wrapper script, the second quoting layer makes the first one decorative, so $(...) in a value executes on the remote SSH host as the connection user. The authority jump matters: a user who can trigger a DAG (params, dag_run.conf → environment) but cannot author DAGs gets remote code execution. Trigger-tier ≠ author-tier is the rung most Airflow audits skip.
Durable rules:
- Quoting-nesting audit for any template→shell path. Grep provider/operator code that builds remote commands: count quoting layers between the template value and the shell, and ask whether the generated wrapper re-quotes. Single-quote-once-into-double-quoted-context =
$(...)/backtick execution. Genealogy: the June 9 shell-quote page (Rundeckcmd.exe), the Mistralstd.ssh_proxiedProxyCommand leg, Semaphore variable-merge, the "trigger-tier user reaches the runner's shell" family now spans four products with distinct mechanisms (variable merge, ProxyCommand, operator arg, quoting-depth). - Probe battery on any orchestrator with trigger-time inputs: on a lab DAG that pipes
dag_run.confintoenvironment/env/extras fields, set value$(touch /tmp/marker)and; touch /tmp/marker; marker on remote host = trigger-tier → remote-user RCE. Then enumerate every provider operator that forwards templated values into shell-wrapped execution (ssh, subdag-via-cli, kubernetes exec, gcloud run wrappers), one provider's fix does not cover siblings (the page's per-auth-backend rule, now per-operator). - Report framing: state the authority delta (trigger-only principal → remote host as connection user) and what the connection user can read (keys, env, VPC reach), proven with inert markers only on your own hosts.
November 12 follow-up: broker-write RCE without credentials, camelCase masker gap, queue-time authz TOCTOU, and a delimiter-collision secret oracle (Nov-12 15:32Z enrichment wave, all fixed 3.4.0)¶
Six legs landed with full descriptions in the updated feed, and four add new axes to this page's authority-drift inventory:
- CeleryExecutor callback workloads never validate the workload auth token (GHSA-3m38-qxxm-8g9g / CVE-2026-68982, high):
ExecuteCallbackworkloads (deadline-alert callbacks) run on anyone who can write to the Celery broker, no Airflow credentials needed, arbitrary code on every CeleryExecutor worker. The fix moves token validation into the worker's Execution API claim. Rule: enumerate every message the worker accepts from the broker/queue and ask which ones authenticate the sender; scheduler-API auth says nothing about broker-ingested task types (this is the LMCache ZMQ ROUTER / UTMStack STOMP transport-parity rule applied to Celery). On authorized engagements where the broker (Redis/RabbitMQ) is reachable, publishing a forgedExecuteCallbackwith a marker callback in a lab DAG is the proof; broker reachability itself is the reportable precondition. - Reserved serialization keys inside
dag_run.confpass through (GHSA-r5x9-822m-2crg / CVE-2026-111395, high): a trigger-only user craftsconfkeys that collide with internal serialization fields, repeatedly crashing the scheduler or getting rebuilt into objects inside the Triggerer. Same invariant as the page's deserializer-gadget section: user-controlled dicts deserialized into internal object shapes need a reserved-key denylist, and the probe battery is "inject every key the serializer itself writes." Trigger-tier → scheduler-crash is also a scheduling-availability finding worth pairing with the Oct 27 trigger-tier RCE leg above. - Secrets masker is snake_case-only (GHSA-qv7j-fgv4-c4rc / CVE-2026-111452, medium):
privateKey,connectionString,webhookUrl,accessKeyin Connection extra or Variables are never redacted in task logs, rendered templates, or API responses, a log-read perm reads cleartext creds. Durable rule for any masking/redaction tool: build the sensitive-key list from what developers actually name things (camelCase, kebab, dotted), then test every case-shape of every known secret field name in logs before trusting the masker. Standing probe battery on any orchestrator: create Variables/Connection extras underpassword,PASSWORD,Password,pwd,privateKey,db_urlshapes and grep the task log output. - Async connection test: check at queue time, write at completion (GHSA-f43c-9rwr-7mfg / CVE-2026-111455, medium): permission (create-only when ID absent) is evaluated when the test is queued, but
commit_on_successwrites the connection when it finishes, so a create-but-not-edit user clobbers a connection someone else created in the race window. Check-then-act TOCTOU with the check bound to the wrong lifecycle point; probe = two lab users racing a create/test on one connection ID. - Asset API returns DAG IDs the caller cannot read (GHSA-g36h-whch-ffmv / CVE-2026-111454, medium) and Task SDK secret cache keys collide across teams (GHSA-mvjw-vxf4-7g94 / CVE-2026-76185, medium, needs
core.multi_team+secrets.use_cache): asset endpoints leak unauthorized DAG IDs (cross-tenant read oracle from any asset-read perm), and unescaped_delimiters in cache keys let a DAG author craft a (team, secret-id) pair that collides with another team's Variable/Connection. Delimiter-injection-in-cache-key is the Redis/NoSQL key-injection class reborn in a secret cache: any composite key built by joining user-controlled strings needs escaping or hashing with length prefixes. Probe: team A stores marker secret; team B authorsa_marker-shaped ids that flatten onto A's key; reading B's id returns A's value. - Reporting: pair the broker-RCE with broker reachability evidence, masker gap with redaction-failure log excerpts (redacted in report), cache collision with two-team lab screenshots; never read real tenant secrets outside your own teams.