Repository navigation
Update zlib and minizip to 1.4 to resolve CVEs - #1720
Merged
Merged
Conversation
Bump the zlib/minizip vcpkg pins to 1.4 in every graph that consumes zlib (compress, png, curl, crashpad, freetype2) and move those registry baselines to microsoft/vcpkg 98d7375b, the merge of microsoft/vcpkg#54958. zlib 1.4 renames the MSVC libraries (zs -> libzs, minizips -> libminizips), so update the Windows archive names in Zlib.mke. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
|
This pull request is merged. |
tcobbs-bentley
approved these changes
Nov 16, 2026
DanRod1999
enabled auto-merge (squash)
November 16, 2026 20:01
Contributor
Author
|
/azp run imodel-native |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Contributor
Author
|
@Mergifyio backport release/5.15.x |
Contributor
✅ Backports have been createdDetails
Cherry-pick of 72a9ce5 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
DanRod1999
added a commit
that referenced
this pull request
Nov 20, 2026
Take the zlib/minizip 1.4 pins and vcpkg baseline 98d7375b from #1720, keeping release/5.15.x's existing freetype and libpng pins. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
DanRod1999
added a commit
that referenced
this pull request
Nov 20, 2026
Bump the zlib/minizip vcpkg pins to 1.4 in every graph that consumes zlib (compress, png, curl, crashpad, freetype2) and move those registry baselines to microsoft/vcpkg 98d7375b, the merge of microsoft/vcpkg#54958. zlib 1.4 renames the MSVC libraries (zs -> libzs, minizips -> libminizips), so update the Windows archive names in Zlib.mke. Co-authored-by: Daniel Rodriguez <DanRod1999@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> (cherry picked from commit 72a9ce5) # Conflicts: # iModelCore/libsrc/README.md # iModelCore/libsrc/compress/vcpkg-configuration.json # iModelCore/libsrc/compress/vcpkg.json # iModelCore/libsrc/crashpad/vcpkg-configuration.json # iModelCore/libsrc/crashpad/vcpkg.json # iModelCore/libsrc/curl/vcpkg-configuration.json # iModelCore/libsrc/curl/vcpkg.json # iModelCore/libsrc/freetype2/vcpkg-configuration.json # iModelCore/libsrc/freetype2/vcpkg.json # iModelCore/libsrc/png/vcpkg-configuration.json # iModelCore/libsrc/png/vcpkg.json Co-authored-by: Daniel Rodriguez <44824788+DanRod1999@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates zlib and minizip from 1.3.2 to 1.4 to resolve the Mend alerts against zlib 1.3.2 (CVE-2026-85091, WS-2026-0182, WS-2026-0183, WS-2026-0184). Besides the
gzwrite()overflow, 1.4 fixes theinflateGetDictionary()overflow and several minizip memory-safety and path-traversal issues.zlibto1.4in every vcpkg graph that uses it (compress,png,curl,crashpad,freetype2), andminizipto1.4incompress.libpng(1.6.59#1), which is unaffected becausepngpins1.6.59exactly.zs/zsd→libzs/libzsd,minizips/minizipsd→libminizips/libminizipsd), socompress/Zlib.mkenow uses the new Windows archive names. Non-Windows names are unchanged.libsrc/README.mdand the zlib/minizip entries inCompressNugetLicense.json.Notes and validation
vcpkg install --dry-runwithx64-windows-staticresolves all five graphs tozlib 1.4(andminizip 1.4incompress) with no version conflicts. Linux and other platforms are left to CI.find_library(NAMES z;zs;...). vcpkg's portfile lookup on Windows tries both the""andlibprefixes, so it still findslibzs.lib.crypt.h,ints.h,ioapi.h,mztools.h,unzip.h,zip.h) underinclude/minizip/, so header staging inZlib.mkeis unchanged.z_off_tback tolongon Windows,deflateReset()clearing the gzip header,gzopen("x")) don't affect this repo: nothing here calls the gz*,deflateSetHeader, or prime/dictionary APIs directly, and everything is rebuilt against the 1.4 headers.unofficial-iowin32feature, which isn't used here.generated with Claude Opus 5.5