Skip to content
Heist/ feed
HighFix available

RabbitMQ amqp091-go: Plaintext Credential Exposure via Exported PLAIN Authentication Struct Fields

Type: advisorySource: OSV1 source record

## 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: ```go // 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

Announced Source revision 1
Original source ↗

GHSA-27gv-rfvv-22mv

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-27gv-rfvv-22mv

github.com/rabbitmq/amqp091-go

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
1.13.0

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "1.13.0"
          }
        ]
      }
    ],
    "package": {
      "name": "github.com/rabbitmq/amqp091-go",
      "purl": "pkg:golang/github.com/rabbitmq/amqp091-go",
      "ecosystem": "Go"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-27gv-rfvv-22mv/GHSA-27gv-rfvv-22mv.json"
    }
  }
]
Related CVEs
CVE-2026-77407

Source reference: /aliases

Publisher severity

high

Source reference: /database_specific/severity

Event
#63978 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement