Vulnerabilities

7 via 16 paths

Dependencies

274

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 7
  • 5
Severity
  • 6
  • 6
Status
  • 12
  • 0
  • 0

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.mchange:c3p0
  • Introduced through: org.hibernate.orm:hibernate-c3p0@8.0.0.Alpha1

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.hibernate.orm:hibernate-c3p0@8.0.0.Alpha1 com.mchange:c3p0@0.11.2

Overview

com.mchange:c3p0 is a mature, highly concurrent JDBC Connection pooling library, with support for caching and reuse of PreparedStatements.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data via the userOverridesAsString property of ConnectionPoolDataSource class. An attacker can achieve arbitrary code execution by supplying maliciously crafted serialized objects or javax.naming.Reference instances that trigger unsafe deserialization and remote code loading.

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.mchange:c3p0 to version 0.12.0 or higher.

References

high severity

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • Vulnerable module: com.mchange:mchange-commons-java
  • Introduced through: org.hibernate.orm:hibernate-c3p0@8.0.0.Alpha1

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.hibernate.orm:hibernate-c3p0@8.0.0.Alpha1 com.mchange:c3p0@0.11.2 com.mchange:mchange-commons-java@0.3.2

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via the factoryClassLocation function. An attacker can achieve arbitrary code execution by provoking the application to read a maliciously crafted javax.naming.Reference or serialized object, resulting in the download and execution of malicious code.

Remediation

Upgrade com.mchange:mchange-commons-java to version 0.4.0 or higher.

References

high severity

XML External Entity (XXE) Injection

  • Vulnerable module: org.assertj:assertj-core
  • Introduced through: org.infinispan:infinispan-jboss-marshalling@16.0.0.Dev04 and org.infinispan:infinispan-spring6-embedded@16.2.0.Dev02

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.infinispan:infinispan-jboss-marshalling@16.0.0.Dev04 org.infinispan:infinispan-commons@16.0.0.Dev04 org.assertj:assertj-core@3.27.4
    Remediation: Upgrade to org.infinispan:infinispan-jboss-marshalling@16.0.0.Dev04.
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.infinispan:infinispan-jboss-marshalling@16.0.0.Dev04 org.infinispan:infinispan-core@16.2.0.Dev02 org.infinispan:infinispan-commons@16.0.0.Dev04 org.assertj:assertj-core@3.27.4
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.infinispan:infinispan-jboss-marshalling@16.0.0.Dev04 org.infinispan:infinispan-core@16.2.0.Dev02 org.infinispan:infinispan-counter-api@16.2.0.Dev02 org.infinispan:infinispan-commons@16.0.0.Dev04 org.assertj:assertj-core@3.27.4
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.infinispan:infinispan-spring6-embedded@16.2.0.Dev02 org.infinispan:infinispan-spring-embedded@16.2.0.Dev02 org.infinispan:infinispan-core@16.2.0.Dev02 org.infinispan:infinispan-commons@16.0.0.Dev04 org.assertj:assertj-core@3.27.4
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.infinispan:infinispan-spring6-embedded@16.2.0.Dev02 org.infinispan:infinispan-spring-embedded@16.2.0.Dev02 org.infinispan:infinispan-spring-common@16.2.0.Dev02 org.infinispan:infinispan-commons@16.0.0.Dev04 org.assertj:assertj-core@3.27.4
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.infinispan:infinispan-spring6-embedded@16.2.0.Dev02 org.infinispan:infinispan-spring-embedded@16.2.0.Dev02 org.infinispan:infinispan-core@16.2.0.Dev02 org.infinispan:infinispan-counter-api@16.2.0.Dev02 org.infinispan:infinispan-commons@16.0.0.Dev04 org.assertj:assertj-core@3.27.4

Overview

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via the toXmlDocument function of XmlStringPrettyFormatter. An attacker can read arbitrary local files, perform server-side request forgery, or cause denial of service by providing crafted XML input containing external entities.

Note: This formatter is used by isXmlEqualTo(CharSequence) and xmlPrettyFormat(String) and could be exploited if untrusted XML input is processed by the methods.

Workaround

Replace use of isXmlEqualTo(CharSequence) with XMLUnit.

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.assertj:assertj-core to version 3.27.7 or higher.

References

high severity
new

Improper Encoding or Escaping of Output

  • Vulnerable module: org.apache.logging.log4j:log4j-core
  • Introduced through: org.apache.logging.log4j:log4j-core@3.0.0-beta3 and org.apache.logging.log4j:log4j-slf4j-impl@3.0.0-beta2

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.apache.logging.log4j:log4j-core@3.0.0-beta3
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.apache.logging.log4j:log4j-slf4j-impl@3.0.0-beta2 org.apache.logging.log4j:log4j-core@3.0.0-beta3

Overview

org.apache.logging.log4j:log4j-core is a logging library for Java.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the XmlLayout plugin. An attacker can cause log events to be silently lost or malformed by injecting XML 1.0 forbidden characters into log messages or MDC values. This may result in malformed XML output, which can cause downstream log-processing systems to drop affected records or prevent log events from being delivered to their intended destinations.

Remediation

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

References

high severity
new

Improper Output Neutralization for Logs

  • Vulnerable module: org.apache.logging.log4j:log4j-core
  • Introduced through: org.apache.logging.log4j:log4j-core@3.0.0-beta3 and org.apache.logging.log4j:log4j-slf4j-impl@3.0.0-beta2

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.apache.logging.log4j:log4j-core@3.0.0-beta3
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.apache.logging.log4j:log4j-slf4j-impl@3.0.0-beta2 org.apache.logging.log4j:log4j-core@3.0.0-beta3

Overview

org.apache.logging.log4j:log4j-core is a logging library for Java.

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs in the Rfc5424Layout plugin due to newLineEscape and useTlsMessageFormat configuration attributes being silently renamed, leading to improper handling of newline escaping for TCP framing and incorrect message formatting for TLS framing. An attacker can inject arbitrary log entries by supplying crafted CRLF sequences in log messages, potentially manipulating log output or bypassing log-based security controls.

Note:

This is only exploitable if the Rfc5424Layout is configured directly with affected attributes in stream-based syslog services.

Users of the SyslogAppender are not affected, as its configuration attributes were not modified.

Remediation

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

References

high severity
new

GPL-2.0 license

  • Module: com.mysql:mysql-connector-j
  • Introduced through: com.mysql:mysql-connector-j@9.7.0

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core com.mysql:mysql-connector-j@9.7.0

GPL-2.0 license

medium severity
new

Improper Encoding or Escaping of Output

  • Vulnerable module: org.apache.logging.log4j:log4j-core
  • Introduced through: org.apache.logging.log4j:log4j-core@3.0.0-beta3 and org.apache.logging.log4j:log4j-slf4j-impl@3.0.0-beta2

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.apache.logging.log4j:log4j-core@3.0.0-beta3
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.apache.logging.log4j:log4j-slf4j-impl@3.0.0-beta2 org.apache.logging.log4j:log4j-core@3.0.0-beta3

Overview

org.apache.logging.log4j:log4j-core is a logging library for Java.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the Log4j1XmlLayout plugin. An attacker can cause log events to be silently lost or downstream log processing systems to drop or fail to index affected records by introducing XML 1.0 forbidden characters into log messages, resulting in malformed XML output that conforming XML parsers reject with a fatal error.

Remediation

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

References

medium severity
new

Improper Validation of Certificate with Host Mismatch

  • Vulnerable module: org.apache.logging.log4j:log4j-core
  • Introduced through: org.apache.logging.log4j:log4j-core@3.0.0-beta3 and org.apache.logging.log4j:log4j-slf4j-impl@3.0.0-beta2

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.apache.logging.log4j:log4j-core@3.0.0-beta3
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.apache.logging.log4j:log4j-slf4j-impl@3.0.0-beta2 org.apache.logging.log4j:log4j-core@3.0.0-beta3

Overview

org.apache.logging.log4j:log4j-core is a logging library for Java.

Affected versions of this package are vulnerable to Improper Validation of Certificate with Host Mismatch due to the lack of TLS hostname verification in the SocketAppender component when configured through the verifyHostName attribute of the <Ssl> element. An attacker can intercept and manipulate network traffic by presenting a certificate issued by a trusted certificate authority to the appender's configured trust store, or the default Java trust store if none is configured. This is only exploitable if an SMTP, Socket, or Syslog appender is in use and TLS is configured via a nested element.

Note:

This issue is due to incomplete fix for CVE-2025-68161.

Remediation

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

References

medium severity
new

Dual license: EPL-1.0, LGPL-2.1

  • Module: com.mchange:c3p0
  • Introduced through: org.hibernate.orm:hibernate-c3p0@8.0.0.Alpha1

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.hibernate.orm:hibernate-c3p0@8.0.0.Alpha1 com.mchange:c3p0@0.11.2

Dual license: EPL-1.0, LGPL-2.1

medium severity
new

Dual license: EPL-1.0, LGPL-2.1

  • Module: com.mchange:mchange-commons-java
  • Introduced through: org.hibernate.orm:hibernate-c3p0@8.0.0.Alpha1

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.hibernate.orm:hibernate-c3p0@8.0.0.Alpha1 com.mchange:c3p0@0.11.2 com.mchange:mchange-commons-java@0.3.2

Dual license: EPL-1.0, LGPL-2.1

medium severity
new

LGPL-3.0 license

  • Module: org.jobrunr:jobrunr
  • Introduced through: org.jobrunr:jobrunr@8.5.2

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.jobrunr:jobrunr@8.5.2

LGPL-3.0 license

medium severity
new

LGPL-2.1 license

  • Module: org.mariadb.jdbc:mariadb-java-client
  • Introduced through: org.mariadb.jdbc:mariadb-java-client@3.5.8

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core org.mariadb.jdbc:mariadb-java-client@3.5.8

LGPL-2.1 license