Summary
TarReader accepts malformed devmajor and devminor fields even on an
ordinary regular member. The reproduction archive is rejected by
CPython tarfile and Go archive/tar; the other maintained peers accept it.
Tested at 1ac1199559a1b96f0f953ac99520ccc296503808.
Observed behavior
The two device fields contain XXXXXXXX and YYYYYYYY. Tar-codec treats them
as opaque and returns the regular member.
Expected behavior
Consider validating populated device fields consistently, or document that
unused device fields are deliberately ignored for non-device members.
Impact
This is an interoperability and validation-policy difference, not an extraction
vulnerability by itself.
Summary
TarReaderaccepts malformeddevmajoranddevminorfields even on anordinary regular member. The reproduction archive is rejected by
CPython
tarfileand Goarchive/tar; the other maintained peers accept it.Tested at
1ac1199559a1b96f0f953ac99520ccc296503808.Observed behavior
The two device fields contain
XXXXXXXXandYYYYYYYY. Tar-codec treats themas opaque and returns the regular member.
Expected behavior
Consider validating populated device fields consistently, or document that
unused device fields are deliberately ignored for non-device members.
Impact
This is an interoperability and validation-policy difference, not an extraction
vulnerability by itself.