From 6f7706895bd86a8420a670e814699af4c3d16a97 Mon Sep 17 00:00:00 2001 From: Matthew Mongeau Date: Sun, 29 Nov 2026 17:35:52 +0900 Subject: [PATCH] Add amq-protocol GHSA-499w-x7r4-fw7p --- gems/amq-protocol/GHSA-499w-x7r4-fw7p.yml | 62 +++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 gems/amq-protocol/GHSA-499w-x7r4-fw7p.yml diff --git a/gems/amq-protocol/GHSA-499w-x7r4-fw7p.yml b/gems/amq-protocol/GHSA-499w-x7r4-fw7p.yml new file mode 100644 index 0000000000..40f684f87e --- /dev/null +++ b/gems/amq-protocol/GHSA-499w-x7r4-fw7p.yml @@ -0,0 +1,62 @@ +--- +gem: amq-protocol +ghsa: 499w-x7r4-fw7p +url: https://github.com/ruby-amqp/amq-protocol/security/advisories/GHSA-499w-x7r4-fw7p +title: TLS certificate verification disabled by default for amqps:// URIs +date: 2026-11-02 +description: | + ## Summary + + AMQ::URI.parse returns verify false for amqps:// URIs that do not + set the verify query parameter. This overrides the verify_peer true + default in Bunny, so Bunny.new("amqps://...") connects without + certificate and hostname verification. + + ## Details + + AMQ::URI::DEFAULTS and AMQ::Settings set verify and + fail_if_no_peer_cert to false. When the URI has a query string, + absent TLS parameters are also assigned false, so a URI with only + a cacertfile parameter still disables verification. + + Bunny applies its verify_peer true default only when verify, + verify_peer and verify_ssl are all nil. The false value from + amq-protocol prevents that. + + The behavior was introduced in amq-protocol 2.3.0. + + ## Impact + + An attacker on the network path between an application and its + RabbitMQ broker can impersonate the broker and obtain the connection + credentials and messages. + + Applications are affected when they connect with an amqps:// URI + that does not include verify=true, for example one taken from + RABBITMQ_URL or a URI handed out by a hosted broker. + + ## Workarounds + + Add verify=true to the URI (and cacertfile for a private CA), or + pass verify_peer true to Bunny.new. + + ## Patches + + Fixed in amq-protocol 2.10.0. This changes behavior: amqps:// + connections to brokers with self-signed or private-CA certificates + now fail verification unless the URI includes cacertfile, or + verify=false to keep the old behavior. +cvss_v3: 7.4 +unaffected_versions: + - "< 2.3.0" +patched_versions: + - ">= 2.10.0" +related: + url: + - https://rubygems.org/gems/amq-protocol/versions/2.10.0 + - https://github.com/ruby-amqp/amq-protocol/commit/307f55a1299fb6fbde9ef2bd187bcbe23b7cba22 + - https://github.com/ruby-amqp/amq-protocol/blob/main/ChangeLog.md + - https://github.com/ruby-amqp/amq-protocol/security/advisories/GHSA-499w-x7r4-fw7p +notes: | + - No CVE from GHSA URL. + - cvss_v3 from GHSA URL.