{"id":"UBUNTU-CVE-2026-22797","details":"An issue was discovered in OpenStack keystonemiddleware 10.5 through 10.7 before 10.7.2, 10.8 and 10.9 before 10.9.1, and 10.10 through 10.12 before 10.12.1. The external_oauth2_token middleware fails to sanitize incoming authentication headers before processing OAuth 2.0 tokens. By sending forged identity headers such as X-Is-Admin-Project, X-Roles, or X-User-Id, an authenticated attacker may escalate privileges or impersonate other users. All deployments using the external_oauth2_token middleware are affected.","modified":"2026-06-30T18:17:28.718847346Z","published":"2026-01-19T18:16:00Z","related":["USN-8008-1"],"upstream":["CVE-2026-22797"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-22797"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-22797"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2026/01/15/1"},{"type":"REPORT","url":"https://security.openstack.org/ossa/OSSA-2026-001.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8008-1"}],"affected":[{"package":{"name":"python-keystonemiddleware","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-keystonemiddleware?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.6.0-0ubuntu1.1"}]}],"versions":["10.4.1-0ubuntu1","10.5.0-0ubuntu1","10.5.0-0ubuntu2","10.6.0-0ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"10.6.0-0ubuntu1.1","binary_name":"python3-keystonemiddleware"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22797.json"}},{"package":{"name":"python-keystonemiddleware","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/python-keystonemiddleware?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.12.0-0ubuntu1.1"}]}],"versions":["10.9.0-0ubuntu1","10.11.0-0ubuntu1","10.12.0-0ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-keystonemiddleware","binary_version":"10.12.0-0ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22797.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L"},{"type":"Ubuntu","score":"medium"}]}