RabbitMQ amqp091-go
RabbitMQ amqp091-go: Plaintext Credential Exposure via Exported PLAIN Authentication Struct Fields
RabbitMQ amqp091-go is a Go AMQP 0.9.1 client. Prior to 1.13.0, PlainAuth values defined in auth.go retain passwords as exported plaintext fields in Connection.Config.SASL after a successful PLAIN authentication handshake. The Connection.openComplete method in connection.go does not clear those values. Code with access to the Connection object, including reflective loggers, application performance monitoring agents, debugging utilities, and panic handlers, can traverse the configuration and expose the credentials to logs or state captures. The credential remains available for the lifetime of the connection instead of being cleared after authentication. This issue is fixed in version 1.13.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.13.0
Fixed in 1.13.0
Mitigation
Upgrade amqp091-go to 1.13.0 or later.
References
- Vendor advisory github.com/rabbitmq/amqp091-go/security/adviso…
- Patch github.com/rabbitmq/amqp091-go/pull/350
- Patch github.com/rabbitmq/amqp091-go/commit/fa013b84…
1 more
- Release notes github.com/rabbitmq/amqp091-go/releases/tag/v1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.