VDB
Sign up
MEDIUM4.3

GHSA-h2h4-5m64-m273

Apache ActiveMQ: Improper validation and restriction of a classpath path name

Quick fix

GHSA-h2h4-5m64-m273 — org.apache.activemq:activemq-client: upgrade to the fixed version with the command below.

# pom.xml: bump <version>5.19.3</version> for org.apache.activemq:activemq-client

Details

Improper validation and restriction of a classpath path name vulnerability in Apache ActiveMQ Client, Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ Web, Apache ActiveMQ.

In two instances (when creating a Stomp consumer and also browsing messages in the Web console) an authenticated user provided "key" value could be constructed to traverse the classpath due to path concatenation. As a result, the application is exposed to a classpath path resource loading vulnerability that could potentially be chained together with another attack to lead to exploit. This issue affects Apache ActiveMQ Client: before 5.19.3, from 6.0.0 before 6.2.2; Apache ActiveMQ Broker: before 5.19.3, from 6.0.0 before 6.2.2; Apache ActiveMQ All: before 5.19.3, from 6.0.0 before 6.2.2; Apache ActiveMQ Web: before 5.19.3, from 6.0.0 before 6.2.2; Apache ActiveMQ: before 5.19.3, from 6.0.0 before 6.2.2.

Users are recommended to upgrade to version 5.19.4 or 6.2.3, which fixes the issue. Note: 5.19.3 and 6.2.2 also fix this issue, but that is limited to non-Windows environments due to a path separator resolution bug fixed in 5.19.4 and 6.2.3.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.activemq:activemq-client
Introduced in: 0Fixed in: 5.19.3
Fix# pom.xml: bump <version>5.19.3</version> for org.apache.activemq:activemq-client
Maven/org.apache.activemq:activemq-client
Introduced in: 6.0.0Fixed in: 6.2.2
Fix# pom.xml: bump <version>6.2.2</version> for org.apache.activemq:activemq-client
Maven/org.apache.activemq:activemq-broker
Introduced in: 0Fixed in: 5.19.3
Fix# pom.xml: bump <version>5.19.3</version> for org.apache.activemq:activemq-broker
Maven/org.apache.activemq:activemq-broker
Introduced in: 6.0.0Fixed in: 6.2.2
Fix# pom.xml: bump <version>6.2.2</version> for org.apache.activemq:activemq-broker
Maven/org.apache.activemq:activemq-all
Introduced in: 0Fixed in: 5.19.3
Fix# pom.xml: bump <version>5.19.3</version> for org.apache.activemq:activemq-all
Maven/org.apache.activemq:activemq-all
Introduced in: 6.0.0Fixed in: 6.2.2
Fix# pom.xml: bump <version>6.2.2</version> for org.apache.activemq:activemq-all
Maven/org.apache.activemq:activemq-web
Introduced in: 0Fixed in: 5.19.3
Fix# pom.xml: bump <version>5.19.3</version> for org.apache.activemq:activemq-web
Maven/org.apache.activemq:activemq-web
Introduced in: 6.0.0Fixed in: 6.2.2
Fix# pom.xml: bump <version>6.2.2</version> for org.apache.activemq:activemq-web

References