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

Improve diagnostics in SpEL for large array creation #28145

Closed
sbrannen opened this issue Mar 8, 2022 · 3 comments
Closed

Improve diagnostics in SpEL for large array creation #28145

sbrannen opened this issue Mar 8, 2022 · 3 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Mar 8, 2022

Attempting to create a large array in a SpEL expression can result in an OutOfMemoryError. Although the JVM recovers from that, we should throw an exception with a meaningful error message in order to improve diagnostics for the user.

@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Mar 8, 2022
@sbrannen sbrannen added this to the 5.3.17 milestone Mar 8, 2022
@sbrannen sbrannen self-assigned this Mar 8, 2022
@artem-smotrakov
Copy link

Hi @sbrannen Does this address CVE-2022-22963?

@sbrannen
Copy link
Member Author

Does this address CVE-2022-22963?

No. That CVE is specific to Spring Cloud Function. See the corresponding blog post for details.

@artem-smotrakov
Copy link

artem-smotrakov commented Mar 30, 2022

@sbrannen Oh sorry, I meant CVE-2022-22950 in Spring Framework. Does this commit address CVE-2022-22950?

@jhoeller jhoeller added status: backported An issue that has been backported to maintenance branches and removed for: backport-to-5.2.x labels Mar 31, 2022
anfit pushed a commit to anfit/spring-framework that referenced this issue Oct 16, 2023
Attempting to create a large array in a SpEL expression can result in
an OutOfMemoryError. Although the JVM recovers from that, the error
message is not very helpful to the user.

This commit improves the diagnostics in SpEL for large array creation
by throwing a SpelEvaluationException with a meaningful error message
in order to improve diagnostics for the user.

Closes spring-projectsgh-28145
anfit pushed a commit to anfit/spring-framework that referenced this issue Oct 18, 2023
Attempting to create a large array in a SpEL expression can result in
an OutOfMemoryError. Although the JVM recovers from that, the error
message is not very helpful to the user.

This commit improves the diagnostics in SpEL for large array creation
by throwing a SpelEvaluationException with a meaningful error message
in order to improve diagnostics for the user.

Closes spring-projectsgh-28145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants