Skip to content

[5.19.x] Add validation for WireFormatInfo (#2080)#2082

Merged
cshannon merged 1 commit into
apache:activemq-5.19.xfrom
cshannon:backport-2080-5.19.x
Jun 5, 2026
Merged

[5.19.x] Add validation for WireFormatInfo (#2080)#2082
cshannon merged 1 commit into
apache:activemq-5.19.xfrom
cshannon:backport-2080-5.19.x

Conversation

@cshannon
Copy link
Copy Markdown
Contributor

@cshannon cshannon commented Jun 5, 2026

The max number of properties in the map for the WireFormatInfo command was lowered to 64 and a new max value buffer size was added to validate buffers created during unmarshalling of the properties map. The max buffer allowed has been set to 512 bytes.

This also adds a maxDepth check for handling nested collections inside the map. It is set to 0 which will block list/map from being used as a value for a property.

(cherry picked from commit 6fc46e5)

The max number of properties in the map for the WireFormatInfo
command was lowered to 64 and a new max value buffer size was
added to validate buffers created during unmarshalling of the properties
map. The max buffer allowed has been set to 512 bytes.

This also adds a maxDepth check for handling nested collections inside
the map. It is set to 0 which will block list/map from being used as
a value for a property.

(cherry picked from commit 6fc46e5)
@cshannon cshannon self-assigned this Jun 5, 2026
@cshannon cshannon merged commit 42e2be7 into apache:activemq-5.19.x Jun 5, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Apache ActiveMQ v5.19.8 Jun 5, 2026
@cshannon cshannon deleted the backport-2080-5.19.x branch June 5, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant