VersionDrift
Product

RabbitMQ 4.3.5 → 4.4.0

4 releases · 4 breaking changes · 9 security fixes · 9 advisories fixed

9security4breaking0deprecated60feature73fix

Vulnerabilities fixed by this upgrade

Breaking changes

  • breaking The following AMQP 0-9-1 headers are no longer parsed: x-amqp-1.0-properties x-amqp-1.0-app-properties x-amqp-1.0-message-annotations x-amqp-1.0-footer RabbitMQ 3.13 and earlier used them to carry the AMQP 1.0 sections of a message received over AMQP 1.0. Nothing has written them since 4.0, so… in 4.4.0
  • breaking Likewise, the x-basic-delivery-mode, x-basic-priority and x-basic-expiration message annotations are no longer parsed. They were written before 4.0 when an AMQP 0-9-1 message was encoded as AMQP 1.0 for a stream, so only a stream entry written by a 3.13 or earlier node carries them, and reading it… in 4.4.0
  • breaking OpenID Connect discovery responses are now validated more strictly. A deployment whose identity provider serves non-HTTPS (http://) endpoints, or whose issuer claim does not match the discovery endpoint used to retrieve it, will fail discovery validation after the upgrade. This is known to affect… in 4.4.0
  • breaking GET /api/auth/hash_password/{password} was replaced with another endpoint, POST /api/auth/hash_password. The new endpoint consumes a POST body with JSON document with one key {"password": "..."} in 4.4.0

Security changes

  • security Fixes GHSA-3wxh-g236-vm46: LDAP authentication failures allow unauthenticated log amplification in 4.3.7
  • security Fixes GHSA-9h6g-46wc-m2f5: Memory DoS via incomplete AMQP 0-9-1 messages in 4.3.7
  • security Fixes GHSA-g73v-gcjq-2g4h: AMQP message conversion can repeatedly disconnect AMQP 0-9-1 consumers in 4.3.7
  • security Fixes GHSA-6wvj-vwrc-wcrm: HTML injection in management UI OAuth login warning in 4.3.7
  • security Fixes GHSA-mhh3-4wv2-rrj7: SASL credentials are not redacted from `amqp10_client` crash dumps and `sys:get_status` output in 4.3.7
  • security Fixes GHSA-5jgm-jxp7-gwjh: MQTT retained message store has no size or count limit and is never reclaimed in 4.3.6
  • security Fixes GHSA-j6hc-926v-qwq2: RabbitMQ STOMP consumers retain OAuth queue access after JWT expiration in 4.3.6
  • security Fixes GHSA-6jvc-jx8w-m757: RabbitMQ Stream Publisher Management API Discloses Unauthorized Vhost and Stream Existence in 4.3.6
  • security Fixes GHSA-342v-cj47-c9g8: Cross-vhost Stream consumer virtual-host existence disclosure in 4.3.6

Every release in between

breakingThe following AMQP 0-9-1 headers are no longer parsed: x-amqp-1.0-properties x-amqp-1.0-app-properties x-amqp-1.0-message-annotations x-amqp-1.0-footer RabbitMQ 3.13 and earlier used them to carry the AMQP 1.0 sections of a message received over AMQP 1.0. Nothing has written them since 4.0, so…
breakingLikewise, the x-basic-delivery-mode, x-basic-priority and x-basic-expiration message annotations are no longer parsed. They were written before 4.0 when an AMQP 0-9-1 message was encoded as AMQP 1.0 for a stream, so only a stream entry written by a 3.13 or earlier node carries them, and reading it…
breakingOpenID Connect discovery responses are now validated more strictly. A deployment whose identity provider serves non-HTTPS (http://) endpoints, or whose issuer claim does not match the discovery endpoint used to retrieve it, will fail discovery validation after the upgrade. This is known to affect…
breakingGET /api/auth/hash_password/{password} was replaced with another endpoint, POST /api/auth/hash_password. The new endpoint consumes a POST body with JSON document with one key {"password": "..."}
featureThis version fully supports Erlang 28 and 29 series for both new clusters and rolling upgrade scenarios, assuming that . Important: in cases where RabbitMQ is upgraded to 4.4.0 and Erlang is upgraded to 28+ at the same time, we highly recommend first upgrading to 4.3.7 or a later patch, a 4.3…
featureQuorum queues now support delayed messages. A message with an x-opt-delivery-time annotation or header set to a future time, in milliseconds since the Unix epoch, is routed and enqueued immediately but only delivered to consumers once that time is reached. AMQP 1.0 clients set it as a message…
featureAMQP 1.0 clients can now request sole (exclusive) ownership of a container ID. In case of a conflict, the server either refuses the new connection or closes the existing one, depending on what the client requested, per the AMQP 1.0 Connection Uniqueness protocol extension. GitHub issue:
featureA new, optional x-name-prefix queue argument sets the prefix used for a server-named queue's generated name, capped at 64 bytes. The default prefix remains amq.gen. This feature is specific to AMQP 0-9-1. GitHub issue:
featureThe classic queue shared message store gained a new v2 on-disk file format (.sqs). New files are written in v2 automatically. Existing v1 files (.rdq) are left as-is. Note that a node with v2 files present cannot be downgraded to 4.3.x or earlier. GitHub issue:
featureClassic queues now perform compaction more efficiently. GitHub issue:
featurex-modulus-hash exchange routing is now stable: assuming a topology that does not change, messages carrying the same routing key are now routed to the same bound destination. Note: the exchange type has been moved from rabbitmq_sharding to the core, so it is now available even when said plugin is…
featureA change to the delivery-limit policy key now takes effect for existing quorum queues. Previously the delivery limit could not be updated from a policy. Now quorum queues reconfigure their delivery-limit value when a policy is added or updated. When the policy is removed the queue goes back to the…
featureA passive declaration of a queue or an exchange (a check that it exists) requires any one of the configure, write or read permissions on that queue or exchange. This applies to queue.declare and exchange.declare with passive set to true in AMQP 0-9-1, and to queue lookups in AMQP 1.0 management.…
featureReduce boot time of blank (brand new) nodes. GitHub issue:
featureEncrypted value support for the definitions.https.url key in rabbitmq.conf. GitHub issue:
featurePassword salts for internal users are now generated using a cryptographically secure pseudorandom number generator (CPRNG). GitHub issue:
featureA topic exchange binding key can now contain at most two multi-segment (#) wildcards. GitHub issue:
featureRedeclaring a stream with an x-max-age value that is equal to the existing one but written in different units, for example 1D as 24h, is no longer rejected as having non-equivalent arguments. GitHub issues:
featureA stream can now start at an offset other than 0, set with the new x-stream-initial-offset optional queue argument. While the stream is empty, the first and next offset specifications resolve to this offset. The stream protocol accepts the same value as the stream-initial-offset argument of the…
featureMultiple stream coordinator efficiency improvements. For example, the stream coordinator now retries failed stream member actions sooner, with keeping a related stream partition process blocked for the retry delay. Failed operations are now retried after a short randomised delay, and actions that…
featureCertain classic queue recovery scenarios now avoid a counterproductive timeout of 60s. GitHub issue:
featureReduce CPU use of mostly idle quorum queues that do not have any queue decorators configured (which is the common, baseline case). GitHub issues:
featurePBKDF2-HMAC-SHA256 now can be used for password hashing: ini password_hashing_module = rabbit_password_hashing_pbkdf2_sha256 GitHub issue:
featureAMQP listeners can now bind to a Unix domain socket, using the same listeners.tcp.* settings as a TCP listener: ini listeners.tcp.1 = unix:/var/run/rabbitmq/rabbitmq.sock:0 GitHub issue:
featureconnection_max and channel_max were renamed to max_connections and max_channels, respectively, in rabbitmq.conf. The original names are still supported. GitHub issue:
featureMessages are now converted from AMQP 0-9-1 to AMQP 1.0 as a single data section, unless its payload consists of valid AMQP 1.0 body sections. An expiration value that cannot be parsed is now ignored during that conversion. GitHub issue:
featureClient connection listener startup now can be delayed by a configurable number of seconds (default: no additional delay): ini listeners.startup_delay = 10 GitHub issues:
featureInternal peer discovery improvements. GitHub issue:
featureTwo new commands, rabbitmqctl sole_connection_status and rabbitmqctl sole_connection_force_delete, inspect and manage AMQP 1.0 sole connections. GitHub issue:
featureCLI commands that accept sensitive values as interactive input now suppress terminal echoing where possible. This behavior is specific to Erlang 28 and 29. GitHub issue:
featurestream.max_connections is a new rabbitmq.conf setting that limits the concurrent number of RabbitMQ Stream Protocol client connections. GitHub issue:
featurestream.max_super_stream_partitions is a new rabbitmq.conf setting that limits the number of partitions a super stream can have. GitHub issue:
featureA new endpoint, GET /api/init, cuts the number of blocking requests the UI has to make with certain authentication and login flows. GitHub issue:
featureThe Referrer-Policy response header value of the HTTP API and the UI can now be configured using the management.headers.referrer_policy key. GitHub issue:
featureSupport for multiple listeners for all HTTP-based protocols and the HTTP API. GitHub issues:
featuremqtt.max_connections is a new rabbitmq.conf setting that limits the concurrent number of MQTT client connections. GitHub issue:
featureMQTT 5.0: a Receive Maximum value of 0 is now rejected per the protocol spec. GitHub issue:
featureThe MQTT retained message store now has per-virtual host limits on the number of retained messages and their total size. A message that would exceed either limit is not retained. The defaults are 100,000 messages and 1 GiB. Both can be changed, or set to infinity: ini…
featureFollowing the footsteps of AMQP 1.0 and MQTT in previous years, the STOMP is now a standardlone protocol, that is, it is no longer built on AMQP 0-9-1. GitHub issue:
featureGitHub issue:
+35 more items in the release notes
fixA quorum queue leader health check could report a queue with a leader as unhealthy, for example after a leadership change or when the node running the check did not host a replica. GitHub issue:
fixWhen a new quorum queue member is started, the lowest ra machine version is computed using all of the reachable members. GitHub issues:
fixThe metadata store now waits for Raft members with a capped timeout, which avoids an endless retry loop in some operational scenarios. GitHub issues:
fixDefinition import on boot could hang on Erlang 28 because of a missing dependency between boot steps. GitHub issues:
fixVirtual host records written by older versions could have their limits set to undefined, which made definition export fail. GitHub issue:
fixDefinition export no longer includes bindings to exclusive queues, and definition import skips bindings to amq.* queues with a warning instead of failing. GitHub issue:
fixDefinition export no longer includes bindings of queues that were concurrently deleted, and definition import skips bindings of missing server-named queues. GitHub issue:
fixClassic queue CRC32 checksums are now calculated in a way that is compatible with future Erlang releases. GitHub issues:
fixClassic queues: a crash report for a deleted queue now shows the original error. GitHub issue:
fixMessage conversion between AMQP 0-9-1 and AMQP 1.0 no longer fails on decimal and null header values, nor on float, double and null annotation values set by the AMQP 1.0 modified outcome. GitHub issues:
fixHourly log file rotation (for example, log.file.rotation.date = $H30) never rotated the file. GitHub issues:
fixStreams now handle non-string x-stream-filter-value values gracefully. GitHub issue:
fixAMQP 0-9-1 header and argument tables are validated more strictly. GitHub issues:
fixAMQP 1.0 frames are validated more strictly. GitHub issues:
fixAMQP 1.0 SQL filter expressions are evaluated more defensively. GitHub issue:
fixAn AMQP 1.0 session no longer runs into an exception when its writer process has already exited during connection closure. GitHub issue:
fixCredential expiry handling improvements. GitHub issues:
fixProxy Protocol handling improvements. GitHub issue:
fixDead lettering validates its targets more strictly. GitHub issue:
fixChannels now send channel.close-ok with a short socket write timeout. GitHub issue:
featureClosing a non-AMQP 0-9-1 connection (for example, an MQTT, STOMP, stream or AMQP 1.0 connection) is now cheaper on nodes with many tracked channels. GitHub issue:
featureStream segment files now enforce a minimum size of 4,096 bytes. Note that virtually all installations use and should use values in megabytes, not kilobytes. GitHub issue:
fixCLI tools and peer discovery now refuse to remove cluster members that are still booting. GitHub issue:
fixrabbitmqctl export_definitions file permission handling improvements. GitHub issue:
fixStream protocol authentication is validated more strictly. GitHub issue:
fixA node failed to start when the management plugin's TLS listener was configured with management.ssl.ip. GitHub issues:
fixHTTP API endpoints that accept JSON request bodies now require the content-type header to be application/json. GitHub issue:
fixSeveral runtime parameter HTTP API endpoints that previously accepted users tagged as policymaker now require the administrator tag. GitHub issues:
fixPublishing via the HTTP API is now refused when a resource alarm is in effect. GitHub issue:
fixQueue, stream and exchange names that are not valid UTF-8 are now rejected with a 400 Bad Request. GitHub issue:
fixCORS handling improvements. GitHub issue:
fixAn example rabbitmq.conf file could not be generated from the management plugin's schema. GitHub issues:
featureThe polling consumer (POST /api/queues/{vhost}/{name}/get) endpoint now limits how many messages and payload bytes a single request can return: ini # the defaults are 1000 messages and 64 MiB management.polling_consumer.max_messages = 1000 management.polling_consumer.max_payload_bytes = 67108864…
featureHTTP API JSON request body decoding now uses less memory with larger payloads. GitHub issue:
fixExchange metric labels are now properly escaped. GitHub issue:
featurereconnect-delay is now validated more strictly. GitHub issue:
featureConnection timeout is now limited to 180 seconds. GitHub issue:
featureThe number of topic filters and user properties per packet is now limited: ini # the defaults are 512 mqtt.max_topic_filters_per_packet = 512 mqtt.max_user_properties_per_packet = 512 GitHub issue:
featureauth_ldap.dn_lookup_bind.password and auth_ldap.other_bind.password now support encrypted values. GitHub issue:
featureRuntime parameter values are no longer included in the events by default. A new setting controls this behavior: ini event_exchange.runtime_parameters.include_value = false GitHub issue:
+21 more items in the release notes
securityFixes GHSA-3wxh-g236-vm46: LDAP authentication failures allow unauthenticated log amplification
securityFixes GHSA-9h6g-46wc-m2f5: Memory DoS via incomplete AMQP 0-9-1 messages
securityFixes GHSA-g73v-gcjq-2g4h: AMQP message conversion can repeatedly disconnect AMQP 0-9-1 consumers
securityFixes GHSA-6wvj-vwrc-wcrm: HTML injection in management UI OAuth login warning
securityFixes GHSA-mhh3-4wv2-rrj7: SASL credentials are not redacted from `amqp10_client` crash dumps and `sys:get_status` output
fixThe basic.cancel notification sent on a consumer delivery timeout now properly clears consumer state even if the client does not respond with basic.cancel-ok. Most clients do not respond, and nodes older than 4.3.0 do not accept a client-sent basic.cancel-ok at all. The server now advertises…
fixClassic queue expiration (x-expires) timestamps were lost on node restart, so the queue TTL timer did not fire when it was supposed to if the TTL outlived the restart. GitHub issues:
fixRouting to queues now handles concurrent queue deletion gracefully in more places, avoiding confusing (and also non-actionable) exceptions. This also avoids unnecessary publisher confirm noise, most visible with transient exclusive queues bound to a topic exchange. GitHub issues:
fixA quorum queue declaration that timed out waiting for a remote Khepri projection left the queue metadata behind and prevented a retry with the same name. Contributed by @chenshi5012. GitHub issue:
fixMessage conversion between AMQP 1.0 and AMQP 0-9-1 no longer fails on AMQP 1.0 values that AMQP 0-9-1 cannot represent. GitHub issue:
fixDefinition import now rejects a binding with an unrecognised destination_type. GitHub issue:
fixAMQP 0-9-1 content headers are validated more strictly. GitHub issue:
featuressl_options.supported_groups can now be used in rabbitmq.conf to restrict the named groups offered for TLS 1.3 key exchange. GitHub issue:
featureCLI commands that accept sensitive values as interactive input now suppress terminal echoing where possible. This behavior is specific to Erlang 28 and 29. GitHub issue:
fixPagination bug fixes for stream connections. GitHub issues:
fixA 404 for a virtual host the user has no permissions on is now identical to the 404 for a virtual host that does not exist. GitHub issue:
fixThe OAuth 2 token proxy responded with a 500 to some malformed JSON documents. GitHub issue:
fixThe default Content-Security-Policy value now includes base-uri 'none'. GitHub issue:
featureAMQP 1.0 consumers now link directly to their connection in the management UI. GitHub issues:
fixWhen the destination rejects a message, for example because the destination queue has x-overflow set to reject-publish and has reached its maximum length, the shovel now returns the message to the source queue as a failed delivery. A quorum source queue therefore dead-letters the message once it…
fixA shovel with an AMQP 1.0 destination did not settle a message at the source when the destination rejected or released it, and eventually stopped forwarding messages. GitHub issue:
fixA shovel with an AMQP 1.0 source could restart and forward some messages twice when the destination confirmed messages out of order. GitHub issue:
fixA shovel with an AMQP 1.0 source could settle messages incorrectly after more than 4 billion deliveries. With a local destination, it could acknowledge a message at the source before the destination confirmed it. GitHub issue:
fixThe AMQP 0-9-1 shovel now ignores publisher confirms for unknown delivery tags. GitHub issues:
fixFederation links now ignore publisher confirms for unknown delivery tags. GitHub issues:
fixAn exchange federation link now handles amqp_connection:open_channel/1 returning closing instead of {error, Reason}. GitHub issue:
fixQoS 0 consumer queue deletion now retries in more scenarios. GitHub issue:
fixMessage selectors with arithmetic expressions now validate numerical arguments more thoroughly. GitHub issue:
featureThe client now responds to a server-sent basic.cancel with basic.cancel-ok only when the server advertises support for it. GitHub issue:
featureThe auth_mechanism query parameter of an AMQP 0-9-1 URI is now restricted to the mechanisms the client actually supports (plain, amqplain, external, crdemo), and an unsupported value is now rejected when the URI is parsed rather than when the connection is established. This also applies to the…
featureLikewise, the verify query parameter of an AMQP 0-9-1 URI now only accepts verify_peer or verify_none, and an unsupported value is rejected when the URI is parsed rather than when the TLS connection is established. GitHub issue:
featureConnection configuration now accepts a connect_timeout, applied to the socket connect and, for TLS-enabled connections, to the TLS handshake as well. Contributed by @arrangabriel. GitHub issues:
othercowboy was upgraded to 2.20.0
othercowlib was upgraded to 2.21.0
othergun was upgraded to 2.7.0
otherkhepri was upgraded to 0.18.4
securityFixes GHSA-5jgm-jxp7-gwjh: MQTT retained message store has no size or count limit and is never reclaimed
securityFixes GHSA-j6hc-926v-qwq2: RabbitMQ STOMP consumers retain OAuth queue access after JWT expiration
securityFixes GHSA-6jvc-jx8w-m757: RabbitMQ Stream Publisher Management API Discloses Unauthorized Vhost and Stream Existence
securityFixes GHSA-342v-cj47-c9g8: Cross-vhost Stream consumer virtual-host existence disclosure
fixDeleting an exchange did not delete the bindings that pointed to it as a destination. A few related cases around auto-delete exchanges, transient queue cleanup and virtual host deletion were fixed along the way. GitHub issues:
fixQuorum queue continuous membership reconciliation could add more replicas than the configured target. GitHub issues:
fixCertain malformed urn:uuid: correlation or message ID caused exceptions during message format conversion. Such values are now rejected. GitHub issue:
fixAn operation that refers to an unknown queue type now fails with a precondition_failed channel exception instead of an exception and abrupt channel termination. GitHub issue:
fixClassic queue recovery counted some message store references more than once. GitHub issue:
fixx-max-age values are now compared as durations, so redeclaring a stream with 1D when it was declared with 24h no longer fails with a PRECONDITION_FAILED (non-equivalent argument) exception. With contributions from @Vishal-770. GitHub issues:
fixAMQP 1.0 SQL filters: the value matched by a LIKE pattern with several wildcards is now bounded independently of the message size limit. GitHub issue:
fixDirect connections (used by the shovel and federation plugins) now enforce channel_max_per_node the same way network connections do. Contributed by @Ayanda-D. GitHub issue:
featureNew rabbitmq.conf setting: channel_tx_message_max. It bounds the number of publishes a channel buffers in an open AMQP 0-9-1 transaction, and defaults to 10,000. Going over the limit results in a precondition_failed channel exception. Most applications won't be affected by this change and likely…
featureNew rabbitmq.conf setting: listeners.startup_delay. It delays the start of client connection listeners by the specified number of seconds, for environments where applications begin connecting as soon as a port is open, before the node has finished booting. Contributed by @Vishal-770. GitHub issues:
featureSeveral channel interceptors can now be registered for the same AMQP 0-9-1 operation, as long as they use different priorities. Previously, if two enabled plugins intercepted the same operation, for example basic.publish, channels could not be opened at all. Priorities are set per interceptor…
featureShovels now support a new AMQP URI query parameter, customize_hostname_check, that controls how the target hostname is matched against the server certificate, for example with wildcard certificates. Contributed by @jiangranwang. GitHub issue:
fixrabbitmq-diagnostics check_certificate_expiration now handles certificate files that cannot be read, and certificates that use the RFC 5280 UTCTime format, the same way the HTTP API health check does. Contributed by @Vishal-770. GitHub issues:
featureTwo new commands, rabbitmqctl list_channel_interceptors and rabbitmqctl set_channel_interceptor_priorities, list the active channel interceptors and adjust their priorities at runtime. Priorities set this way are not persisted and do not survive a node restart. Contributed by @Ayanda-D. GitHub…
fixDuring a rolling upgrade, a stream metadata request could leave out a peer node that ran a different version. GitHub issue:
fixThe publishers and consumers listing now verifies virtual host access like other comparable HTTP API endpoints. GitHub issues:
fixThe channels list and individual channel pages now display basic information when management statistics are disabled, instead of returning a 400 Bad Request. GitHub issues:
fixSeveral HTTP API endpoints returned a 500 instead of a 400 for invalid range parameters or an invalid timeout header: GET /api/nodes/{node}, GET /api/healthchecks/node[/{node}], GET /api/federation-links, GET /api/health/checks/alarms and GET /api/health/checks/local-alarms. GitHub issues:
fixThe certificate expiration health check no longer responds with a 500 for certificate files that cannot be read, or for certificates that use the RFC 5280 UTCTime format. Contributed by @Vishal-770. GitHub issues:
fixOptional argument (x-*) values are no longer coerced to strings in the management UI. GitHub issue:
featureConsumers on protocols without channels (for example, AMQP 1.0 and MQTT) now link directly to their connection in the management UI. Contributed by @Vampirebyte. GitHub issue:
fixShovel types provided by plugins can now be used as src-protocol and dest-protocol values. GitHub issues:
fixA local shovel with src-delete-after set to a number could in some cases transfer more messages than that number. GitHub issue:
featureThe retained message store now has per-virtual host limits on both the number of messages and their total size: mqtt.retained_message_store.max_messages (defaults to 100000) and mqtt.retained_message_store.max_size_bytes (defaults to 1 GiB). GitHub issue:
fixSTOMP and Web STOMP connections now enforce credential expiry (for example, of OAuth 2 tokens) the same way other protocols do. GitHub issue:
fixweb_mqtt.ssl. and web_stomp.ssl. now accept more TLS keys in rabbitmq.conf, including verify and fail_if_no_peer_cert. GitHub issues:
fixDN escaping introduced in an earlier release was too strict for certain Active Directory setups, for example when the client provides a full DN that contains a backslash. Escaping is now applied to DN template values only. GitHub issues:
fixActive Directory down-level logon names (DOMAIN\username) can be used to log in again. Contributed by @jiangranwang. GitHub issue:
featureThe trust store now also covers the HTTP API, Web MQTT and Web STOMP listeners. GitHub issue:
fixA 404 response from the Consul API no longer stops node boot; peer discovery is retried instead. GitHub issues:
othercowboy was upgraded to 2.19.0
othercowlib was upgraded to 2.20.0
othergun was upgraded to 2.6.0
otherkhepri was upgraded to 0.18.1
otherranch was upgraded to 2.3.0
See how far your stack has drifted from upstream. Release data from vendors’ own sources · feed under CC BY 4.0 · Code under AGPL-3.0 Settings Feed status