Skip to content

fix message length validation in ajp_msg_check_header - #611

Closed
rootvector2 wants to merge 1 commit into
apache:trunkfrom
rootvector2:ajp-msglen-validation
Closed

fix message length validation in ajp_msg_check_header#611
rootvector2 wants to merge 1 commit into
apache:trunkfrom
rootvector2:ajp-msglen-validation

Conversation

@rootvector2

Copy link
Copy Markdown

ajp_msg_check_header() validates msglen against msg->max_size,
but ajp_ilink_receive() reads the body starting at buf + AJP_HEADER_LEN.

This means msglen values up to msg->max_size can pass validation while
writing past the end of the allocated buffer.

Restrict msglen to msg->max_size - AJP_HEADER_LEN to ensure the body
fits within msg->buf.

@notroj

notroj commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR, this was fixed in 76dac5d

@notroj notroj closed this Apr 27, 2026
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