Protocol Buffers DescriptorProto reserved_name materialization DoS PoC
This repository contains a benign security research PoC for a .pb artifact
that drives large memory materialization during
descriptor_pb2.DescriptorProto.ParseFromString(...).
Files:
control_one_reserved_name.pbmalicious_reserved_name_5000000.pbreproduce.py
Observed behavior:
- control artifact:
- parses successfully with one
reserved_name
- parses successfully with one
- malicious artifact:
- parses successfully with
5,000,000reserved_nameentries - materially increases peak RSS during normal parse
- parses successfully with
Reproduction:
python3 build_poc.py
python3 reproduce.py
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support