Skip to content

[fix, key flow] Explicitly fail on non EC keys#573

Merged
mihaimaruseac merged 2 commits intosigstore:mainfrom
mihaimaruseac:fix-fuzz
Nov 26, 2025
Merged

[fix, key flow] Explicitly fail on non EC keys#573
mihaimaruseac merged 2 commits intosigstore:mainfrom
mihaimaruseac:fix-fuzz

Conversation

@mihaimaruseac
Copy link
Copy Markdown
Member

Summary

The load_pem_private_key API reads any type of key, but the internals of the key flow only support elliptic curve keys. This was discovered by a fuzzer that sent an RSA key for verification of a signature generated by an EC key.

Checklist
  • All commits are signed-off, using DCO
  • All new code has docstrings and type annotations
  • All new code is covered by tests. Aim for at least 90% coverage. CI is configured to highlight lines not covered by tests.
  • Public facing changes are paired with documentation changes
  • Release note has been added to CHANGELOG.md if needed

The `load_pem_private_key` API reads any type of key, but the internals
of the key flow only support elliptic curve keys. This was discovered by
a fuzzer that sent an RSA key for verification of a signature generated
by an EC key.

Signed-off-by: Mihai Maruseac <mihaimaruseac@google.com>
@mihaimaruseac mihaimaruseac requested review from a team as code owners November 26, 2025 16:28
Signed-off-by: Mihai Maruseac <mihaimaruseac@google.com>
@mihaimaruseac mihaimaruseac merged commit c5a8253 into sigstore:main Nov 26, 2025
57 checks passed
@mihaimaruseac mihaimaruseac deleted the fix-fuzz branch November 26, 2025 16:39
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.

2 participants