Advisory

PYSEC-2026-600

Also known as: CVE-2026-42999, GHSA-2r23-2g6v-2m5f

Summary

The record has no summary.

Details

An issue was discovered in OpenStack Keystone before 29.0.2. The Keystone RBAC policy enforcer in enforce_call unconditionally merges the raw JSON request body into the policy enforcement dictionary via policy_dict.update(json_input.copy()), overwriting trusted target data that was previously set from database lookups. Because flask.request.get_json is called with force=True, this works regardless of Content-Type or HTTP method. Any authenticated user can inject arbitrary policy target attributes (e.g., user_id, project_id) into the request body to bypass RBAC checks and perform unauthorized operations on resources belonging to other users or projects. This was introduced in commit 5ea59f52 (Rocky/14.0.0).

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-05-28 19:16 UTC
Modified
2026-07-13 16:45 UTC

Affected packages and fixes

keystone

PyPI · All systems

Affected

  • introduced 14.0.0, fixed 27.0.2, introduced 28.0.0, fixed 28.0.2, introduced 29.0.0, fixed 29.0.2 (ecosystem)

Fixed versions

27.0.2, 28.0.2, 29.0.2

Fix

  • Fixed version 27.0.2
    pip install --upgrade keystone==27.0.2
  • Fixed version 28.0.2
    pip install --upgrade keystone==28.0.2
  • Fixed version 29.0.2
    pip install --upgrade keystone==29.0.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences