File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ ARG JAVA_VERSION=11
33# Use the specified version of Java
44FROM 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
713ARG JAVA_TOOL_OPTIONS=""
814# Set the JAVA_TOOL_OPTIONS environment variable for Java 17
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments