Skip to content
Heist/ feed
Back to feed
Medium

Job argument injection via :args overrides primary_key and tenant in AshOban

Type: advisorySources: OSV

Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerability in ash-project ash_oban allows a user whose input reaches the :args option of AshOban.build_trigger/3 to retarget an update or destroy trigger at another record, including across tenants. build_trigger/3 builds the trusted job arguments with atom keys (:primary_key, :tenant, :action_arguments) and merges the caller's :args underneath so the trusted values win on collision. Because Oban job arguments round-trip through JSON, the caller's keys arrive as strings, so Map.merge sees no collision and both keys survive. When the job is persisted the JSON object is de-duplicated keeping the last (string) key, and the worker reads the caller's value. The documentation describes :args as unable to affect the action, so an application that forwards user input into it for uniqueness scoping is exposed to authorization bypass and tenant isolation breaks. This issue affects ash_oban: from 0.2.5 before 0.8.14.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-78038
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:39 UTC · Revision 1

Source evidence

Job argument injection via :args overrides primary_key and tenant in AshOban

core-osv · Original source

Published 30 Aug 2026, 11:50 UTC

Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerability in ash-project ash_oban allows a user whose input reaches the :args option of AshOban.build_trigger/3 to retarget an update or destroy trigger at another record, including across tenants. build_trigger/3 builds the trusted job arguments with atom keys (:primary_key, :tenant, :action_arguments) and merges the caller's :args underneath so the trusted values win on collision. Because Oban job arguments round-trip through JSON, the caller's keys arrive as strings, so Map.merge sees no collision and both keys survive. When the job is persisted the JSON object is de-duplicated keeping the last (string) key, and the worker reads the caller's value. The documentation describes :args as unable to affect the action, so an application that forwards user input into it for uniqueness scoping is exposed to authorization bypass and tenant isolation breaks. This issue affects ash_oban: from 0.2.5 before 0.8.14.

osv:CVE-2026-78038
Complete source record
{
  "id": "3981480635d88251781e9f5edb86cd1356247078aba6862193e5cfa9ed3bb6d9",
  "url": "https://osv.dev/vulnerability/CVE-2026-78038",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Job argument injection via :args overrides primary_key and tenant in AshOban",
    "summary": "Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerability in ash-project ash_oban allows a user whose input reaches the :args option of AshOban.build_trigger/3 to retarget an update or destroy trigger at another record, including across tenants. build_trigger/3 builds the trusted job arguments with atom keys (:primary_key, :tenant, :action_arguments) and merges the caller's :args underneath so the trusted values win on collision. Because Oban job arguments round-trip through JSON, the caller's keys arrive as strings, so Map.merge sees no collision and both keys survive. When the job is persisted the JSON object is de-duplicated keeping the last (string) key, and the worker reads the caller's value. The documentation describes :args as unable to affect the action, so an application that forwards user input into it for uniqueness scoping is exposed to authorization bypass and tenant isolation breaks. This issue affects ash_oban: from 0.2.5 before 0.8.14.",
    "evidence": "osv:CVE-2026-78038",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-78038",
      "aliases": [
        "CVE-2026-78038",
        "EEF-CVE-2026-78038",
        "GHSA-gj9p-x393-rf9h"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ash-project/ash_oban",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ce079229ecdf0d323da2b554f30fc569e54660f0"
                },
                {
                  "fixed": "da2d81e1e8e1dcc3e6ec8587cdb4f273575ffca3"
                },
                {
                  "introduced": "28e57b95c241c0aeece4655456c614b417fadce0"
                },
                {
                  "fixed": "d918a299d73ac9f0d85e55b8533ddb4801a3af2d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "ce079229ecdf0d323da2b554f30fc569e54660f0"
                      },
                      {
                        "fixed": "da2d81e1e8e1dcc3e6ec8587cdb4f273575ffca3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.2.5"
                      },
                      {
                        "fixed": "0.8.14"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "da2d81e1e8e1dcc3e6ec8587cdb4f273575ffca3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.8.13",
            "v0.8.12",
            "v0.8.11",
            "v0.8.10",
            "v0.8.9",
            "v0.8.8",
            "v0.8.7",
            "v0.8.6",
            "v0.8.5",
            "v0.8.4",
            "v0.8.3",
            "v0.8.2",
            "v0.8.1",
            "v0.8.0-rc.1",
            "v0.8.0-rc.0",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.0",
            "v0.5.1",
            "v0.5.0",
            "v0.4.12",
            "v0.4.11",
            "v0.4.10",
            "v0.4.9",
            "v0.4.8",
            "v0.4.7",
            "v0.4.6",
            "v0.4.5",
            "v0.4.4",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.5",
            "v0.3.4",
            "v0.3.3",
            "v0.3.2",
            "v0.3.1",
            "v0.3.0",
            "v0.2.6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-78038.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.416613844Z",
      "provider": "osv",
      "references": [
        "https://cna.erlef.org/cves/CVE-2026-78038.html",
        "https://github.com",
        "https://osv.dev/vulnerability/EEF-CVE-2026-78038",
        "https://repo.hex.pm",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78038.json",
        "https://github.com/ash-project/ash_oban/security/advisories/GHSA-gj9p-x393-rf9h",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-78038",
        "https://github.com/ash-project/ash_oban/commit/da2d81e1e8e1dcc3e6ec8587cdb4f273575ffca3",
        "https://github.com/ash-project/ash_oban"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-915"
        ],
        "cna_assigner": "EEF",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78038.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-78038",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504796,
  "published_at": "2026-08-30T11:50:21.136+00:00"
}