{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.29.0-rc0"
              },
              {
                "fixed": "3.32.2"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "ca176f6e1aa5b5910a7be8876ba35b3745163adc"
            },
            {
              "fixed": "c4505a40d1f28ddb6a82fa7c12955d511f01d479"
            },
            {
              "fixed": "d8320b0127c8ef453679d70e5dd23a9506951d21"
            }
          ],
          "repo": "https://github.com/ash-project/ash",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-gg9w-7593-hxg9"
  ],
  "database_specific": {
    "cna_assigner": "EEF",
    "cwe_ids": [
      "CWE-180"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82736.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "f6f5d194bfc7802bd32e48bf2eabd2d97a0109a4"
          },
          {
            "fixed": "d8320b0127c8ef453679d70e5dd23a9506951d21"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "Incorrect Behavior Order: Validate Before Canonicalize vulnerability in ash-project ash lets an attacker store a case-insensitive string value that violates its length or match constraints.\n\nAsh.Type.CiString.apply_constraints/2 (lib/ash/type/ci_string.ex) validated the max_length, min_length, and match constraints against the value as submitted, while the type case-folds the string (per its casing) for storage and comparison. Because validation ran before folding, an attacker can submit a value whose folded form breaks a constraint but whose original form passes: for example, against a match pattern requiring uppercase, an uppercase value that is stored lowercased persists a value the pattern rejects. The fix case-folds the value at the start of apply_constraints/2, so the constraints are checked against the form that is actually stored.\n\nThis issue affects ash: from 1.29.0-rc0 before 3.32.2.",
  "id": "CVE-2026-82736",
  "modified": "2026-09-04T11:30:51.820404714Z",
  "published": "2026-09-01T03:21:47.332Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://cna.erlef.org/cves/CVE-2026-82736.html"
    },
    {
      "type": "WEB",
      "url": "https://github.com"
    },
    {
      "type": "WEB",
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-82736"
    },
    {
      "type": "WEB",
      "url": "https://repo.hex.pm"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82736.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ash-project/ash/security/advisories/GHSA-gg9w-7593-hxg9"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-82736"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ash-project/ash/commit/d8320b0127c8ef453679d70e5dd23a9506951d21"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ash-project/ash"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Ash.Type.CiString validates length and match constraints before case folding, allowing constraint bypass"
}