Skip to content

Conversation

@ebarlas
Copy link
Contributor

@ebarlas ebarlas commented Nov 26, 2025

The org.elasticsearch.common.ssl.DerParser class is missing a validation check on sequence length.

If the length is in the "long form" and consists of 4 data bytes, they must fit in a Java signed 32-bit integer.

That check was missing and is added here.

Prior to the fix, the new test failed with java.lang.NegativeArraySizeException.

@ebarlas ebarlas self-assigned this Nov 26, 2025
@ebarlas ebarlas added >test Issues or PRs that are addressing/adding tests :Security/Security Security issues without another label Team:Security Meta label for security team labels Nov 26, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@ebarlas ebarlas added v9.2.2 v8.19.8 v9.1.8 auto-backport Automatically create backport pull requests when merged labels Nov 26, 2025
@ebarlas ebarlas merged commit 2af4cb8 into elastic:main Nov 26, 2025
40 checks passed
ebarlas added a commit to ebarlas/elasticsearch that referenced this pull request Nov 26, 2025
Add validation to org.elasticsearch.common.ssl.DerParser for sequence
length that exceeds maximum signed int.
ebarlas added a commit to ebarlas/elasticsearch that referenced this pull request Nov 26, 2025
Add validation to org.elasticsearch.common.ssl.DerParser for sequence
length that exceeds maximum signed int.
ebarlas added a commit to ebarlas/elasticsearch that referenced this pull request Nov 26, 2025
Add validation to org.elasticsearch.common.ssl.DerParser for sequence
length that exceeds maximum signed int.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.2
8.19
9.1

elasticsearchmachine pushed a commit that referenced this pull request Nov 26, 2025
Add validation to org.elasticsearch.common.ssl.DerParser for sequence
length that exceeds maximum signed int.
elasticsearchmachine pushed a commit that referenced this pull request Nov 26, 2025
Add validation to org.elasticsearch.common.ssl.DerParser for sequence
length that exceeds maximum signed int.
elasticsearchmachine pushed a commit that referenced this pull request Nov 27, 2025
Add validation to org.elasticsearch.common.ssl.DerParser for sequence
length that exceeds maximum signed int.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Security/Security Security issues without another label Team:Security Meta label for security team >test Issues or PRs that are addressing/adding tests v8.19.8 v9.1.8 v9.2.2 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants