secdev / secdev/scapy

CBOR field strips off raw payload but not padding

Open
#5,081 1 comment 0 reactions 1 assignee View on GitHub

@polybassa is already working on this.

Since Aug 25, 2026.

Dominant language
Python
Stars
12.6k
Forks
2.2k
Avg merge
1d 4h
Merged PRs (30d)
56

Description

If an individual CBOR_Packet-derived class decodes with excess data as Padding payload, it will be left in place when embedded within a CBOR_Field. Instead if it contains a Raw payload that meaningful Raw will be stripped off and treated as padding, selected below.

https://github.com/secdev/scapy/blob/b1a979988a6517acc7c234902b408fb2f4d449b0/scapy/cbor/cborfields.py#L156

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.