{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.5.0"
                  },
                  {
                    "last_affected": "4.5.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "3.5.0"
                  },
                  {
                    "last_affected": "4.5.4"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "bb233dca10c11b99927446cae5a5567bccfd7190"
            },
            {
              "last_affected": "741e3e50553665ef076596099ab04ff61ded8ddf"
            }
          ],
          "repo": "https://github.com/getrebuild/rebuild",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-915"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129874.json"
  },
  "details": "REBUILD 3.5.0 through 4.5.4 contains a privilege escalation vulnerability that allows low-privileged authenticated users to modify their own roleId through mass assignment in /app/entity/record-save and /app/entity/common-save. Attackers can submit their own User record with roleId set to the built-in administrator role, bypassing updatable=false restrictions to gain full administrator privileges.",
  "id": "CVE-2026-129874",
  "modified": "2026-11-17T20:45:30.466233859Z",
  "published": "2026-11-16T14:19:24.143Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129874.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129874"
    },
    {
      "type": "ADVISORY",
      "url": "https://vul.yulun.ac.cn/20261106/rebuild/"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/rebuild-3.5.0-through-4.5.4-privilege-escalation-via-roleid-mass-assignment"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/getrebuild/rebuild"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/getrebuild/rebuild/blob/741e3e50553665ef076596099ab04ff61ded8ddf/src/main/java/com/rebuild/core/metadata/EntityRecordCreator.java#L81-L84"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/getrebuild/rebuild/blob/741e3e50553665ef076596099ab04ff61ded8ddf/src/main/java/com/rebuild/core/privileges/UserService.java#L236-L247"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "REBUILD 3.5.0 through 4.5.4 Privilege Escalation via roleId Mass Assignment"
}