Skip to content

hapi-fhir-base-4.1.0.jar: 9 vulnerabilities (highest severity is: 9.8) reachable #11

@mend-for-github.zerozr99.workers.dev

Description

Vulnerable Library - hapi-fhir-base-4.1.0.jar

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar

Vulnerabilities

Vulnerability Severity CVSS Exploit Maturity EPSS Dependency Type Fixed in (hapi-fhir-base version) Remediation Possible** Reachability
CVE-2022-42889 Critical 9.8 Proof of concept 94.2% commons-text-1.7.jar Transitive 5.0.0

Reachable

WS-2021-0419 High 7.7 Not Defined gson-2.8.5.jar Transitive 5.0.0

Reachable

CVE-2022-25647 High 7.7 Not Defined 2.8000002% gson-2.8.5.jar Transitive 5.0.0

Reachable

WS-2019-0379 Medium 6.5 Not Defined commons-codec-1.12.jar Transitive N/A*

Reachable

CVE-2023-2976 Medium 5.5 Not Defined 0.0% guava-28.0-jre.jar Transitive 5.0.0

Reachable

CVE-2025-48924 Medium 5.3 Not Defined 0.1% commons-lang3-3.9.jar Transitive 5.0.0

Reachable

CVE-2021-29425 Medium 4.8 Not Defined 0.5% commons-io-2.6.jar Transitive 4.2.0

Reachable

CVE-2020-8908 Low 3.3 Not Defined 0.0% guava-28.0-jre.jar Transitive 5.0.0

Reachable

CVE-2024-47554 Medium 4.3 Not Defined 0.2% commons-io-2.6.jar Transitive 5.0.0

Unreachable

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2022-42889

Vulnerable Library - commons-text-1.7.jar

Apache Commons Text is a library focused on algorithms working on strings.

Library home page: https://www.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/commons/commons-text/1.7/commons-text-1.7.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • commons-text-1.7.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

ca.uhn.fhir.jpa.starter.JpaRestfulServer (Application)
  -> ca.uhn.fhir.rest.server.interceptor.LoggingInterceptor (Extension)
   -> ❌ org.apache.commons.text.StringSubstitutor (Vulnerable Component)

Vulnerability Details

Apache Commons Text performs variable interpolation, allowing properties to be dynamically evaluated and expanded. The standard format for interpolation is "${prefix:name}", where "prefix" is used to locate an instance of org.apache.commons.text.lookup.StringLookup that performs the interpolation. Starting with version 1.5 and continuing through 1.9, the set of default Lookup instances included interpolators that could result in arbitrary code execution or contact with remote servers. These lookups are: - "script" - execute expressions using the JVM script execution engine (javax.script) - "dns" - resolve dns records - "url" - load values from urls, including from remote servers Applications using the interpolation defaults in the affected versions may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used. Users are recommended to upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default.

Publish Date: 2022-10-13

URL: CVE-2022-42889

Threat Assessment

Exploit Maturity: Proof of concept

EPSS: 94.2%

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.openwall.com/lists/oss-security/2022/10/13/4

Release Date: 2022-10-13

Fix Resolution (org.apache.commons:commons-text): 1.10.0

Direct dependency fix Resolution (ca.uhn.hapi.fhir:hapi-fhir-base): 5.0.0

⛑️ Automatic Remediation will be attempted for this issue.

WS-2021-0419

Vulnerable Library - gson-2.8.5.jar

Gson JSON library

Library home page: https://github.com/google/gson

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • gson-2.8.5.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

ca.uhn.fhir.jpa.starter.HapiProperties (Application)
  -> org.hibernate.search.elasticsearch.cfg.ElasticsearchIndexStatus (Extension)
   -> org.hibernate.search.elasticsearch.logging.impl.Log (Extension)
    -> com.google.gson.JsonElement (Extension)
     -> com.google.gson.JsonPrimitive (Extension)
      -> ❌ com.google.gson.internal.LazilyParsedNumber (Vulnerable Component)

Vulnerability Details

Denial of Service vulnerability was discovered in gson before 2.8.9 via the writeReplace() method.

Publish Date: 2021-10-11

URL: WS-2021-0419

Threat Assessment

Exploit Maturity: Not Defined

EPSS:

CVSS 3 Score Details (7.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2021-10-11

Fix Resolution (com.google.code.gson:gson): 2.8.9

Direct dependency fix Resolution (ca.uhn.hapi.fhir:hapi-fhir-base): 5.0.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2022-25647

Vulnerable Library - gson-2.8.5.jar

Gson JSON library

Library home page: https://github.com/google/gson

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • gson-2.8.5.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

ca.uhn.fhir.jpa.starter.HapiProperties (Application)
  -> ca.uhn.fhir.context.FhirVersionEnum (Extension)
   -> ca.uhn.fhir.context.FhirContext (Extension)
    -> ca.uhn.fhir.parser.ParserState$ElementCompositeState (Extension)
    ...
      -> com.google.gson.JsonElement (Extension)
       -> com.google.gson.JsonObject (Extension)
        -> ❌ com.google.gson.internal.LinkedTreeMap (Vulnerable Component)

Vulnerability Details

The package com.google.code.gson:gson before 2.8.9 are vulnerable to Deserialization of Untrusted Data via the writeReplace() method in internal classes, which may lead to DoS attacks.

Publish Date: 2022-05-01

URL: CVE-2022-25647

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 2.8000002%

CVSS 3 Score Details (7.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25647`

Release Date: 2022-05-01

Fix Resolution (com.google.code.gson:gson): 2.8.9

Direct dependency fix Resolution (ca.uhn.hapi.fhir:hapi-fhir-base): 5.0.0

⛑️ Automatic Remediation will be attempted for this issue.

WS-2019-0379

Vulnerable Library - commons-codec-1.12.jar

The Apache Commons Codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a collection of phonetic encoding utilities.

Library home page: https://www.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/commons-codec/commons-codec/1.12/commons-codec-1.12.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • commons-codec-1.12.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

ca.uhn.fhir.jpa.starter.JpaRestfulServer (Application)
  -> ca.uhn.fhir.jpa.provider.SubscriptionTriggeringProvider (Extension)
   -> ca.uhn.fhir.model.primitive.Base64BinaryDt (Extension)
    -> ❌ org.apache.commons.codec.binary.Base64 (Vulnerable Component)

Vulnerability Details

Apache commons-codec before version “commons-codec-1.13-RC1” is vulnerable to information disclosure due to Improper Input validation.

Publish Date: 2019-05-20

URL: WS-2019-0379

Threat Assessment

Exploit Maturity: Not Defined

EPSS:

CVSS 3 Score Details (6.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

CVE-2023-2976

Vulnerable Library - guava-28.0-jre.jar

Guava is a suite of core and expanded libraries that include utility classes, google's collections, io classes, and much much more.

Library home page: https://github.com/google/guava

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/google/guava/guava/28.0-jre/guava-28.0-jre.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • guava-28.0-jre.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

ca.uhn.fhir.jpa.starter.FhirServerConfigCommon (Application)
  -> ca.uhn.fhir.jpa.subscription.module.channel.SubscriptionDeliveryHandlerFactory (Extension)
   -> ca.uhn.fhir.jpa.subscription.module.subscriber.SubscriptionDeliveringRestHookSubscriber (Extension)
    -> com.google.common.collect.Iterators (Extension)
    ...
      -> com.google.common.reflect.ClassPath$ClassInfo (Extension)
       -> com.google.common.io.FileBackedOutputStream$1 (Extension)
        -> ❌ com.google.common.io.FileBackedOutputStream (Vulnerable Component)

Vulnerability Details

Use of Java's default temporary directory for file creation in "FileBackedOutputStream" in Google Guava versions 1.0 to 31.1 on Unix systems and Android Ice Cream Sandwich allows other users and apps on the machine with access to the default Java temporary directory to be able to access the files created by the class.
Even though the security vulnerability is fixed in version 32.0.0, we recommend using version 32.0.1 as version 32.0.0 breaks some functionality under Windows. Even though the security vulnerability is fixed in version 32.0.0, maintainers recommend using version 32.0.1 as version 32.0.0 breaks some functionality under Windows.

Publish Date: 2023-06-14

URL: CVE-2023-2976

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.0%

CVSS 3 Score Details (5.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: None
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-7g45-4rm6-3mm3

Release Date: 2023-06-14

Fix Resolution (com.google.guava:guava): 32.0.1-android

Direct dependency fix Resolution (ca.uhn.hapi.fhir:hapi-fhir-base): 5.0.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2025-48924

Vulnerable Library - commons-lang3-3.9.jar

Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang.

Library home page: https://www.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • commons-lang3-3.9.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

ca.uhn.fhir.jpa.starter.ExportInterceptor (Application)
  -> ca.uhn.fhir.rest.server.interceptor.IServerInterceptor$ActionRequestDetails (Extension)
   -> org.apache.commons.lang3.builder.ToStringStyle (Extension)
    -> ❌ org.apache.commons.lang3.ClassUtils (Vulnerable Component)

Vulnerability Details

Uncontrolled Recursion vulnerability in Apache Commons Lang.
This issue affects Apache Commons Lang: Starting with commons-lang:commons-lang 2.0 to 2.6, and, from org.apache.commons:commons-lang3 3.0 before 3.18.0.
The methods ClassUtils.getClass(...) can throw StackOverflowError on very long inputs. Because an Error is usually not handled by applications and libraries, a
StackOverflowError could cause an application to stop.
Users are recommended to upgrade to version 3.18.0, which fixes the issue.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2025-07-11

URL: CVE-2025-48924

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

CVSS 3 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2025-07-11

Fix Resolution (org.apache.commons:commons-lang3): 3.18.0

Direct dependency fix Resolution (ca.uhn.hapi.fhir:hapi-fhir-base): 5.0.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2021-29425

Vulnerable Library - commons-io-2.6.jar

The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.

Library home page: https://www.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • commons-io-2.6.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

ca.uhn.fhir.jpa.starter.JpaRestfulServer (Application)
  -> ca.uhn.fhir.jpa.binstore.BinaryStorageInterceptor (Extension)
   -> org.apache.commons.io.FileUtils (Extension)
    -> ❌ org.apache.commons.io.FilenameUtils (Vulnerable Component)

Vulnerability Details

In Apache Commons IO before 2.7, When invoking the method FileNameUtils.normalize with an improper input string, like "//../foo", or "\..\foo", the result would be the same value, thus possibly providing access to files in the parent directory, but not further above (thus "limited" path traversal), if the calling code would use the result to construct a path value.

Publish Date: 2021-04-13

URL: CVE-2021-29425

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.5%

CVSS 3 Score Details (4.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29425

Release Date: 2021-04-13

Fix Resolution (commons-io:commons-io): 2.7

Direct dependency fix Resolution (ca.uhn.hapi.fhir:hapi-fhir-base): 4.2.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2020-8908

Vulnerable Library - guava-28.0-jre.jar

Guava is a suite of core and expanded libraries that include utility classes, google's collections, io classes, and much much more.

Library home page: https://github.com/google/guava

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/google/guava/guava/28.0-jre/guava-28.0-jre.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • guava-28.0-jre.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

ca.uhn.fhir.jpa.starter.FhirServerConfigCommon (Application)
  -> ca.uhn.fhir.jpa.binstore.DatabaseBlobBinaryStorageSvcImpl (Extension)
   -> ca.uhn.fhir.jpa.term.TermReindexingSvcImpl$1 (Extension)
    -> com.google.common.util.concurrent.AggregateFuture$RunningState (Extension)
    ...
      -> com.google.common.graph.Traverser$TreeTraverser (Extension)
       -> com.google.common.io.Files$3 (Extension)
        -> ❌ com.google.common.io.Files (Vulnerable Component)

Vulnerability Details

A temp directory creation vulnerability exists in Guava prior to version 32.0.0 allowing an attacker with access to the machine to potentially access data in a temporary directory created by the Guava com.google.common.io.Files.createTempDir(). The permissions granted to the directory created default to the standard unix-like /tmp ones, leaving the files open. Maintainers recommend explicitly changing the permissions after the creation of the directory, or removing uses of the vulnerable method.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2020-12-10

URL: CVE-2020-8908

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.0%

CVSS 3 Score Details (3.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: None
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-5mg8-w23w-74h3

Release Date: 2020-12-10

Fix Resolution (com.google.guava:guava): 32.0.0-android

Direct dependency fix Resolution (ca.uhn.hapi.fhir:hapi-fhir-base): 5.0.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2024-47554

Vulnerable Library - commons-io-2.6.jar

The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.

Library home page: https://www.apache.org/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar

Dependency Hierarchy:

  • hapi-fhir-base-4.1.0.jar (Root Library)
    • commons-io-2.6.jar (Vulnerable Library)

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

Uncontrolled Resource Consumption vulnerability in Apache Commons IO.
The org.apache.commons.io.input.XmlStreamReader class may excessively consume CPU resources when processing maliciously crafted input.
This issue affects Apache Commons IO: from 2.0 before 2.14.0.
Users are recommended to upgrade to version 2.14.0 or later, which fixes the issue.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2024-10-03

URL: CVE-2024-47554

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.2%

CVSS 3 Score Details (4.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://lists.apache.org/thread/6ozr91rr9cj5lm0zyhv30bsp317hk5z1

Release Date: 2024-10-03

Fix Resolution (commons-io:commons-io): 2.14.0

Direct dependency fix Resolution (ca.uhn.hapi.fhir:hapi-fhir-base): 5.0.0

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions