shaimael / keycloak

Open Source Identity and Access Management For Modern Applications and Services
https://www.keycloak.org
Apache License 2.0
0 stars 0 forks source link

CVE-2022-22965 (High) detected in multiple libraries #1349

Open mend-for-github-com[bot] opened 2 years ago

mend-for-github-com[bot] commented 2 years ago

CVE-2022-22965 - High Severity Vulnerability

Vulnerable Libraries - spring-beans-4.3.19.RELEASE.jar, spring-beans-5.0.9.RELEASE.jar, spring-beans-4.3.23.RELEASE.jar, spring-beans-5.0.5.RELEASE.jar, spring-beans-4.3.18.RELEASE.jar, spring-beans-3.2.13.RELEASE.jar

spring-beans-4.3.19.RELEASE.jar

Spring Beans

Library home page: https://github.com/spring-projects/spring-framework

Path to dependency file: /adapters/oidc/spring-boot/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/4.3.19.RELEASE/spring-beans-4.3.19.RELEASE.jar,/home/wss-scanner/.m2/repository/org/springframework/spring-beans/4.3.19.RELEASE/spring-beans-4.3.19.RELEASE.jar

Dependency Hierarchy: - spring-boot-starter-web-1.5.16.RELEASE.jar (Root Library) - spring-web-4.3.19.RELEASE.jar - :x: **spring-beans-4.3.19.RELEASE.jar** (Vulnerable Library)

spring-beans-5.0.9.RELEASE.jar

Spring Beans

Library home page: https://github.com/spring-projects/spring-framework

Path to dependency file: /misc/spring-boot-starter/keycloak-spring-boot-starter/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/5.0.9.RELEASE/spring-beans-5.0.9.RELEASE.jar,/home/wss-scanner/.m2/repository/org/springframework/spring-beans/5.0.9.RELEASE/spring-beans-5.0.9.RELEASE.jar

Dependency Hierarchy: - spring-boot-starter-web-2.0.5.RELEASE.jar (Root Library) - spring-web-5.0.9.RELEASE.jar - :x: **spring-beans-5.0.9.RELEASE.jar** (Vulnerable Library)

spring-beans-4.3.23.RELEASE.jar

Spring Beans

Library home page: https://github.com/spring-projects/spring-framework

Path to dependency file: /testsuite/integration-arquillian/test-apps/spring-boot-adapter-app/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/4.3.23.RELEASE/spring-beans-4.3.23.RELEASE.jar

Dependency Hierarchy: - spring-boot-starter-web-1.5.20.RELEASE.jar (Root Library) - spring-web-4.3.23.RELEASE.jar - :x: **spring-beans-4.3.23.RELEASE.jar** (Vulnerable Library)

spring-beans-5.0.5.RELEASE.jar

Spring Beans

Library home page: https://github.com/spring-projects/spring-framework

Path to dependency file: /testsuite/model/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/5.0.5.RELEASE/spring-beans-5.0.5.RELEASE.jar,/home/wss-scanner/.m2/repository/org/springframework/spring-beans/5.0.5.RELEASE/spring-beans-5.0.5.RELEASE.jar,/home/wss-scanner/.m2/repository/org/springframework/spring-beans/5.0.5.RELEASE/spring-beans-5.0.5.RELEASE.jar

Dependency Hierarchy: - java-client-6.1.0.jar (Root Library) - spring-context-5.0.5.RELEASE.jar - :x: **spring-beans-5.0.5.RELEASE.jar** (Vulnerable Library)

spring-beans-4.3.18.RELEASE.jar

Spring Beans

Library home page: https://github.com/spring-projects/spring-framework

Path to dependency file: /misc/spring-legacy-boot-starter/keycloak-legacy-spring-boot-starter/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/4.3.18.RELEASE/spring-beans-4.3.18.RELEASE.jar

Dependency Hierarchy: - spring-boot-starter-1.5.14.RELEASE.jar (Root Library) - spring-boot-1.5.14.RELEASE.jar - spring-context-4.3.18.RELEASE.jar - :x: **spring-beans-4.3.18.RELEASE.jar** (Vulnerable Library)

spring-beans-3.2.13.RELEASE.jar

Spring Beans

Library home page: https://github.com/SpringSource/spring-framework

Path to dependency file: /adapters/oidc/spring-security/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-beans/3.2.13.RELEASE/spring-beans-3.2.13.RELEASE.jar

Dependency Hierarchy: - spring-security-config-3.2.7.RELEASE.jar (Root Library) - :x: **spring-beans-3.2.13.RELEASE.jar** (Vulnerable Library)

Found in HEAD commit: 9686933e579cc74ebc1592f893a47c601bcf4403

Found in base branch: master

Vulnerability Details

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.

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 Fix

Type: 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.2.20.RELEASE

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-web): 2.0.0.RELEASE

Fix Resolution (org.springframework:spring-beans): 5.2.20.RELEASE

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-web): 2.4.0

Fix Resolution (org.springframework:spring-beans): 5.2.20.RELEASE

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-web): 2.0.0.RELEASE

Fix Resolution (org.springframework:spring-beans): 5.2.20.RELEASE

Direct dependency fix Resolution (io.appium:java-client): 7.4.0

Fix Resolution (org.springframework:spring-beans): 5.2.20.RELEASE

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter): 2.0.0.RELEASE

Fix Resolution (org.springframework:spring-beans): 5.2.20.RELEASE

Direct dependency fix Resolution (org.springframework.security:spring-security-config): 4.1.0.RELEASE


:rescue_worker_helmet: Automatic Remediation is available for this issue