Skip to content

MONGOCRYPT-909 reject large KMIP response length#1187

Merged
kevinAlbs merged 2 commits into
mongodb:masterfrom
kevinAlbs:M909
Jun 10, 2026
Merged

MONGOCRYPT-909 reject large KMIP response length#1187
kevinAlbs merged 2 commits into
mongodb:masterfrom
kevinAlbs:M909

Conversation

@kevinAlbs

Copy link
Copy Markdown
Collaborator

This PR uses the KMS_PARSER_MAX_RESPONSE_LEN length added in #1163 to address MONGOCRYPT-909 and put a 16 MiB limit on the reported length in a KMIP response.

A regression test is added, as well as cases for other bad lengths (0, and "too small").

@kevinAlbs kevinAlbs requested a review from rcsanchez97 June 8, 2026 15:37
@kevinAlbs kevinAlbs requested a review from a team as a code owner June 8, 2026 15:37
@kevinAlbs kevinAlbs merged commit 92b5144 into mongodb:master Jun 10, 2026
54 checks passed
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