metadata
tags:
- security
- proof-of-concept
- protobuf
license: mit
Protocol Buffers FieldMask paths materialization DoS PoC
This repository contains a benign security research PoC for a .pb artifact
that drives repeated-string materialization during
field_mask_pb2.FieldMask.ParseFromString(...).
Files:
control_one_path.pbmalicious_paths_5000000.pbreproduce.py
Observed behavior:
- control artifact:
- parses successfully with one
pathsentry
- parses successfully with one
- malicious artifact:
- parses successfully with
5,000,000pathsentries - materially increases peak RSS during normal parse
- parses successfully with
Tested runtime:
python3 -m pip install protobuf==7.35.1