Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove call to Signature.getProvider() in debug log #240

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Remove call to Signature.getProvider() in debug log #240

merged 1 commit into from
Nov 3, 2023

Conversation

narras-oss
Copy link
Contributor

@narras-oss narras-oss commented Oct 31, 2023

The debug log message makes a call to Signature.getProvider() too early.
This causes Signature.chooseFirstProvider() to be called which matches the first provider always rather than the correct provider based on PrivateKey.getAlgorithm() when there are multiple providers.
This debug log was changed in this commit and introduced the issue: 1f48918
Added unit test cases with fake provider

@narras-oss
Copy link
Contributor Author

@coheigea and @seanjmullan We are unable to upgrade to 3.0.3 or 4.0.0 to get the fix for CVE-2023-44483 because of this issue. Appreciate your attention to this pull request.

@seanjmullan
Copy link
Member

Sorry for the delay. I will take a look now.

The debug log message makes a call to Signature.getProvider() too early.
This causes Signature.chooseFirstProvider() to be called which matches
 the first provider always rather than the correct provider based on
 PrivateKey.getAlgorithm() when there are multiple providers.
This debug log was changed in this commit and introduced the issue: 1f48918
Added unit test cases with fake provider
@coheigea coheigea merged commit 61f2b2d into apache:main Nov 3, 2023
4 of 5 checks passed
@coheigea
Copy link
Contributor

coheigea commented Nov 3, 2023

Backmerging to 3.0.x as well.

coheigea pushed a commit that referenced this pull request Nov 3, 2023
The debug log message makes a call to Signature.getProvider() too early.
This causes Signature.chooseFirstProvider() to be called which matches
 the first provider always rather than the correct provider based on
 PrivateKey.getAlgorithm() when there are multiple providers.
This debug log was changed in this commit and introduced the issue: 1f48918
Added unit test cases with fake provider
coheigea pushed a commit that referenced this pull request Nov 3, 2023
The debug log message makes a call to Signature.getProvider() too early.
This causes Signature.chooseFirstProvider() to be called which matches
 the first provider always rather than the correct provider based on
 PrivateKey.getAlgorithm() when there are multiple providers.
This debug log was changed in this commit and introduced the issue: 1f48918
Added unit test cases with fake provider
@narras-oss
Copy link
Contributor Author

@coheigea Is there an ETA for next release ? We are unable to upgrade to latest version to get the CVE fix until this fix included (other than copy-pasting this class into our application to override it)

@coheigea
Copy link
Contributor

@narras-oss What release do you specifically need a fix in?

@narras-oss
Copy link
Contributor Author

This particular pull request (which is merged) is what I am referring to as the fix, either 3.0.4 or 4.0.1 (next release) would work.

@coheigea
Copy link
Contributor

I'm calling a vote on 4.0.1 today with the fix

@coheigea
Copy link
Contributor

4.0.1 is in maven central now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants