Skip to content

Commit 55f3218

Browse files
authored
Fix all CVE issues related to META-INF path vulnerabilities and OS Level vulnerabilities for DynamoDB connector. (#3221)
Fixed CVEs: CVE‑2025‑68161, CVE‑2025‑67735, CVE‑2025‑14087, CVE‑2025‑64720, CVE‑2025‑64505.
1 parent efc7091 commit 55f3218

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

athena-dynamodb/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ ARG JAVA_VERSION=11
33
# Use the specified version of Java
44
FROM public.ecr.aws/lambda/java:${JAVA_VERSION}
55

6+
# Fix CVE-2025-14087: glib2 buffer underflow
7+
# Fix CVE-2025-64720 and CVE-2025-64505: libpng vulnerabilities
8+
RUN yum update -y glib2 libpng && \
9+
yum clean all && \
10+
rm -rf /var/cache/yum
11+
612
# Argument for Java tool options, defaulting to an empty string
713
ARG JAVA_TOOL_OPTIONS=""
814
# Set the JAVA_TOOL_OPTIONS environment variable for Java 17

athena-dynamodb/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,22 @@
170170
<goals>
171171
<goal>shade</goal>
172172
</goals>
173+
<configuration>
174+
<filters>
175+
<filter>
176+
<artifact>*:*</artifact>
177+
<excludes>
178+
<exclude>META-INF/*.SF</exclude>
179+
<exclude>META-INF/*.DSA</exclude>
180+
<exclude>META-INF/*.RSA</exclude>
181+
<!-- Fix for ALL CVEs related to META-INF path: Exclude all Maven POM metadata files -->
182+
<!-- These POM files cause false-positive CVE alerts in AWS Inspector -->
183+
<exclude>META-INF/maven/**/pom.xml</exclude>
184+
<exclude>META-INF/maven/**/pom.properties</exclude>
185+
</excludes>
186+
</filter>
187+
</filters>
188+
</configuration>
173189
</execution>
174190
</executions>
175191
</plugin>

0 commit comments

Comments
 (0)