Skip to content

Commit

Permalink
checkDockerVersionExploits: add CVE-2021-41091
Browse files Browse the repository at this point in the history
  • Loading branch information
inPhraZ committed Jun 2, 2024
1 parent 74c1391 commit 5c1f081
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions linPEAS/builder/linpeas_parts/2_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ checkDockerVersionExploits() {
if echo "$dockerVersion" | grep -iq "not found"; then
VULN_CVE_2019_13139="$(echo_not_found)"
VULN_CVE_2019_5736="$(echo_not_found)"
VULN_CVE_2021_41091="$(echo_not_found)"
return
fi

Expand All @@ -125,6 +126,11 @@ checkDockerVersionExploits() {
if [ "$(echo $dockerVersion | sed 's,\.,,g')" -lt "1893" ]; then
VULN_CVE_2019_5736="Yes"
fi

VULN_CVE_2021_41091="$(echo_no)"
if [ "$(echo $dockerVersion | sed 's,\.,,g')" -lt "20109" ]; then
VULN_CVE_2021_41091="Yes"
fi
}

checkContainerExploits() {
Expand Down Expand Up @@ -268,6 +274,7 @@ if echo "$containerType" | grep -qi "docker"; then
checkDockerVersionExploits
print_list "Vulnerable to CVE-2019-5736 ....$NC$VULN_CVE_2019_5736"$NC | sed -${E} "s,Yes,${SED_RED_YELLOW},"
print_list "Vulnerable to CVE-2019-13139 ...$NC$VULN_CVE_2019_13139"$NC | sed -${E} "s,Yes,${SED_RED_YELLOW},"
print_list "Vulnerable to CVE-2021-41091 ...$NC$VULN_CVE_2021_41091"$NC | sed -${E} "s,Yes,${SED_RED_YELLOW},"
if [ "$inContainer" ]; then
checkDockerRootless
print_list "Rootless Docker? ............... $DOCKER_ROOTLESS\n"$NC | sed -${E} "s,No,${SED_RED}," | sed -${E} "s,Yes,${SED_GREEN},"
Expand Down

0 comments on commit 5c1f081

Please sign in to comment.