Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] CVE vulnerabilities of docker image nacos:v2.2.2-slim #10538

Closed
wilsonwu opened this issue May 24, 2023 · 7 comments
Closed

[Security] CVE vulnerabilities of docker image nacos:v2.2.2-slim #10538

wilsonwu opened this issue May 24, 2023 · 7 comments
Labels
kind/discussion Category issues related to discussion

Comments

@wilsonwu
Copy link
Contributor

Describe the bug
CVEs

nacos-server:v2.2.2-slim (debian 11.4)

Total: 4 (CRITICAL: 4)
┌──────────────┬────────────────┬──────────┬─────────────────────────┬─────────────────────────┬─────────────────────────────────────────────────────────────┐
│ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │
├──────────────┼────────────────┼──────────┼─────────────────────────┼─────────────────────────┼─────────────────────────────────────────────────────────────┤
│ libpcre2-8-0 │ CVE-2022-1586 │ CRITICAL │ 10.36-2 │ 10.36-2+deb11u1 │ pcre2: Out-of-bounds read in compile_xclass_matchingpath in │
│ │ │ │ │ │ pcre2_jit_compile.c │
│ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-1[586](https://gitlab.daocloud.cn/ndx/skoala/-/jobs/947744#L586)
│ ├────────────────┤ │ │ ├─────────────────────────────────────────────────────────────┤
│ │ CVE-2022-1587 │ │ │ │ pcre2: Out-of-bounds read in get_recurse_data_length in │
│ │ │ │ │ │ pcre2_jit_compile.c │
│ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-1[587](https://gitlab.daocloud.cn/ndx/skoala/-/jobs/947744#L587)
├──────────────┼────────────────┤ ├─────────────────────────┼─────────────────────────┼─────────────────────────────────────────────────────────────┤
│ libtasn1-6 │ CVE-2021-46848 │ │ 4.16.0-2 │ 4.16.0-2+deb11u1 │ libtasn1: Out-of-bound access in ETYPE_OK │
│ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-46848
├──────────────┼────────────────┤ ├─────────────────────────┼─────────────────────────┼─────────────────────────────────────────────────────────────┤
│ zlib1g │ CVE-2022-37434 │ │ 1:1.2.11.dfsg-2+deb11u1 │ 1:1.2.11.dfsg-2+deb11u2 │ heap-based buffer over-read and overflow in inflate() in │
│ │ │ │ │ │ inflate.c via a large... │
│ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-37434
└──────────────┴────────────────┴──────────┴─────────────────────────┴─────────────────────────┴─────────────────────────────────────────────────────────────┘

Expected behavior
Need to be fixed.

Actually behavior
Not fix now.

How to Reproduce
Upgrade components

@KomachiSion
Copy link
Collaborator

I don't get the problem. Do you means the docker image depend some libs which has security problem?

@KomachiSion KomachiSion added the kind/discussion Category issues related to discussion label May 26, 2023
@wilsonwu
Copy link
Contributor Author

You are right, seems it is.the base image problem.

@KomachiSion
Copy link
Collaborator

So need to upgrade os version to fix them.

@wilsonwu
Copy link
Contributor Author

So need to upgrade os version to fix them.

Yes, investigate the base image problems, I found we need to upgrade to a newer version of JRE/JDK base image to solve these CVEs, seems that is a big project.

@zqr95518
Copy link

zqr95518 commented Jun 2, 2023

So need to upgrade os version to fix them.

Yes, investigate the base image problems, I found we need to upgrade to a newer version of JRE/JDK base image to solve these CVEs, seems that is a big project.

Why not simply replace the base image with eclipse-temurin-jre or other openjdk8?

@wilsonwu
Copy link
Contributor Author

wilsonwu commented Jun 2, 2023

So need to upgrade os version to fix them.

Yes, investigate the base image problems, I found we need to upgrade to a newer version of JRE/JDK base image to solve these CVEs, seems that is a big project.

Why not simply replace the base image with eclipse-temurin-jre or other openjdk8?

Seems the adoptopenjdk/openjdk8:jre8u372-b07 solved all problems, I only checked the offical image found no profect image for java8, if you have better choose, welcome to PR.

@zqr95518
Copy link

zqr95518 commented Jun 2, 2023

I

So need to upgrade os version to fix them.

Yes, investigate the base image problems, I found we need to upgrade to a newer version of JRE/JDK base image to solve these CVEs, seems that is a big project.

Why not simply replace the base image with eclipse-temurin-jre or other openjdk8?

Seems the adoptopenjdk/openjdk8:jre8u372-b07 solved all problems, I only checked the offical image found no profect image for java8, if you have better choose, welcome to PR.

https://github.com/nacos-group/nacos-docker/issues/326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/discussion Category issues related to discussion
Projects
None yet
Development

No branches or pull requests

3 participants