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

Fix for CVE-2018-25032: Update the zlib version bundled with Node.js #792

Closed
mlopezja opened this issue Apr 20, 2022 · 9 comments
Closed

Comments

@mlopezja
Copy link

The zlib version bundled with the latest available Node.js may be affected by CVE-2018-25032, a high-severity security vulnerability that's being re-analyzed by NVD. However, there's a more recent version of zlib that is unaffected by said vulnerability (version 1.2.12).

Our project uses Node.js as a third-party component and this vulnerability was detected by one of our security scanners and we want to make the Node.js community aware of this situation.

Any communication about mitigation steps or a clarification that this CVE does not affect Node.js will be greatly appreciated.

@Trott
Copy link
Member

Trott commented Apr 20, 2022

Contrary information would be welcome, but I believe this is a false positive in your security scanner as Node.js uses Chromium's zlib which is not vulnerable.

Refs:

+@Adenilson

@Trott Trott closed this as completed Apr 20, 2022
@Trott
Copy link
Member

Trott commented Apr 20, 2022

I've closed the issue, but questions and discussion are welcome/fine.

If you do find an indication that this is not a false positive and Node.js is vulnerable, please follow the procedure in https://github.com/nodejs/node/blob/HEAD/SECURITY.md#security to report it. Thanks!

@Trott
Copy link
Member

Trott commented Apr 20, 2022

If you do find an indication that this is not a false positive and Node.js is vulnerable, please follow the procedure in https://github.com/nodejs/node/blob/HEAD/SECURITY.md#security to report it. Thanks!

And probably best to report it to the Chromium team if it's in zlib: https://www.chromium.org/Home/chromium-security/reporting-security-bugs/

@Adenilson
Copy link

Yep, that is correct, nodejs should be unaffected by CVE-2018-25032 because it runs with Chromium's zlib.

Chromium's zlib has the required fix for the aforementioned CVE since 2018.

We even have a utest with the payload that would crash/corrupt an unpatched zlib, check:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/zlib/contrib/tests/utils_unittest.cc;l=968

@mlopezja
Copy link
Author

Thank you very much @Trott and @Adenilson! I'll reach out to the Chromium team (thanks for the link!) and we'll mark this as a false positive.

@nschonni
Copy link
Member

nodejs/node#42571

@Adenilson
Copy link

@Adenilson
Copy link

We are about 70% done re-syncing with canonical zlib 1.2.12:
https://bugs.chromium.org/p/chromium/issues/detail?id=1032721#c59

@mlopezja
Copy link
Author

Thanks for the info @Adenilson! Then there's no need for me to reach out to you 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants