Description Preview
Overview
This CVE affects Spring Framework deployments that use Spring MVC or Spring WebFlux on JDK 9+ when packaged as a WAR and deployed on Tomcat, enabling potential remote code execution through data binding. The vulnerability is mitigated for Spring Boot executable jars by default, but remains a concern for non-boot deployments. The weakness is classified under CWE-94 (Code Injection). Patches are available in newer releases (5.3.18+ and 5.2.20+), and multiple vendor advisories document mitigation and remediation strategies.
Remediation
- Upgrade to a fixed Spring Framework version: 5.3.18+ or 5.2.20+ (or newer) and redeploy the application WARs on Tomcat.
- If you must delay upgrade, apply vendor-provided mitigations from advisories (consult Oracle, Cisco, SonicWall, Siemens, etc.) and implement compensating controls as recommended by the vendor.
- For Maven/Gradle projects, update the Spring Framework dependency in your pom.xml/build.gradle, rebuild, and redeploy the WAR to Tomcat.
- Verify packaging: Spring Boot executable jars are not affected by the default exploit; ensure your deployment type aligns with patched guidance and monitor for any related CVEs affecting other components.
- Perform testing after patching: functional validation and security testing to confirm the RCE path is mitigated.
- Review transitive dependencies to ensure no downgraded or vulnerable Spring Framework versions are introduced.
References
- https://tanzu.vmware.com/security/cve-2022-22965
- 20220401 Vulnerability in Spring Framework Affecting Cisco Products: March 2022 — https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-java-spring-rce-Zx9GUc67
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0005
- http://packetstormsecurity.com/files/166713/Spring4Shell-Code-Execution.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-254054.pdf
- https://www.oracle.com/security-alerts/cpujul2022.html
- http://packetstormsecurity.com/files/167011/Spring4Shell-Spring-Framework-Class-Property-Remote-Code-Execution.html
Early Warning
Customers using Armis Early Warning were notified about this vulnerability before it appeared in CISA's Known Exploited Vulnerabilities Catalog, enabling them to assess their exposure and act proactively. Armis offers these examples of CVEs already included in CISA KEV for potential customers. Click here to learn how to receive alerts earlier.
- Armis Alert Date
- Apr 1, 2022
- CISA KEV Date
- Apr 4, 2022
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing: Medium
- Public AdministrationPublic Administration: Medium
- Health Care & Social AssistanceHealth Care & Social Assistance: Medium
- Transportation & WarehousingTransportation & Warehousing: Medium
- Finance and InsuranceFinance and Insurance: Low
- Retail TradeRetail Trade: Low
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services: Low
- Educational ServicesEducational Services: Low
- Management of Companies & EnterprisesManagement of Companies & Enterprises: Low
- Other Services (except Public Administration)Other Services (except Public Administration): Low
- Arts, Entertainment & RecreationArts, Entertainment & Recreation: Low
- UtilitiesUtilities: Low
- Accommodation & Food ServicesAccommodation & Food Services: Low
- ConstructionConstruction: Low
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services: Low
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting: Low
- InformationInformation: Low
- MiningMining: Low
- Real Estate Rental & LeasingReal Estate Rental & Leasing: Low
- Wholesale TradeWholesale Trade: Low