Thread View: linux.debian.devel.release
5 messages
5 total messages
Started by Thomas Goirand
Tue, 13 Oct 2026 13:00
Bug#1150797: trixie-pu: package blazar/15.0.0-2
Author: Thomas Goirand
Date: Tue, 13 Oct 2026 13:00
Date: Tue, 13 Oct 2026 13:00
329 lines
15721 bytes
15721 bytes
This is a multi-part MIME message sent by reportbug.
--===============9091277980472251350==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: blazar@packages.debian.org
Control: affects -1 + src:blazar
User: release.debian.org@packages.debian.org
Usertags: pu
Hi,
[ Reason ]
I would like to upload a fix for CVE-2026-93852 and CVE-2026-93854
through Trixie p-u.
[ Impact ]
As per upstream announce:
https://security.openstack.org/ossa/OSSA-2026-040.html
* In OpenStack Blazar before 17.0.1, the V2 lease listing
operation (GET /v2/leases) returns leases for every project without
enforcing project scoping or an administrator-only policy. Any
authenticated user with access to the Blazar REST API can enumerate leases
belonging to other tenants, exposing lease IDs, reservation IDs, resource
IDs, and reservation metadata. The exposed lease IDs also enable the
object-level authorization bypass tracked in the companion request,
allowing an attacker to then modify or delete the enumerated leases.
* In OpenStack Blazar before 17.0.1, the V2 lease API does
not enforce object-level authorization on its update and delete operations
(PUT /v2/leases/{lease_id} and DELETE /v2/leases/{lease_id}). The policy
authorize() wrapper attempts to load the target lease to build the
authorization target from its owner, but it looks up the lease under the
keyword "lease_id" whereas the controller methods name the parameter "id"
(and the wsme_pecan.wsexpose wrapper delivers it positionally). The lookup
returns None, and thus authorization falls back to the requesting user's
own project_id/user_id instead of the target lease owner. Any authenticated
user who knows a lease ID can therefore modify or delete leases belonging
to other users and projects, bypassing the intended ownership check.
[ Tests ]
The included patch also modifes tests, which are used for this
part of the API, so it's covered.
There's also upstream functional testing.
[ Risks ]
Ok, because of upstream tests and unit tests.
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
Upstream patch.
Package is uploaded, and just need the Stable release team approval.
Cheers,
Thomas Goirand (zigo)
--===============9091277980472251350==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="blazar_15.0.0-2+deb13u1.debdiff"
diff -Nru blazar-15.0.0/debian/changelog blazar-15.0.0/debian/changelog
--- blazar-15.0.0/debian/changelog 2025-05-12 12:36:04.000000000 +0200
+++ blazar-15.0.0/debian/changelog 2026-10-13 13:22:28.000000000 +0200
@@ -1,3 +1,31 @@
+blazar (15.0.0-2+deb13u1) trixie; urgency=medium
+
+ * CVE-2026-93852: In OpenStack Blazar before 17.0.1, the V2 lease listing
+ operation (GET /v2/leases) returns leases for every project without
+ enforcing project scoping or an administrator-only policy. Any
+ authenticated user with access to the Blazar REST API can enumerate leases
+ belonging to other tenants, exposing lease IDs, reservation IDs, resource
+ IDs, and reservation metadata. The exposed lease IDs also enable the
+ object-level authorization bypass tracked in the companion request,
+ allowing an attacker to then modify or delete the enumerated leases.
+ .
+ CVE-2026-93854: In OpenStack Blazar before 17.0.1, the V2 lease API does
+ not enforce object-level authorization on its update and delete operations
+ (PUT /v2/leases/{lease_id} and DELETE /v2/leases/{lease_id}). The policy
+ authorize() wrapper attempts to load the target lease to build the
+ authorization target from its owner, but it looks up the lease under the
+ keyword "lease_id" whereas the controller methods name the parameter "id"
+ (and the wsme_pecan.wsexpose wrapper delivers it positionally). The lookup
+ returns None, and thus authorization falls back to the requesting user's
+ own project_id/user_id instead of the target lease owner. Any authenticated
+ user who knows a lease ID can therefore modify or delete leases belonging
+ to other users and projects, bypassing the intended ownership check.
+ .
+ Applied upstream patch (Closes: #1148408).
+ - CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorizat....patch
+
+ -- Thomas Goirand <zigo@debian.org> Tue, 13 Oct 2026 13:22:28 +0200
+
blazar (15.0.0-2) unstable; urgency=medium
* Add fix-lease-date-not-enough-in-the-future.patch (Closes: #1104885).
diff -Nru blazar-15.0.0/debian/patches/CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch blazar-15.0.0/debian/patches/CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch
--- blazar-15.0.0/debian/patches/CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch 1970-01-01 01:00:00.000000000 +0100
+++ blazar-15.0.0/debian/patches/CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch 2026-10-13 13:22:28.000000000 +0200
@@ -0,0 +1,202 @@
+Author: Matt Crees <mattc@stackhpc.com>
+Date: Thu, 17 Sep 2026 14:12:11 +0100
+Description: [PATCH] Fix v2 API object-level authorization bypass
+ Fixes two security flaws with the v2 API: any user could update/delete a
+ lease from any project via the v2 API, provided that they had the lease ID.
+ Additionally, any user could use the v2 API to list all leases, including
+ those in another project.
+ .
+ Operators that cannot yet upgrade should consider instead disabling the v2
+ API with the following config in ``blazar.conf``:
+ .
+ ```
+ [api]
+ api_v2_controllers =
+ ```
+Bug: https://launchpad.net/bugs/2162719
+Bug-Debian: https://bugs.debian.org/1148408
+Change-Id: I7b33491e96440d419e3e5a514f1a7a46b82547f5
+Signed-off-by: Matt Crees <mattc@stackhpc.com>
+Origin: upstream, https://review.opendev.org/c/openstack/blazar/+/1006053
+Last-Update: 2026-10-13
+
+diff --git a/blazar/api/v2/controllers/extensions/lease.py b/blazar/api/v2/controllers/extensions/lease.py
+index 6af8b89..d63c789 100644
+--- a/blazar/api/v2/controllers/extensions/lease.py
++++ b/blazar/api/v2/controllers/extensions/lease.py
+@@ -86,22 +86,28 @@
+
+ @policy.authorize('leases', 'get')
+ @wsme_pecan.wsexpose(Lease, types.UuidType())
+- def get_one(self, id):
++ def get_one(self, lease_id):
+ """Returns the lease having this specific uuid
+
+- :param id: ID of lease
++ :param lease_id: ID of lease
+ """
+- lease = pecan.request.rpcapi.get_lease(id)
++ lease = pecan.request.rpcapi.get_lease(lease_id)
+ if lease is None:
+- raise exceptions.NotFound(object={'lease_id': id})
++ raise exceptions.NotFound(object={'lease_id': lease_id})
+ return Lease.convert(lease)
+
+ @policy.authorize('leases', 'get')
+ @wsme_pecan.wsexpose([Lease], q=[])
+ def get_all(self):
+- """Returns all leases."""
++ """Returns all leases for the current project."""
++ ctx = pecan.request.context
++ if policy.enforce(ctx, 'admin', {}, do_raise=False):
++ project_id = None
++ else:
++ project_id = ctx.project_id
+ return [Lease.convert(lease)
+- for lease in pecan.request.rpcapi.list_leases()]
++ for lease in pecan.request.rpcapi.list_leases(
++ project_id=project_id)]
+
+ @policy.authorize('leases', 'post')
+ @wsme_pecan.wsexpose(Lease, body=Lease, status_code=201)
+@@ -122,10 +128,10 @@
+
+ @policy.authorize('leases', 'put')
+ @wsme_pecan.wsexpose(Lease, types.UuidType(), body=Lease)
+- def put(self, id, sublease):
++ def put(self, lease_id, sublease):
+ """Update an existing lease.
+
+- :param id: UUID of a lease.
++ :param lease_id: UUID of a lease.
+ :param lease: a subset of a Lease containing values to update.
+ """
+ sublease_dct = sublease.as_dict()
+@@ -149,21 +155,21 @@
+ if before_end_date:
+ sublease_dct['before_end_date'] = before_end_date
+
+- lease = pecan.request.rpcapi.update_lease(id, sublease_dct)
++ lease = pecan.request.rpcapi.update_lease(lease_id, sublease_dct)
+
+ if lease is None:
+- raise exceptions.NotFound(object={'lease_id': id})
++ raise exceptions.NotFound(object={'lease_id': lease_id})
+ return Lease.convert(lease)
+
+ @policy.authorize('leases', 'delete')
+ @wsme_pecan.wsexpose(None, types.UuidType(), status_code=204)
+- def delete(self, id):
++ def delete(self, lease_id):
+ """Delete an existing lease.
+
+- :param id: UUID of a lease.
++ :param lease_id: UUID of a lease.
+ """
+ try:
+- pecan.request.rpcapi.delete_lease(id)
++ pecan.request.rpcapi.delete_lease(lease_id)
+ except TypeError:
+ # The lease was not existing when asking to delete it
+- raise exceptions.NotFound(object={'lease_id': id})
++ raise exceptions.NotFound(object={'lease_id': lease_id})
+diff --git a/blazar/policy.py b/blazar/policy.py
+index 7d37f3f..642ebd6 100644
+--- a/blazar/policy.py
++++ b/blazar/policy.py
+@@ -16,12 +16,14 @@
+ """Policy Engine For Blazar."""
+
+ import functools
++import inspect
+
+ from oslo_config import cfg
+ from oslo_log import log as logging
+ from oslo_policy import policy
+
+ from blazar import context
++from blazar.db import api as db_api
+ from blazar import exceptions
+ from blazar import policies
+
+@@ -101,8 +103,35 @@ def authorize(extension, action=None, api='blazar', ctx=None,
+ @functools.wraps(func)
+ def wrapped(self, *args, **kwargs):
+ cur_ctx = ctx or context.current()
+- tgt = target or {'project_id': cur_ctx.project_id,
+- 'user_id': cur_ctx.user_id}
++ tgt = target
++ if tgt is None:
++ obj = None
++ # NOTE(mattcrees): The V2 API wraps the requests with
++ # wsme_pecan.wsexpose, which causes kwargs to arrive as regular
++ # args instead. Work around this by inspecting the function and
++ # extracting out the lease_id kwarg.
++ # TODO(mattcrees): Revert to kwargs.get("lease_id") once the V2
++ # API is removed.
++ bound = inspect.signature(func).bind_partial(self, *args,
++ **kwargs)
++ lease_id = kwargs.get('lease_id')
++ if lease_id is None:
++ lease_id = bound.arguments.get('lease_id')
++ if lease_id is None and 'kwargs' in bound.arguments:
++ lease_id = bound.arguments['kwargs'].get('lease_id')
++ if lease_id:
++ obj = db_api.lease_get(lease_id)
++ if obj:
++ tgt = {
++ 'project_id': obj.get("project_id"),
++ 'user_id': obj.get("user_id"),
++ }
++ else:
++ tgt = {
++ 'project_id': cur_ctx.project_id,
++ 'user_id': cur_ctx.user_id,
++ }
++
+ if action is None:
+ act = '%s:%s' % (api, extension)
+ else:
+diff --git a/blazar/tests/api/__init__.py b/blazar/tests/api/__init__.py
+index 6f0f9bc..d30b497 100644
+--- a/blazar/tests/api/__init__.py
++++ b/blazar/tests/api/__init__.py
+@@ -21,6 +21,7 @@
+
+ from blazar.api import context as api_context
+ from blazar import context
++from blazar.db import api as db_api
+ from blazar.manager.leases import rpcapi as leases_api
+ from blazar.manager.oshosts import rpcapi as hosts_rpcapi
+ from blazar import tests
+@@ -71,6 +72,8 @@
+ self.rpcapi = leases_api.ManagerRPCAPI
+ self.hosts_rpcapi = hosts_rpcapi.ManagerRPCAPI
+
++ self.patch(db_api, 'lease_get').return_value = None
++
+ # self.patch(rpcapi.ManagerRPCAPI, 'list_leases').return_value = []
+
+ def reset_pecan():
+diff --git a/releasenotes/notes/fix-v2-api-object-level-authorization-bypass-6fac65c3caa8a731.yaml b/releasenotes/notes/fix-v2-api-object-level-authorization-bypass-6fac65c3caa8a731.yaml
+new file mode 100644
+index 0000000..bbe0a10
+--- /dev/null
++++ b/releasenotes/notes/fix-v2-api-object-level-authorization-bypass-6fac65c3caa8a731.yaml
+@@ -0,0 +1,16 @@
++---
++security:
++ - |
++ Fixed two security flaws with the v2 API: any user could update/delete a
++ lease from any project via the v2 API, provided that they had the lease ID.
++ Additionally, any user could use the v2 API to list all leases, including
++ those in another project.
++ `LP#2162719 <https://bugs.launchpad.net/blazar/+bug/2162719>`__
++
++ Operators that cannot yet upgrade should consider instead disabling the v2
++ API with the following config in ``blazar.conf``:
++
++ .. code-block:: ini
++
++ [api]
++ api_v2_controllers =
diff -Nru blazar-15.0.0/debian/patches/series blazar-15.0.0/debian/patches/series
--- blazar-15.0.0/debian/patches/series 2025-05-12 12:36:04.000000000 +0200
+++ blazar-15.0.0/debian/patches/series 2026-10-13 13:22:28.000000000 +0200
@@ -1,2 +1,3 @@
install-all-files.patch
fix-lease-date-not-enough-in-the-future.patch
+CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch
--===============9091277980472251350==--
Processed: trixie-pu: package blazar/15.0.0-2
Author: Debian Bug Tracking System
Date: Tue, 13 Oct 2026 13:00
Date: Tue, 13 Oct 2026 13:00
10 lines
2276 bytes
2276 bytes
Processing control commands: > affects -1 + src:blazar Bug #1150797 [release.debian.org] trixie-pu: package blazar/15.0.0-2 Added indication that 1150797 affects src:blazar -- 1150797: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1150797 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
Processed: Re: Bug#1150797: trixie-pu: package blazar/15.0.0-2
Author: Debian Bug Tracking System
Date: Sat, 07 Nov 2026 22:30
Date: Sat, 07 Nov 2026 22:30
10 lines
2275 bytes
2275 bytes
Processing control commands: > tag -1 confirmed Bug #1150797 [release.debian.org] trixie-pu: package blazar/15.0.0-2 Added tag(s) confirmed. -- 1150797: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1150797 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
Bug#1150797: trixie-pu: package blazar/15.0.0-2
Author: Jonathan Wiltshire
Date: Sat, 07 Nov 2026 22:30
Date: Sat, 07 Nov 2026 22:30
14 lines
2284 bytes
2284 bytes
Control: tag -1 confirmed Hi, Please go ahead. Thanks, -- Jonathan Wiltshire jmw@debian.org Debian Developer http://people.debian.org/~jmw 4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51 ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1
Bug#1150797: marked as done (trixie-pu: package blazar/15.0.0-2)
Author: Debian Bug Tracking System
Date: Wed, 11 Nov 2026 09:40
Date: Wed, 11 Nov 2026 09:40
503 lines
24627 bytes
24627 bytes
This is a multi-part message in MIME format...
------------=_1794389582-3613890-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your message dated Wed, 11 Nov 2026 10:31:28 +0100
with message-id <30c921b2-2470-477c-a678-c9e64b57d4ea@debian.org>
and subject line Closing
has caused the Debian Bug report #1150797,
regarding trixie-pu: package blazar/15.0.0-2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--=20
1150797: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1150797
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
------------=_1794389582-3613890-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by bugs.debian.org; 13 Oct 2026 12:51:14 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-31.9 required=4.0 tests=BAYES_00,
BODY_INCLUDES_CONTROL_AFFECTS,BODY_INCLUDES_PACKAGE,FOURLA,
FROMDEVELOPER,HAS_PACKAGE,MD5_SHA1_SUM,NO_RELAYS,XMAILER_REPORTBUG
autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 165; hammy, 150; neutral, 423; spammy,
0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
0.000-+--X-Debbugs-Cc, 0.000-+--trixie, 0.000-+--H*Ad:N*Bug,
0.000-+--HTo:N*Debian
Return-path: <zigo@debian.org>
Received: via submission
by buxtehude.debian.org with esmtp (Exim 4.96)
(envelope-from <zigo@debian.org>)
id 1xGbG0-002EDa-1B
for submit@bugs.debian.org;
Tue, 13 Oct 2026 12:05:26 +0000
Content-Type: multipart/mixed; boundary="===============9091277980472251350=="
MIME-Version: 1.0
From: Thomas Goirand <zigo@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: trixie-pu: package blazar/15.0.0-2
Message-ID: <179189125428.533757.14129251517495373574.reportbug@zbuz.infomaniak.ch>
X-Mailer: reportbug 13.2.0
Date: Tue, 13 Oct 2026 13:34:14 +0200
Delivered-To: submit@bugs.debian.org
This is a multi-part MIME message sent by reportbug.
--===============9091277980472251350==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: blazar@packages.debian.org
Control: affects -1 + src:blazar
User: release.debian.org@packages.debian.org
Usertags: pu
Hi,
[ Reason ]
I would like to upload a fix for CVE-2026-93852 and CVE-2026-93854
through Trixie p-u.
[ Impact ]
As per upstream announce:
https://security.openstack.org/ossa/OSSA-2026-040.html
* In OpenStack Blazar before 17.0.1, the V2 lease listing
operation (GET /v2/leases) returns leases for every project without
enforcing project scoping or an administrator-only policy. Any
authenticated user with access to the Blazar REST API can enumerate leases
belonging to other tenants, exposing lease IDs, reservation IDs, resource
IDs, and reservation metadata. The exposed lease IDs also enable the
object-level authorization bypass tracked in the companion request,
allowing an attacker to then modify or delete the enumerated leases.
* In OpenStack Blazar before 17.0.1, the V2 lease API does
not enforce object-level authorization on its update and delete operations
(PUT /v2/leases/{lease_id} and DELETE /v2/leases/{lease_id}). The policy
authorize() wrapper attempts to load the target lease to build the
authorization target from its owner, but it looks up the lease under the
keyword "lease_id" whereas the controller methods name the parameter "id"
(and the wsme_pecan.wsexpose wrapper delivers it positionally). The lookup
returns None, and thus authorization falls back to the requesting user's
own project_id/user_id instead of the target lease owner. Any authenticated
user who knows a lease ID can therefore modify or delete leases belonging
to other users and projects, bypassing the intended ownership check.
[ Tests ]
The included patch also modifes tests, which are used for this
part of the API, so it's covered.
There's also upstream functional testing.
[ Risks ]
Ok, because of upstream tests and unit tests.
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
Upstream patch.
Package is uploaded, and just need the Stable release team approval.
Cheers,
Thomas Goirand (zigo)
--===============9091277980472251350==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="blazar_15.0.0-2+deb13u1.debdiff"
diff -Nru blazar-15.0.0/debian/changelog blazar-15.0.0/debian/changelog
--- blazar-15.0.0/debian/changelog 2025-05-12 12:36:04.000000000 +0200
+++ blazar-15.0.0/debian/changelog 2026-10-13 13:22:28.000000000 +0200
@@ -1,3 +1,31 @@
+blazar (15.0.0-2+deb13u1) trixie; urgency=medium
+
+ * CVE-2026-93852: In OpenStack Blazar before 17.0.1, the V2 lease listing
+ operation (GET /v2/leases) returns leases for every project without
+ enforcing project scoping or an administrator-only policy. Any
+ authenticated user with access to the Blazar REST API can enumerate leases
+ belonging to other tenants, exposing lease IDs, reservation IDs, resource
+ IDs, and reservation metadata. The exposed lease IDs also enable the
+ object-level authorization bypass tracked in the companion request,
+ allowing an attacker to then modify or delete the enumerated leases.
+ .
+ CVE-2026-93854: In OpenStack Blazar before 17.0.1, the V2 lease API does
+ not enforce object-level authorization on its update and delete operations
+ (PUT /v2/leases/{lease_id} and DELETE /v2/leases/{lease_id}). The policy
+ authorize() wrapper attempts to load the target lease to build the
+ authorization target from its owner, but it looks up the lease under the
+ keyword "lease_id" whereas the controller methods name the parameter "id"
+ (and the wsme_pecan.wsexpose wrapper delivers it positionally). The lookup
+ returns None, and thus authorization falls back to the requesting user's
+ own project_id/user_id instead of the target lease owner. Any authenticated
+ user who knows a lease ID can therefore modify or delete leases belonging
+ to other users and projects, bypassing the intended ownership check.
+ .
+ Applied upstream patch (Closes: #1148408).
+ - CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorizat....patch
+
+ -- Thomas Goirand <zigo@debian.org> Tue, 13 Oct 2026 13:22:28 +0200
+
blazar (15.0.0-2) unstable; urgency=medium
* Add fix-lease-date-not-enough-in-the-future.patch (Closes: #1104885).
diff -Nru blazar-15.0.0/debian/patches/CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch blazar-15.0.0/debian/patches/CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch
--- blazar-15.0.0/debian/patches/CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch 1970-01-01 01:00:00.000000000 +0100
+++ blazar-15.0.0/debian/patches/CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch 2026-10-13 13:22:28.000000000 +0200
@@ -0,0 +1,202 @@
+Author: Matt Crees <mattc@stackhpc.com>
+Date: Thu, 17 Sep 2026 14:12:11 +0100
+Description: [PATCH] Fix v2 API object-level authorization bypass
+ Fixes two security flaws with the v2 API: any user could update/delete a
+ lease from any project via the v2 API, provided that they had the lease ID.
+ Additionally, any user could use the v2 API to list all leases, including
+ those in another project.
+ .
+ Operators that cannot yet upgrade should consider instead disabling the v2
+ API with the following config in ``blazar.conf``:
+ .
+ ```
+ [api]
+ api_v2_controllers =
+ ```
+Bug: https://launchpad.net/bugs/2162719
+Bug-Debian: https://bugs.debian.org/1148408
+Change-Id: I7b33491e96440d419e3e5a514f1a7a46b82547f5
+Signed-off-by: Matt Crees <mattc@stackhpc.com>
+Origin: upstream, https://review.opendev.org/c/openstack/blazar/+/1006053
+Last-Update: 2026-10-13
+
+diff --git a/blazar/api/v2/controllers/extensions/lease.py b/blazar/api/v2/controllers/extensions/lease.py
+index 6af8b89..d63c789 100644
+--- a/blazar/api/v2/controllers/extensions/lease.py
++++ b/blazar/api/v2/controllers/extensions/lease.py
+@@ -86,22 +86,28 @@
+
+ @policy.authorize('leases', 'get')
+ @wsme_pecan.wsexpose(Lease, types.UuidType())
+- def get_one(self, id):
++ def get_one(self, lease_id):
+ """Returns the lease having this specific uuid
+
+- :param id: ID of lease
++ :param lease_id: ID of lease
+ """
+- lease = pecan.request.rpcapi.get_lease(id)
++ lease = pecan.request.rpcapi.get_lease(lease_id)
+ if lease is None:
+- raise exceptions.NotFound(object={'lease_id': id})
++ raise exceptions.NotFound(object={'lease_id': lease_id})
+ return Lease.convert(lease)
+
+ @policy.authorize('leases', 'get')
+ @wsme_pecan.wsexpose([Lease], q=[])
+ def get_all(self):
+- """Returns all leases."""
++ """Returns all leases for the current project."""
++ ctx = pecan.request.context
++ if policy.enforce(ctx, 'admin', {}, do_raise=False):
++ project_id = None
++ else:
++ project_id = ctx.project_id
+ return [Lease.convert(lease)
+- for lease in pecan.request.rpcapi.list_leases()]
++ for lease in pecan.request.rpcapi.list_leases(
++ project_id=project_id)]
+
+ @policy.authorize('leases', 'post')
+ @wsme_pecan.wsexpose(Lease, body=Lease, status_code=201)
+@@ -122,10 +128,10 @@
+
+ @policy.authorize('leases', 'put')
+ @wsme_pecan.wsexpose(Lease, types.UuidType(), body=Lease)
+- def put(self, id, sublease):
++ def put(self, lease_id, sublease):
+ """Update an existing lease.
+
+- :param id: UUID of a lease.
++ :param lease_id: UUID of a lease.
+ :param lease: a subset of a Lease containing values to update.
+ """
+ sublease_dct = sublease.as_dict()
+@@ -149,21 +155,21 @@
+ if before_end_date:
+ sublease_dct['before_end_date'] = before_end_date
+
+- lease = pecan.request.rpcapi.update_lease(id, sublease_dct)
++ lease = pecan.request.rpcapi.update_lease(lease_id, sublease_dct)
+
+ if lease is None:
+- raise exceptions.NotFound(object={'lease_id': id})
++ raise exceptions.NotFound(object={'lease_id': lease_id})
+ return Lease.convert(lease)
+
+ @policy.authorize('leases', 'delete')
+ @wsme_pecan.wsexpose(None, types.UuidType(), status_code=204)
+- def delete(self, id):
++ def delete(self, lease_id):
+ """Delete an existing lease.
+
+- :param id: UUID of a lease.
++ :param lease_id: UUID of a lease.
+ """
+ try:
+- pecan.request.rpcapi.delete_lease(id)
++ pecan.request.rpcapi.delete_lease(lease_id)
+ except TypeError:
+ # The lease was not existing when asking to delete it
+- raise exceptions.NotFound(object={'lease_id': id})
++ raise exceptions.NotFound(object={'lease_id': lease_id})
+diff --git a/blazar/policy.py b/blazar/policy.py
+index 7d37f3f..642ebd6 100644
+--- a/blazar/policy.py
++++ b/blazar/policy.py
+@@ -16,12 +16,14 @@
+ """Policy Engine For Blazar."""
+
+ import functools
++import inspect
+
+ from oslo_config import cfg
+ from oslo_log import log as logging
+ from oslo_policy import policy
+
+ from blazar import context
++from blazar.db import api as db_api
+ from blazar import exceptions
+ from blazar import policies
+
+@@ -101,8 +103,35 @@ def authorize(extension, action=None, api='blazar', ctx=None,
+ @functools.wraps(func)
+ def wrapped(self, *args, **kwargs):
+ cur_ctx = ctx or context.current()
+- tgt = target or {'project_id': cur_ctx.project_id,
+- 'user_id': cur_ctx.user_id}
++ tgt = target
++ if tgt is None:
++ obj = None
++ # NOTE(mattcrees): The V2 API wraps the requests with
++ # wsme_pecan.wsexpose, which causes kwargs to arrive as regular
++ # args instead. Work around this by inspecting the function and
++ # extracting out the lease_id kwarg.
++ # TODO(mattcrees): Revert to kwargs.get("lease_id") once the V2
++ # API is removed.
++ bound = inspect.signature(func).bind_partial(self, *args,
++ **kwargs)
++ lease_id = kwargs.get('lease_id')
++ if lease_id is None:
++ lease_id = bound.arguments.get('lease_id')
++ if lease_id is None and 'kwargs' in bound.arguments:
++ lease_id = bound.arguments['kwargs'].get('lease_id')
++ if lease_id:
++ obj = db_api.lease_get(lease_id)
++ if obj:
++ tgt = {
++ 'project_id': obj.get("project_id"),
++ 'user_id': obj.get("user_id"),
++ }
++ else:
++ tgt = {
++ 'project_id': cur_ctx.project_id,
++ 'user_id': cur_ctx.user_id,
++ }
++
+ if action is None:
+ act = '%s:%s' % (api, extension)
+ else:
+diff --git a/blazar/tests/api/__init__.py b/blazar/tests/api/__init__.py
+index 6f0f9bc..d30b497 100644
+--- a/blazar/tests/api/__init__.py
++++ b/blazar/tests/api/__init__.py
+@@ -21,6 +21,7 @@
+
+ from blazar.api import context as api_context
+ from blazar import context
++from blazar.db import api as db_api
+ from blazar.manager.leases import rpcapi as leases_api
+ from blazar.manager.oshosts import rpcapi as hosts_rpcapi
+ from blazar import tests
+@@ -71,6 +72,8 @@
+ self.rpcapi = leases_api.ManagerRPCAPI
+ self.hosts_rpcapi = hosts_rpcapi.ManagerRPCAPI
+
++ self.patch(db_api, 'lease_get').return_value = None
++
+ # self.patch(rpcapi.ManagerRPCAPI, 'list_leases').return_value = []
+
+ def reset_pecan():
+diff --git a/releasenotes/notes/fix-v2-api-object-level-authorization-bypass-6fac65c3caa8a731.yaml b/releasenotes/notes/fix-v2-api-object-level-authorization-bypass-6fac65c3caa8a731.yaml
+new file mode 100644
+index 0000000..bbe0a10
+--- /dev/null
++++ b/releasenotes/notes/fix-v2-api-object-level-authorization-bypass-6fac65c3caa8a731.yaml
+@@ -0,0 +1,16 @@
++---
++security:
++ - |
++ Fixed two security flaws with the v2 API: any user could update/delete a
++ lease from any project via the v2 API, provided that they had the lease ID.
++ Additionally, any user could use the v2 API to list all leases, including
++ those in another project.
++ `LP#2162719 <https://bugs.launchpad.net/blazar/+bug/2162719>`__
++
++ Operators that cannot yet upgrade should consider instead disabling the v2
++ API with the following config in ``blazar.conf``:
++
++ .. code-block:: ini
++
++ [api]
++ api_v2_controllers =
diff -Nru blazar-15.0.0/debian/patches/series blazar-15.0.0/debian/patches/series
--- blazar-15.0.0/debian/patches/series 2025-05-12 12:36:04.000000000 +0200
+++ blazar-15.0.0/debian/patches/series 2026-10-13 13:22:28.000000000 +0200
@@ -1,2 +1,3 @@
install-all-files.patch
fix-lease-date-not-enough-in-the-future.patch
+CVE-2026-93852_CVE-2026-93854_Fix_v2_API_object-level_authorization_bypass.patch
--===============9091277980472251350==--
------------=_1794389582-3613890-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 1150797-done) by bugs.debian.org; 11 Nov 2026 09:31:31 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-109.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,CLOSE,
DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
FROMDEVELOPER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST
autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 78; neutral, 17; spammy, 0.
spammytokens: hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <zigo@debian.org>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:47208)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <zigo@debian.org>)
id 1xR4fz-00FA0G-0v
for 1150797-done@bugs.debian.org;
Wed, 11 Nov 2026 09:31:31 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
s=smtpauto.stravinsky; h=X-Debian-User:Content-Transfer-Encoding:Content-Type
:Subject:From:To:MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:
Content-Description:In-Reply-To:References;
bh=RTpKcm0NzqCYJz4dsqeeE0IxW7D5FdDzqZIBCIvi5cM=; b=iaJykrXMttWuqZJ6lFqCEXvDt3
R988A7NnATjpHPVb+VPzinbEK5WLo1yvPFTDFlLFKNrZXqmvdCIzRQHtldZHvRm8SjIPtVKkZECip
TwCpYmlY9TC3ufVh7TUk2pzcNixCcJKuLEaZ6fUcqKujbRrA2swP24ZkJu6Pax5P32UkUKStAQdc6
3LlJDEZGU8BRsoxXMcguUcez8FmlFYODfRE94WKX1k82ppoFDJgOh4GbGO3yCZ7zuSWxltenOg/7/
sbysGkSahApFfXSM76dMGZ5xSlxh1H/6BtRMo8LNzVHAO3JNUd42on3RmwwG6CVFSRqoJXlaRb0Ft
3+xHlOeA==;
Received: from authenticated-user
by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
(Exim 4.96)
(envelope-from <zigo@debian.org>)
id 1xR4fx-00D5CS-0q
for 1150797-done@bugs.debian.org;
Wed, 11 Nov 2026 09:31:29 +0000
Message-ID: <30c921b2-2470-477c-a678-c9e64b57d4ea@debian.org>
Date: Wed, 11 Nov 2026 10:31:28 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: 1150797-done@bugs.debian.org
From: Thomas Goirand <zigo@debian.org>
Subject: Closing
Autocrypt: addr=zigo@debian.org; keydata=
xsFNBE+eNnMBEACkQR/JceoLlT+f5iY4SzPCm+Xakc/sSBIlJLJS1BhgxjozPJ1L8deg7G7O
EpHOunVoe5NTp/M374XaUR7IM/6Ra/2hJJBFgoGCbNMlbAK0r59BuUYQkl1SKAxGESyDGE97
8cYBpzNAse30CccfVenJtLQhB2QDE4JotaNz/mzGIITpBk50rLpNwTKK47lm/oCxEC2gvnOM
1SqKtF/B2/3VDtN/1QJg0rmkOai8UrkOkw8awYe4J4qMTUe97BdyAPXdv5uE4QOANywc1APu
ABmn0/3gxGTWL/CNhwVFyCgmnIXuvdmQtydvBWmphpLUtCGxe0sWzvTme1FHLq1e5WLsZ4yt
fkll//TAQ18YrkdT8P8PuwaZ0Wvu6VJ1EL64+J5bStgXEkVKZw++y5oPPxSTQgbeks6dOXR/
z0WI8wAmzWqJeOJGtdIY6dE2zPjFH0LxtAl6xFQoYuFnNJ1g3/D5QgjBZYDtaBL+3A3hVWVu
GJfgmhXsBnGq+fQmQvvAnagBhuuS17e5gCVlIS8ow7ScYW560NyxjCr0+r6DtEwM/xFsMTaD
fWGgBPT/CJt+550HyobIUaDsqm9fqYWKLJ98ApsF1zD+s9ubnqQwPClIoBoiCn9wIojsENOT
T6xhAqt8JPDSQpAjLwp1eIW79YYNJ+nkXF1wOVBaq37VytIhiwARAQABzSBUaG9tYXMgR29p
cmFuZCA8emlnb0BkZWJpYW4ub3JnPsLBdwQTAQgAIQUCT542cwIbAwULCQgHAwUVCgkICwUW
AgMBAAIeAQIXgAAKCRDUFq0VrGtD/hzyEAChBUq1CRrdD8dH+5CX0/1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7ktUs4eEXP84cGFlpU4dLWwP
Organization: Debian
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Debian-User: zigo
Hi,
Sorry, duplicate bug. Let's track this in in #1153715
I have uploaded the package, FYI.
Cheers,
Thomas Goirand (zigo)
------------=_1794389582-3613890-0--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads