Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions gems/amq-protocol/GHSA-499w-x7r4-fw7p.yml
Original file line number Diff line number Diff line change
@@ -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.