Skip to content

Commit 66e90a1

Browse files
committed
Explicitly set Log4J version for Struts2 as transitive dependency is outdated (CVE-2021-44228)
1 parent 8283d0d commit 66e90a1

File tree

1 file changed

+13
-0
lines changed
  • aws-serverless-java-container-struts2

1 file changed

+13
-0
lines changed

aws-serverless-java-container-struts2/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
<properties>
1818
<struts2.version>2.5.26</struts2.version>
19+
<log4j.version>2.16.0</log4j.version>
1920
</properties>
2021

2122
<dependencies>
@@ -37,6 +38,18 @@
3738
</exclusion>
3839
</exclusions>
3940
</dependency>
41+
<dependency><!-- explicitly set log4j version as struts2-core contains the vulnerable one CVE-2021-44228 -->
42+
<groupId>org.apache.logging.log4j</groupId>
43+
<artifactId>log4j-api</artifactId>
44+
<version>${log4j.version}</version>
45+
<scope>runtime</scope>
46+
</dependency>
47+
<dependency><!-- explicitly set log4j version as struts2-core contains the vulnerable one CVE-2021-44228 -->
48+
<groupId>org.apache.logging.log4j</groupId>
49+
<artifactId>log4j-core</artifactId>
50+
<version>${log4j.version}</version>
51+
<scope>runtime</scope>
52+
</dependency>
4053

4154
<dependency>
4255
<groupId>org.apache.struts</groupId>

0 commit comments

Comments
 (0)