CVE-2026-77407
ADVISORY - githubSummary
Summary
An information disclosure vulnerability exists in the AMQP client implementation's authentication handling configuration. Following a successful connection handshake, the Connection.Config.SASL field stores the Authentication implementation state used to establish the session.
For standard PLAIN authentication, this state utilizes the PlainAuth struct, which defines both Username and Password as publicly exported, plaintext string fields. Because this sensitive data is retained permanently in-memory within an exported field structure, any peripheral code, internal package, reflective logger, dependency, or automated debugging utility with access to the core *Connection object can read and expose the raw credentials.
Vulnerability Details
Mechanism
The vulnerability stems from the structural design of the configuration storage used during and after the AMQP handshake:
// auth.go:21-23
type PlainAuth struct {
Username string
Password string // exported plaintext
}
When an application initializes a connection, the PlainAuth object is deeply nested inside the configuration structure (Connection.Config). Even after the handshake concludes and authentication is complete, this structure persists natively in-memory for the duration of the network connection's lifecycle.
Because Password is an exported string field, standard automated inspection mechanisms can read its value without restriction.
Affected Code Paths & Integrations
Any sub-component or library that traverses or reads the *Connection object will inadvertently read the plaintext password, including:
- Reflective Loggers: Structured logging frameworks that serialize nested configuration structs into JSON/Log formats.
- APM & Performance Agents: Automated telemetry or Application Performance Monitoring tools that capture state snapshots.
- Debugging & Panic Handlers: Mid-tier software or dump libraries designed to capture goroutine state or print deep struct hierarchies upon program errors or signals.
Impact
The credential remains vulnerable to leak paths into logging pipelines, log aggregators, security information and event management (SIEM) systems, or standard output. Once transmitted to external log infrastructure, these credentials become accessible to unprivileged operators or any actor with access to log archives.
Attack Vector
An attacker does not necessarily need direct remote code execution to exploit this flaw; instead, the vulnerability acts as a credential harvesting vector inside multi-tenant environments or via secondary log exposure:
- Configuration Dump: An operator configures a standard reflective logger or third-party APM package to capture system state parameters, including the active AMQP
*Connectionobject. - Reflective Access: The inspection engine uses Go's
reflectpackage to walk the structural hierarchy, pulling the string value fromConnection.Config.SASL.(*PlainAuth).Password. - Exfiltration: The plaintext password is written to standard system logs, which are then scraped into shared logging aggregators, exposing production infrastructure credentials to a wider audience.
Common Weakness Enumeration (CWE)
Cleartext Storage of Sensitive Information in Memory
Cleartext Storage of Sensitive Information in Memory
Plaintext Storage of a Password
NIST
-
CVSS SCORE
7highGitHub
-
CVSS SCORE
7highDebian
-
Red Hat
1.8
CVSS SCORE
5.5mediumminimos
MINI-259x-mm89-xhpj
-
minimos
MINI-262g-fx6j-vqm7
-
minimos
MINI-2grh-hr7x-cg75
-
minimos
MINI-2vrw-vwmf-8cq3
-
minimos
MINI-3m7x-q8j6-2wpw
-
minimos
MINI-3xxh-8ccq-3x3p
-
minimos
MINI-5xr8-6mw6-wjw3
-
minimos
MINI-65jj-v4mh-8h35
-
minimos
MINI-6xc5-q7px-5jqq
-
minimos
MINI-89mw-c842-v28g
-
minimos
MINI-fc7q-5qq9-7mg8
-
minimos
MINI-ffvv-qhpm-cq6r
-
minimos
MINI-fq7h-fqhf-hqrx
-
minimos
MINI-ggj4-ccw2-p4c9
-
minimos
MINI-hgv9-ccw7-h59j
-
minimos
MINI-j5hq-w7gc-jc79
-
minimos
MINI-jg2p-2xr6-74ww
-
minimos
MINI-mp2g-h46f-65mc
-
minimos
MINI-pm76-q8pc-cmqr
-
minimos
MINI-pvp2-v9h6-wwc8
-
minimos
MINI-wm97-58r8-2jqf
-
minimos
MINI-wv8x-g4mj-m4v5
-
minimos
MINI-xwh7-ww76-59cw
-