diff --git a/0001-fix_CVE-2023-50780.patch b/0001-fix_CVE-2023-50780.patch new file mode 100644 index 0000000000000000000000000000000000000000..2a5c8e4de917cdc2ed341398cbb715c687ab51a0 --- /dev/null +++ b/0001-fix_CVE-2023-50780.patch @@ -0,0 +1,39 @@ +From 8ef58b3120a9f84639c28115d0660adf27f9db8e Mon Sep 17 00:00:00 2001 +From: root +Date: Mon, 22 Sep 2025 14:21:28 +0800 +Subject: [PATCH] fix_CVE-2023-50780 + +--- + .../apache/activemq/artemis/cli/commands/etc/artemis.profile | 2 +- + .../activemq/artemis/cli/commands/etc/artemis.profile.cmd | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/BUILD/activemq-artemis-1.4.0/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile b/BUILD/activemq-artemis-1.4.0/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile +index 8dab799..d88217a 100644 +--- a/BUILD/activemq-artemis-1.4.0/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile ++++ b/BUILD/activemq-artemis-1.4.0/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile +@@ -23,7 +23,7 @@ ARTEMIS_INSTANCE='${artemis.instance}' + + + # Java Opts +-JAVA_ARGS="-XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M" ++JAVA_ARGS="-XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Dlog4j2.disableJmx=true" + + # + # There might be options that you only want to enable on specifc commands, like setting a JMX port +diff --git a/BUILD/activemq-artemis-1.4.0/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile.cmd b/BUILD/activemq-artemis-1.4.0/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile.cmd +index 47e288c..5914d9f 100644 +--- a/BUILD/activemq-artemis-1.4.0/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile.cmd ++++ b/BUILD/activemq-artemis-1.4.0/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile.cmd +@@ -23,7 +23,7 @@ rem Cluster Properties: Used to pass arguments to ActiveMQ Artemis which can be + rem set ARTEMIS_CLUSTER_PROPS=-Dactivemq.remoting.default.port=61617 -Dactivemq.remoting.amqp.port=5673 -Dactivemq.remoting.stomp.port=61614 -Dactivemq.remoting.hornetq.port=5446 + + rem Java Opts +-set JAVA_ARGS=-XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Xbootclasspath/a:%ARTEMIS_HOME%\lib\${logmanager} -Djava.security.auth.login.config=%ARTEMIS_INSTANCE%\etc\login.config ${java-opts} -Dartemis.instance=%ARTEMIS_INSTANCE% ++set JAVA_ARGS=-XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Xbootclasspath/a:%ARTEMIS_HOME%\lib\${logmanager} -Djava.security.auth.login.config=%ARTEMIS_INSTANCE%\etc\login.config ${java-opts} -Dartemis.instance=%ARTEMIS_INSTANCE% -Dlog4j2.disableJmx=true + + rem There might be options that you only want to enable on specifc commands, like setting a JMX port + rem See https://issues.apache.org/jira/browse/ARTEMIS-318 +-- +2.43.5 +