GHSA-Q44F-9VC5-GRH7
Shovel does not format state logged by the crash reporter and can leave unencrypted credentials in a crash dump file
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-Q44F-9VC5-GRH7 divulgada · CVSS 4.6 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The shovel worker `gen_server` processes does not implement the `format_status/2` callback. When these processes crash (e.g., due to network partitions, connection failures), the OTP SASL error handler writes the full process state — including plaintext AMQP passwords and URIs — to the error log.
This is particularly severe for the shovel worker, which stores deobfuscated plaintext URIs (including `amqp://user:password@host` format) in its gen_server state for the entire process lifetime.
Affected Modules
`rabbit_shovel_worker`
The shovel worker stores deobfuscated URIs in its `#state.config` map:
%% rabbit_amqp091_shovel.erl:119
SrcURIs = deobfuscated_uris(<<"src-uri">>, Def),
%% rabbit_amqp091_shovel.erl:162
DestURIs = deobfuscated_uris(<<"dest-uri">>, Def),These plaintext URIs (containing passwords in `amqp://user:PASSWORD@host/vhost` format) are stored under `source => #{uris => SrcURIs}` and `dest => #{uris => DestURIs}` in the config map, which is part of the gen_server state.
The same pattern exists in `rabbit_amqp10_shovel.erl` at lines 107 and 126.
Missing Callback
Confirmed: `grep -rn format_status` across the shovel source code returns zero results. None of these gen_server modules implement `format_status/2` (OTP < 25) or `format_status/1` (OTP 25+).
Exposure Paths
Path 1: SASL Error Reports (Always Enabled)
When a shovel worker crashes (e.g., network partition, connection timeout), OTP writes:
** State: #{config => #{source => #{uris => [<<"amqp://admin:SECRET_PASSWORD@upstream:5672/vhost">>]},
dest => #{uris => [<<"amqp://admin:SECRET_PASSWORD@downstream:5672/vhost">>]}},
...}SASL error reports are written at ERROR level, which is always enabled in production — no DEBUG logging required.
Path 2: Erlang Crash Dumps
Full BEAM crash dumps (written on VM crash) include all process states, exposing credentials for every active shovel.
Impact
- Automatic Credential Exposure: Shovel worker crashes (common during network partitions) automatically write plaintext upstream/downstream passwords to error logs
- No Special Configuration Needed: Unlike DEBUG logging, SASL error reports are always active
- Broad Exposure Surface: Crash dumps are routinely collected during production incidents and shared with support teams, centralized logging systems, and monitoring platforms
- Multiple Credential Sets: Each shovel can expose a separate set of credentials, potentially revealing passwords for many upstream/downstream brokers
Suggested Fix
Implement `format_status/1` (OTP 25+) in each affected module to redact credentials:
format_status(Status) ->
maps:update_with(state, fun redact_credentials/1, Status).
redact_credentials(State = #{config := Config}) ->
State#{config := redact_uris(Config)};
redact_credentials(State) ->
State.
redact_uris(Config) ->
maps:map(fun
(K, #{uris := _} = V) when K =:= source; K =:= dest ->
V#{uris := [<<"amqp://REDACTED">>]};
(_, V) -> V
end, Config).Desglose de métricas
Estado del parche por paquete
La fuente no informa paquetes ni versiones corregidas.
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-q44f-9vc5-grh7Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
