Skip to content

fix(parquet): reject truncated footer signatures - #1074

Open
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/parquet-truncated-signature
Open

fix(parquet): reject truncated footer signatures#1074
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/parquet-truncated-signature

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Problem

FileMetaData.VerifySignature sliced the supplied signature into nonce and tag fields before validating its length. A truncated signature could therefore trigger an out-of-range panic instead of being rejected.

Change

Return false when the signature is shorter than the required nonce plus GCM tag length. Valid-length signature verification continues through the existing constant-time comparison path.

Coverage

The regression test covers every truncated length and the exact minimum boundary, confirming that malformed input is rejected without panicking.

Validation

go test ./parquet/metadata

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 30, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant