Skip to content

Malformed unused device fields are accepted #63

Description

@zaniebot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    diff:permissiveA differential where tar-codec is more permissive than other parsers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions