Created
July 29, 2025 13:37
-
-
Save sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1 to your computer and use it in GitHub Desktop.
Mitigation for CVE-2025-8194
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
import tarfile | |
def _block_patched(self, count): | |
if count < 0: | |
raise tarfile.InvalidHeaderError("invalid offset") | |
return _block_patched._orig_block(self, count) | |
_block_patched._orig_block = tarfile.TarInfo._block | |
tarfile.TarInfo._block = _block_patched |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment