Skip to content

Fix fuzzer metadata injection via unicode line separator abuse - #5429

Open
JM00NJ wants to merge 2 commits into
google:masterfrom
JM00NJ:master
Open

Fix fuzzer metadata injection via unicode line separator abuse#5429
JM00NJ wants to merge 2 commits into
google:masterfrom
JM00NJ:master

Conversation

@JM00NJ

@JM00NJ JM00NJ commented Aug 15, 2026

Copy link
Copy Markdown

Fixes #5428

Two fixes for the metadata injection vulnerability:

  1. utils.py: Change errors='ignore' to errors='replace' to prevent silent dropping of invalid UTF-8 bytes that could be used to manipulate metadata keys.

  2. fuzz_task.py: Sanitize fuzzer output before splitlines() to prevent CR (\r), NEL (\x85), U+2028, and U+2029 from injecting additional metadata lines.

JM00NJ added 2 commits August 15, 2026 09:58
Change errors='ignore' to errors='replace' to prevent invalid UTF-8
bytes from being silently dropped, which could allow metadata key
manipulation in get_fuzzer_metadata_from_output().

Fixes google#5428
Sanitize fuzzer output before splitlines() to prevent CR, NEL
(U+0085), U+2028, and U+2029 from injecting additional metadata
keys.

Fixes google#5428
@JM00NJ
JM00NJ requested a review from a team as a code owner August 15, 2026 07:01
@google-cla

google-cla Bot commented Aug 15, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

Fuzzer metadata injection via decode_to_unicode errors='ignore' + splitlines() line separator abuse

1 participant