Repository navigation
CVE-2026-4738 – Critical zlib Vulnerability in Official Nacos Docker Images #16064
Replies: 1 comment 1 reply
|
Not a maintainer, so I can't answer 1 and 3, but here is what I found for 2 and 4. Is the system zlib actually used? Yes. In the Alpine images the JRE doesn't bundle its own zlib, $ docker run --rm --entrypoint sh nacos/nacos-server:v2.5.3 -c \
'ldd /usr/lib/jvm/java-1.8-openjdk/jre/lib/*/libzip.so | grep libz'
libz.so.1 => /usr/lib/libz.so.1So whether the CVE is reachable depends on which zlib function it affects, not on Nacos itself; I wouldn't treat it as "not used". Workaround without changing the base OS: Alpine already ships the fixed package, so a two-line image on top of the official one is enough: FROM nacos/nacos-server:v2.5.3
RUN apk upgrade --no-cache zlibI built it and checked: $ docker run --rm --entrypoint sh nacos-zlib -c 'apk info -v | grep ^zlib; java -version 2>&1 | head -1'
zlib-1.4-r0
openjdk version "1.8.0_482"
$ docker run -d -e MODE=standalone -p 8848:8848 nacos-zlib
$ curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8848/nacos/v1/console/health/readiness
200It keeps everything else from the official image (entrypoint, env vars, paths), so it should drop into your Kubernetes manifests by just changing the image name. Once an official image with zlib ≥ 1.4 is out, you can go back to it. |
Uh oh!
There was an error while loading. Please reload this page.
Hello Nacos Team,
We have identified a Critical vulnerability (CVE-2026-4738) affecting the zlib package in the official Nacos Alpine-based Docker images.
We are currently using Nacos v2.5.3 in our Kubernetes environment.
Images tested:
All tested Alpine-based images contain zlib versions below the reported fixed version of 1.4-r0.
We have already contacted the Nacos support team by email but have not received a response yet, so we are raising this GitHub issue for further guidance.
Could you please confirm:
We prefer to continue using official Alpine-based Nacos images rather than maintaining custom images or changing the base OS, as this could impact our existing environment.
Your guidance would be greatly appreciated.
Thanks and regards,
Pooja Tomar
All reactions