Hello,
the zlib version 1.2.12 actually used by GnuPG / Gpg4Win suffers from CVE-2022-37434:
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpg4win.git;a=blob;f=packages/packages.common;hb=HEAD#l23
Since 20220808, there are 2 patches avaiable by Mark Adler:
https://github.com/madler/zlib/commit/eff308af42.patch
https://github.com/madler/zlib/commit/1eb7682f84.patch
Source: https://github.com/openwrt/openwrt/issues/10582
Maybe it's a good idea to merge them into the GnuPG / Gpg4Win build ...
Background-Info:
The commit:
https://github.com/madler/zlib/commit/eff308af425b67093bab25f80f1ae950166bece1
... fixed the CVE-2022-37434, but at the same time produced a "Segmentation-Fault", which in turn until now in the developer branch with the commit:
https://github.com/madler/zlib/commit/1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d
... has been fixed.
So far (status: 20220902) it hasn't made it into the master branch yet... maybe there will be a release soon... :-)
Here is the information about it:
https://github.com/madler/zlib/commit/eff308af425b67093bab25f80f1ae950166bece1#commitcomment-80801182
Best Regards,
Veit Berwig