You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current code may incorrectly identify encryption method as AES solely based on the presence of the extra field. The format specification says
As for any encrypted file, bit 0 of the "general purpose bit flags" field must be set to 1 in each AES-encrypted file's local header and central directory entry.
Additionally, the presence of an AES-encrypted file in a Zip file is indicated by a new compression method code (decimal 99) in the file's local header and central directory entry, used along with the AES extra data field described below. There is no change in either the version made by or version needed to extract codes.
We should make sure we report AES encryption only if both conditions are satisfied (Encryption bit + compression method in header), and throw if the extra field is absent.
Activity
dotnet-policy-service commentedon Oct 5, 2026
Tagging subscribers to this area: @karelz, @dotnet/area-system-io-compression
See info in area-owners.md if you want to be subscribed.
Fix ZIP AES encryption method detection (#135220)