Article View: linux.debian.devel.release
Article #1052Bug#1150757: marked as done (trixie-pu: package gnocchi/4.6.5-1 (OSSN-0112 / GHSA-cjq3-6hm7-q33w))
From: Debian Bug Tracking System
Date: Sat, 21 Nov 2026 09:50
Date: Sat, 21 Nov 2026 09:50
307 lines
14328 bytes
14328 bytes
This is a multi-part message in MIME format...
------------=_1795253379-3309292-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your message dated Sat, 21 Nov 2026 09:28:02 +0000
with message-id <E1xUhO6-00000008swt-1e97@coccia.debian.org>
and subject line Released in 13.8
has caused the Debian Bug report #1150757,
regarding trixie-pu: package gnocchi/4.6.5-1 (OSSN-0112 / GHSA-cjq3-6hm7-q3=
3w)
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
1150757: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1150757
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
------------=_1795253379-3309292-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by bugs.debian.org; 13 Oct 2026 09:59:04 +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, 74; hammy, 150; neutral, 273; 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 1xGZHj-001nqr-0s
for submit@bugs.debian.org;
Tue, 13 Oct 2026 09:59:04 +0000
Content-Type: multipart/mixed; boundary="===============8665998071850213932=="
MIME-Version: 1.0
From: Thomas Goirand <zigo@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: trixie-pu: package gnocchi/4.6.5-1 (OSSN-0112 / GHSA-cjq3-6hm7-q33w)
Message-ID: <179188553620.388254.12074306622388843021.reportbug@zbuz.infomaniak.ch>
X-Mailer: reportbug 13.2.0
Date: Tue, 13 Oct 2026 11:58:56 +0200
Delivered-To: submit@bugs.debian.org
This is a multi-part MIME message sent by reportbug.
--===============8665998071850213932==
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: gnocchi@packages.debian.org
Control: affects -1 + src:gnocchi
User: release.debian.org@packages.debian.org
Usertags: pu
Hi,
[ Reason ]
I would like to address the security issue OSSN-0112 / GHSA-cjq3-6hm7-q33w.
The Github announce is here:
https://github.com/gnocchixyz/gnocchi/security/advisories/GHSA-cjq3-6hm7-q33w
At time of writting, the OpenStack security announce is still not merged,
but can be see here:
https://review.opendev.org/c/openstack/security-doc/+/1002392/15/security-notes/OSSN-0112.yaml
[ Impact ]
The vulnerability allows authenticated users to create metrics associated
with resources belonging to other projects by bypassing authorization
checks.
As a consequence, it is possible for the attacker to make OpenStack
write what it wants, and possibly (if the victime uses auto-scalling)
make the victim auto-scaller Heat script be fooled into thinking it
need to scale up, and spend too much money on a public cloud deployment.
[ Tests ]
The patch includes new unit tests. We also have put the fix into
production in our public cloud deployment.
[ Risks ]
Not much, the patch is small, and easy to understand. It just checks
if a resource is there within the scope of the user, meaning that it
will not appear as existing if the resource is owned by someone else.
Basically, the patch adds this:
try:
resource = pecan.request.indexer.get_resource(
"generic", resource_id)
except indexer.NoSuchResource:
abort(404, str(indexer.NoSuchResource(resource_id)))
(plus some 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 ]
Just as per above.
Please accept gnocchi/4.6.5-1+deb13u1
Note I already uploaded it, as I've been told this is possible, and
if no controvercy.
Cheers,
Thomas Goirand (zigo)
--===============8665998071850213932==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gnocchi_4.6.5-1+deb13u1.debdiff"
diff -Nru gnocchi-4.6.5/debian/changelog gnocchi-4.6.5/debian/changelog
--- gnocchi-4.6.5/debian/changelog 2025-03-28 14:54:00.000000000 +0100
+++ gnocchi-4.6.5/debian/changelog 2026-09-23 12:38:32.000000000 +0200
@@ -1,3 +1,13 @@
+gnocchi (4.6.5-1+deb13u1) trixie; urgency=medium
+
+ * OSSN-0112 / GHSA-cjq3-6hm7-q33w: Improper Access Control through
+ /metric/v1/metric via POST parameter "resource_id". Added patch: "Enforce
+ update resource policy metric creation" (Closes: #1150009):
+ - OSSN-0112_Enforce-update-resource-policy-metric-creation.patch
+ - CVE-2018-11774_OSSN-0112_Enforce-update-resource-policy-metric-c....patch
+
+ -- Thomas Goirand <zigo@debian.org> Wed, 23 Sep 2026 12:38:32 +0200
+
gnocchi (4.6.5-1) unstable; urgency=medium
* New upstream release.
diff -Nru gnocchi-4.6.5/debian/patches/OSSN-0112_Enforce-update-resource-policy-metric-creation.patch gnocchi-4.6.5/debian/patches/OSSN-0112_Enforce-update-resource-policy-metric-creation.patch
--- gnocchi-4.6.5/debian/patches/OSSN-0112_Enforce-update-resource-policy-metric-creation.patch 1970-01-01 01:00:00.000000000 +0100
+++ gnocchi-4.6.5/debian/patches/OSSN-0112_Enforce-update-resource-policy-metric-creation.patch 2026-09-23 12:38:32.000000000 +0200
@@ -0,0 +1,69 @@
+Description: Enforce update resource policy metric creation
+ When passing the resource_id in the request body
+ we should load the resource by ID and enforce the
+ `update resource` policy with the loaded resource.
+Bug-Debian: https://bugs.debian.org/1150009
+Author: Tobias Urdin <tobias.urdin@binero.com>
+Date: Tue, 22 Sep 2026 17:05:44 +0200
+Change-Id: I519433b8e3d8e52daf22be67d9b3d9bfd2c6fa06
+Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
+Origin: upstream, https://github.com/gnocchixyz/gnocchi/commit/db32814f594bae25a8483c6d9af4e6378191b7c3
+Last-Update: 2026-10-05
+
+diff --git a/gnocchi/rest/api.py b/gnocchi/rest/api.py
+index 6e23a4c8..71c4116a 100644
+--- a/gnocchi/rest/api.py
++++ b/gnocchi/rest/api.py
+@@ -595,6 +595,12 @@ class MetricsController(rest.RestController):
+ "reason": "Name cannot be null "
+ "if resource_id is not null"})
+ original_resource_id, resource_id = resource_id
++ try:
++ resource = pecan.request.indexer.get_resource(
++ "generic", resource_id)
++ except indexer.NoSuchResource:
++ abort(404, str(indexer.NoSuchResource(resource_id)))
++ enforce("update resource", resource)
+
+ enforce("create metric", {
+ "creator": creator,
+diff --git a/gnocchi/tests/test_rest.py b/gnocchi/tests/test_rest.py
+index 0171bde5..353e8d0d 100644
+--- a/gnocchi/tests/test_rest.py
++++ b/gnocchi/tests/test_rest.py
+@@ -659,6 +659,35 @@ class MetricTest(RestTest):
+ metric2: []},
+ result)
+
++ def test_metric_with_resource_id_from_other_user(self):
++ resource_id = str(uuid.uuid4())
++ self.app.post_json(
++ "/v1/resource/generic",
++ params={
++ "id": resource_id,
++ "user_id": TestingApp.USER_ID,
++ "project_id": TestingApp.PROJECT_ID,
++ },
++ )
++
++ with self.app.use_another_user():
++ self.app.get(
++ "/v1/resource/generic/%s" % resource_id,
++ status=403,
++ )
++
++ with self.app.use_another_user():
++ self.app.post_json(
++ "/v1/metric",
++ params={
++ "archive_policy_name": "low",
++ "resource_id": resource_id,
++ "name": "cpu",
++ "unit": "ns",
++ },
++ status=403,
++ )
++
+
+ class ResourceTest(RestTest):
+ def setUp(self):
diff -Nru gnocchi-4.6.5/debian/patches/series gnocchi-4.6.5/debian/patches/series
--- gnocchi-4.6.5/debian/patches/series 2025-03-28 14:54:00.000000000 +0100
+++ gnocchi-4.6.5/debian/patches/series 2026-09-23 12:38:32.000000000 +0200
@@ -2,3 +2,4 @@
install-missing-files.patch
add-disable_by_file_path.patch
change-default-number-of-sacks.patch
+OSSN-0112_Enforce-update-resource-policy-metric-creation.patch
--===============8665998071850213932==--
------------=_1795253379-3309292-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 1150757-done) by bugs.debian.org; 21 Nov 2026 09:28:05 +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=-106.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,
SPF_PASS,USER_IN_DKIM_WELCOMELIST,VERSION autolearn=ham
autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 6; hammy, 74; neutral, 16; spammy, 0.
spammytokens: hammytokens:0.000-+--H*r:sk:coccia.,
0.000-+--H*MI:coccia, 0.000-+--H*m:coccia, 0.000-+--H*r:submission,
0.000-+--H*F:U*jmw
Return-path: <jmw@coccia.debian.org>
Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:41182)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <jmw@coccia.debian.org>)
id 1xUhO9-00DrkB-2Z
for 1150757-done@bugs.debian.org;
Sat, 21 Nov 2026 09:28:04 +0000
Received: via submission
from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=coccia.debian.org,EMAIL=hostmaster@coccia.debian.org (verified)
by mailly.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <jmw@coccia.debian.org>)
id 1xUhO7-004hwA-2C
for 1150757-done@bugs.debian.org;
Sat, 21 Nov 2026 09:28:03 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=coccia.debian.org; s=smtpauto.coccia; h=Date:From:Message-Id:
Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To:Reply-To:Cc:
Content-ID:Content-Description:In-Reply-To:References;
bh=j3C+QfqZhEAyGCz+F5Nny7uVPSJTnuL2JF6zBnHyDlM=; b=eP8z/1vrmiYvsHLgQhwLROtGZf
YMfKYpZLG3BXncMY9q/PvakwMZNzG17zdw8lT+DFAQ+ZRi7T9Kodn7ex/iyLENMiWWlUvV0MskwgY
Z8vXydkxyrV8KUO14ZFAtJEOFT415HpOv1WY6XrcpFOmhr7HQKMgm3GStQRk8iNJJsoFq6OjiYZT+
CTyyo9hbwaIeE6GTjFd25ImQOiLbRCG5ffyYM6+4g82hQdRGIeIEWksQTQAw05OnOjVY7Rr/7iKrR
d/lpz6YrB0yVv5El75eYNcTLKUl1MMKh9mTXu9WheIgU+WTRBgkcF5Fw7jwg2WM/bj6JgWuEyObrk
LcFoYG/A==;
Received: from jmw by coccia.debian.org with local (Exim 4.98.2)
(envelope-from <jmw@coccia.debian.org>)
id 1xUhO6-00000008swt-1e97
for 1150757-done@bugs.debian.org;
Sat, 21 Nov 2026 09:28:02 +0000
To: 1150757-done@bugs.debian.org
Subject: Released in 13.8
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Message-Id: <E1xUhO6-00000008swt-1e97@coccia.debian.org>
From: Jonathan Wiltshire <jmw@coccia.debian.org>
Date: Sat, 21 Nov 2026 09:28:02 +0000
X-CrossAssassin-Score: 46
Version: 13.8
This update was released as part of 13.8.
------------=_1795253379-3309292-0--
Technical Details
Message-ID:
<O1PTl-dfpW-195@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O1PTl-dfpW-197@gated-at.bofh.it> <NNHCh-5fks-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: "Debian Bug Tracking System" <owner@bugs.debian.org> Newsgroups: linux.debian.devel.release Subject: Bug#1150757: marked as done (trixie-pu: package gnocchi/4.6.5-1 (OSSN-0112 / GHSA-cjq3-6hm7-q33w)) Date: Sat, 21 Nov 2026 10:50:03 +0100 Message-ID: <O1PTl-dfpW-195@gated-at.bofh.it> References: <O1PTl-dfpW-197@gated-at.bofh.it> <NNHCh-5fks-3@gated-at.bofh.it> X-Mailbox-Line: From debian-release-request@lists.debian.org Sat Nov 21 09:42:28 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Amavis-Spam-Status: No, score=-2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no MIME-Version: 1.0 X-Mailer: MIME-tools 5.510 (Entity 5.510) X-Debian-Pr-Message: closed 1150757 X-Debian-Pr-Package: release.debian.org X-Debian-Pr-Keywords: trixie Reply-To: 1150757@bugs.debian.org Content-Type: multipart/mixed; boundary="----------=_1795253379-3309292-0" X-Mailing-List: <debian-release@lists.debian.org> archive/latest/189356 List-ID: <debian-release.lists.debian.org> List-URL: <https://lists.debian.org/debian-release/> List-Archive: https://lists.debian.org/msgid-search/handler.1150757.D1150757.17952532853305349.ackdone@bugs.debian.org Approved: robomod@news.nic.it Lines: 307 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 21 Nov 2026 09:29:39 +0000 X-Original-Message-ID: <handler.1150757.D1150757.17952532853305349.ackdone@bugs.debian.org> X-Original-References: <E1xUhO6-00000008swt-1e97@coccia.debian.org> <179188553620.388254.12074306622388843021.reportbug@zbuz.infomaniak.ch>