GitHub Advisory Database
GHSA-p8qj-fj6r-w7q9
Spring AMQP Core: Missing Certificate and Hostname Verification for amqps URIs in RabbitConnectionFactoryBean
Details
Applications that configure their broker connection via RabbitConnectionFactoryBean.setUri("amqps://...") without also calling setUseSSL(true) get TLS encryption with no certificate validation and no hostname verification.
Affected versions: Spring AMQP 4.0.0 through 4.0.3; 3.2.0 through 3.2.10; 3.1.0 through 3.1.15; 2.4.0 through 2.4.17.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.springframework.amqp:spring-amqp | From 4.0.0 before 4.0.4 (fixed in 4.0.4) |
| Maven | org.springframework.amqp:spring-amqp | From 3.2.0 before 3.2.11 (fixed in 3.2.11) |
| Maven | org.springframework.amqp:spring-amqp | From 3.1.0 up to and including 3.1.15 |
| Maven | org.springframework.amqp:spring-amqp | All versions up to and including 2.4.17 |