A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it.
Direct dependency fix Resolution (org.springframework.boot:spring-boot): 2.6.6
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2022-22950
### Vulnerable Library - spring-expression-5.3.14.jar
Spring Expression Language (SpEL)
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-expression/5.3.14/spring-expression-5.3.14.jar
n Spring Framework versions 5.3.0 - 5.3.16 and older unsupported versions, it is possible for a user to provide a specially crafted SpEL expression that may cause a denial of service condition.
Direct dependency fix Resolution (org.springframework.boot:spring-boot): 2.6.5
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2022-22968
### Vulnerable Library - spring-context-5.3.14.jar
Spring Context
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-context/5.3.14/spring-context-5.3.14.jar
In Spring Framework versions 5.3.0 - 5.3.18, 5.2.0 - 5.2.20, and older unsupported versions, the patterns for disallowedFields on a DataBinder are case sensitive which means a field is not effectively protected unless it is listed with both upper and lower case for the first character of the field, including upper and lower case for the first character of all nested fields within the property path.
Direct dependency fix Resolution (org.springframework.boot:spring-boot): 2.6.7
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2022-22970
### Vulnerable Libraries - spring-core-5.3.14.jar, spring-beans-5.3.14.jar
### spring-core-5.3.14.jar
Spring Core
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-core/5.3.14/spring-core-5.3.14.jar
In spring framework versions prior to 5.3.20+ , 5.2.22+ and old unsupported versions, applications that handle file uploads are vulnerable to DoS attack if they rely on data binding to set a MultipartFile or javax.servlet.Part to a field in a model object.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
Vulnerable Library - spring-boot-2.6.2.jar
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/5.3.14/spring-beans-5.3.14.jar
Found in HEAD commit: 4cb4a4a3fc4035d18e862bfef7981c5edea9ab79
Vulnerabilities
Details
CVE-2022-22965
### Vulnerable Library - spring-beans-5.3.14.jarSpring Beans
Library home page: https://github.com/spring-projects/spring-framework
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/5.3.14/spring-beans-5.3.14.jar
Dependency Hierarchy: - spring-boot-2.6.2.jar (Root Library) - spring-context-5.3.14.jar - :x: **spring-beans-5.3.14.jar** (Vulnerable Library)
Found in HEAD commit: 4cb4a4a3fc4035d18e862bfef7981c5edea9ab79
Found in base branch: master
### Vulnerability DetailsA Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it.
Publish Date: 2022-04-01
URL: CVE-2022-22965
### CVSS 3 Score Details (9.8)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement
Release Date: 2022-04-01
Fix Resolution (org.springframework:spring-beans): 5.3.18
Direct dependency fix Resolution (org.springframework.boot:spring-boot): 2.6.6
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)CVE-2022-22950
### Vulnerable Library - spring-expression-5.3.14.jarSpring Expression Language (SpEL)
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-expression/5.3.14/spring-expression-5.3.14.jar
Dependency Hierarchy: - spring-boot-2.6.2.jar (Root Library) - spring-context-5.3.14.jar - :x: **spring-expression-5.3.14.jar** (Vulnerable Library)
Found in HEAD commit: 4cb4a4a3fc4035d18e862bfef7981c5edea9ab79
Found in base branch: master
### Vulnerability Detailsn Spring Framework versions 5.3.0 - 5.3.16 and older unsupported versions, it is possible for a user to provide a specially crafted SpEL expression that may cause a denial of service condition.
Publish Date: 2022-04-01
URL: CVE-2022-22950
### CVSS 3 Score Details (6.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://tanzu.vmware.com/security/cve-2022-22950
Release Date: 2022-04-01
Fix Resolution (org.springframework:spring-expression): 5.3.17
Direct dependency fix Resolution (org.springframework.boot:spring-boot): 2.6.5
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)CVE-2022-22968
### Vulnerable Library - spring-context-5.3.14.jarSpring Context
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-context/5.3.14/spring-context-5.3.14.jar
Dependency Hierarchy: - spring-boot-2.6.2.jar (Root Library) - :x: **spring-context-5.3.14.jar** (Vulnerable Library)
Found in HEAD commit: 4cb4a4a3fc4035d18e862bfef7981c5edea9ab79
Found in base branch: master
### Vulnerability DetailsIn Spring Framework versions 5.3.0 - 5.3.18, 5.2.0 - 5.2.20, and older unsupported versions, the patterns for disallowedFields on a DataBinder are case sensitive which means a field is not effectively protected unless it is listed with both upper and lower case for the first character of the field, including upper and lower case for the first character of all nested fields within the property path.
Publish Date: 2022-04-14
URL: CVE-2022-22968
### CVSS 3 Score Details (5.3)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://tanzu.vmware.com/security/cve-2022-22968
Release Date: 2022-04-14
Fix Resolution (org.springframework:spring-context): 5.3.19
Direct dependency fix Resolution (org.springframework.boot:spring-boot): 2.6.7
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)CVE-2022-22970
### Vulnerable Libraries - spring-core-5.3.14.jar, spring-beans-5.3.14.jar### spring-core-5.3.14.jar
Spring Core
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-core/5.3.14/spring-core-5.3.14.jar
Dependency Hierarchy: - spring-boot-2.6.2.jar (Root Library) - :x: **spring-core-5.3.14.jar** (Vulnerable Library) ### spring-beans-5.3.14.jar
Spring Beans
Library home page: https://github.com/spring-projects/spring-framework
Path to dependency file: /pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/5.3.14/spring-beans-5.3.14.jar
Dependency Hierarchy: - spring-boot-2.6.2.jar (Root Library) - spring-context-5.3.14.jar - :x: **spring-beans-5.3.14.jar** (Vulnerable Library)
Found in HEAD commit: 4cb4a4a3fc4035d18e862bfef7981c5edea9ab79
Found in base branch: master
### Vulnerability DetailsIn spring framework versions prior to 5.3.20+ , 5.2.22+ and old unsupported versions, applications that handle file uploads are vulnerable to DoS attack if they rely on data binding to set a MultipartFile or javax.servlet.Part to a field in a model object.
Publish Date: 2022-05-12
URL: CVE-2022-22970
### CVSS 3 Score Details (5.3)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://tanzu.vmware.com/security/cve-2022-22970
Release Date: 2022-05-12
Fix Resolution (org.springframework:spring-core): 5.3.20
Direct dependency fix Resolution (org.springframework.boot:spring-boot): 2.6.8
Fix Resolution (org.springframework:spring-beans): 5.3.20
Direct dependency fix Resolution (org.springframework.boot:spring-boot): 2.6.8
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)