Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-67242 Overview
CVE-2026-67242 affects RabbitMQ, an open-source messaging and streaming broker. The flaw resides in the OAuth2 authentication backend, where expiry validation guards accept only integer values for the JSON Web Token (JWT) exp claim. When an Identity Provider (IdP) emits exp as a JSON float, RFC 7519 permits this fractional NumericDate format, but RabbitMQ's is_integer(Exp) guard falls through to never. The result: already-expired tokens are accepted at login, and mid-connection disconnect timers never fire. The issue affects RabbitMQ versions 4.2.0 through 4.2.8 and 4.3.0 through 4.3.2.
Critical Impact
An attacker holding a previously valid signed token can authenticate to RabbitMQ after expiration, and established sessions persist indefinitely when the OAuth2 backend is paired with an IdP that emits fractional exp values.
Affected Products
- RabbitMQ Server 4.2.0 through 4.2.8
- RabbitMQ Server 4.3.0 through 4.3.2
- Deployments using the rabbitmq_auth_backend_oauth2 plugin
Discovery Timeline
- 2026-09-25 - CVE-2026-67242 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-67242
Vulnerability Analysis
The vulnerability is an insufficient session expiration flaw [CWE-613] in the rabbitmq_auth_backend_oauth2 plugin. The functions validate_token_expiry/1 (lines 208-214) and expiry_timestamp/1 (lines 138-144) in rabbit_auth_backend_oauth2.erl both guard the exp claim with when is_integer(Exp). Any non-integer value, including the JSON floats RFC 7519 explicitly allows for NumericDate, fails the guard and the code path returns never or ok.
The upstream jose_jwt:verify call validates only the token signature, not the exp claim itself. With expiry parsing silently skipped, no component in the authentication pipeline enforces token lifetime. The login-time check passes an expired token, and the mid-connection disconnect timer that would normally terminate an AMQP session upon expiry is never scheduled.
Root Cause
The root cause is an overly strict type guard in Erlang pattern matching. RFC 7519 defines NumericDate as a JSON numeric value, which permits both integers and floats. RabbitMQ's guard clause when is_integer(Exp) rejects valid fractional timestamps instead of coercing them. The fallthrough branches return safe-sounding sentinels (never, ok) that unintentionally disable enforcement rather than failing closed.
Attack Vector
Exploitation requires three conditions: the OAuth2 backend must be enabled, the connected IdP must emit exp as a JSON float, and the attacker must possess a previously valid signed token. Mainstream IdPs emit integer exp values, limiting real-world exposure. Where a custom or non-standard IdP produces fractional timestamps, an attacker with any historical valid JWT can authenticate network-side to the broker and maintain the connection indefinitely.
-spec expiry_timestamp(rabbit_types:auth_user()) -> integer() | never.
expiry_timestamp(#auth_user{impl = DecodedTokenFun}) ->
case DecodedTokenFun() of
- #{<<"exp">> := Exp} when is_integer(Exp) ->
- Exp;
+ %% "exp" may be a fractional NumericDate (RFC 7519); accept floats too.
+ #{<<"exp">> := Exp} when is_number(Exp) ->
+ trunc(Exp);
_ ->
never
end.
Source: GitHub Commit d10a369. The patch replaces is_integer with is_number and truncates the float to an integer timestamp.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-67242
Indicators of Compromise
- RabbitMQ connections authenticated with JWTs whose exp claim has already passed, visible in broker authentication logs.
- Long-lived AMQP, MQTT, or STOMP sessions bound to OAuth2 users that persist well beyond the configured token lifetime.
- IdP token issuance records containing fractional values in the exp claim.
Detection Strategies
- Correlate RabbitMQ rabbit_auth_backend_oauth2 login events with the token exp field and flag any login where exp is in the past at authentication time.
- Decode a sample of JWTs issued by the configured IdP and verify whether exp is serialized as an integer or a float.
- Compare active connection ages reported by rabbitmqctl list_connections against expected OAuth2 session lifetimes.
Monitoring Recommendations
- Enable verbose logging for the OAuth2 authentication backend and ship events to a central SIEM for retention and query.
- Alert on OAuth2-authenticated sessions whose connected duration exceeds the maximum IdP token TTL.
- Track RabbitMQ release advisories through the GitHub Security Advisory GHSA-rrj4-g94f-rqj9 feed.
How to Mitigate CVE-2026-67242
Immediate Actions Required
- Upgrade RabbitMQ to version 4.2.9 or 4.3.3, which contain the patched expiry parsing logic.
- Inventory all IdPs integrated with RabbitMQ and verify the JSON type of the exp claim they emit.
- Rotate any JWTs or signing keys that may have been exposed, since previously valid tokens can be replayed against unpatched brokers.
Patch Information
The fix is available in RabbitMQ Release v4.2.9 and RabbitMQ Release v4.3.3. The underlying code change is in GitHub Commit d10a369 and GitHub Commit f189a88, which replace the is_integer guard with is_number and truncate fractional NumericDate values.
Workarounds
- Configure the IdP to emit exp strictly as a JSON integer, which bypasses the vulnerable code path.
- Reduce JWT lifetime at the IdP to limit the replay window if upgrading cannot be completed immediately.
- Disable the rabbitmq_auth_backend_oauth2 plugin and fall back to another authentication backend until the broker is patched.
# Verify installed RabbitMQ version and upgrade
rabbitmqctl version
# Debian/Ubuntu
apt-get update && apt-get install --only-upgrade rabbitmq-server=4.3.3-1
# RHEL/Rocky
dnf upgrade rabbitmq-server-4.3.3
# Restart to load the patched OAuth2 backend
systemctl restart rabbitmq-server
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

