Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vbatts/tar-split
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.12.1
Choose a base ref
...
head repository: vbatts/tar-split
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.12.2
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Oct 13, 2025

  1. archive/tar: set a limit on the size of GNU sparse file 1.0 regions

    Sparse files in tar archives contain only the non-zero components
    of the file. There are several different encodings for sparse
    files. When reading GNU tar pax 1.0 sparse files, archive/tar did
    not set a limit on the size of the sparse region data. A malicious
    archive containing a large number of sparse blocks could cause
    archive/tar to read an unbounded amount of data from the archive
    into memory.
    
    Since a malicious input can be highly compressable, a small
    compressed input could cause very large allocations.
    
    Cap the size of the sparse block data to the same limit used
    for PAX headers (1 MiB).
    
    Thanks to Harshit Gupta (Mr HAX) (https://www.linkedin.com/in/iam-harshit-gupta/)
    for reporting this issue.
    
    Fixes CVE-2025-58183
    For #75677
    Fixes #75711
    
    Change-Id: I70b907b584a7b8676df8a149a1db728ae681a770
    Reviewed-on: https://go-internal-review.googlesource.com/c/go/+/2800
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Nicholas Husin <[email protected]>
    Reviewed-on: https://go-internal-review.googlesource.com/c/go/+/2987
    Reviewed-by: Damien Neil <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/709852
    TryBot-Bypass: Michael Pratt <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    Auto-Submit: Michael Pratt <[email protected]>
    
    This is a port of upstream commit 2612dcfd3cb6dd73c76e14a24fe1a68e2708e4e3 ,
    "Copyright 2009 The Go Authors."
    
    Signed-off-by: Miloslav Trmač <[email protected]>
    neild authored and mtrmac committed Oct 13, 2025
    Configuration menu
    Copy the full SHA
    55da7d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2025

  1. Merge pull request #85 from mtrmac/backport

    Port a fix for CVE-2025-58183
    vbatts authored Oct 14, 2025
    Configuration menu
    Copy the full SHA
    e93e901 View commit details
    Browse the repository at this point in the history
Loading