Vulnerabilities

2 via 6 paths

Dependencies

61

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 1
Status
  • 2
  • 0
  • 0

high severity

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

  • Vulnerable module: commons-beanutils:commons-beanutils
  • Introduced through: org.apache.velocity.tools:velocity-tools-generic@3.1

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core › org.apache.velocity.tools:velocity-tools-generic@3.1 › commons-beanutils:commons-beanutils@1.9.4
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core › org.apache.velocity.tools:velocity-tools-generic@3.1 › org.apache.commons:commons-digester3@3.2 › commons-beanutils:commons-beanutils@1.9.4

Overview

commons-beanutils:commons-beanutils is a provides an easy-to-use but flexible wrapper around reflection and introspection.

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') via the getProperty and getNestedProperty methods of the PropertyUtilsBean class. An attacker can execute arbitrary code by accessing the declaredClass property of Java enum objects, which allows access to the ClassLoader.

Note:

The BeanIntrospector class that can mitigate this vulnerability was added in version 1.9.2 but its usage was not enabled by default.

Remediation

Upgrade commons-beanutils:commons-beanutils to version 1.11.0 or higher.

References

low severity
new

Symbolic Name not Mapping to Correct Object

  • Vulnerable module: org.objenesis:objenesis
  • Introduced through: org.owasp:csrfguard@4.5.0-jakarta and org.owasp:csrfguard-extension-session@4.5.0-jakarta

Detailed paths

  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core › org.owasp:csrfguard@4.5.0-jakarta › org.mockito:mockito-inline@4.11.0 › org.mockito:mockito-core@4.11.0 › org.objenesis:objenesis@3.3
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core › org.owasp:csrfguard@4.5.0-jakarta › org.mockito:mockito-junit-jupiter@4.11.0 › org.mockito:mockito-core@4.11.0 › org.objenesis:objenesis@3.3
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core › org.owasp:csrfguard-extension-session@4.5.0-jakarta › org.owasp:csrfguard@4.5.0-jakarta › org.mockito:mockito-inline@4.11.0 › org.mockito:mockito-core@4.11.0 › org.objenesis:objenesis@3.3
  • Introduced through: openmrs/openmrs-core@openmrs/openmrs-core › org.owasp:csrfguard-extension-session@4.5.0-jakarta › org.owasp:csrfguard@4.5.0-jakarta › org.mockito:mockito-junit-jupiter@4.11.0 › org.mockito:mockito-core@4.11.0 › org.objenesis:objenesis@3.3

Overview

Affected versions of this package are vulnerable to Symbolic Name not Mapping to Correct Object through the getInstantiatorOf process. An attacker can cause objects from one class loader to be substituted into another by exploiting instantiator caching keyed on class name, potentially leading to unexpected behavior, data corruption, or application crashes by introducing wrong-class objects.

Remediation

Upgrade org.objenesis:objenesis to version 3.6 or higher.

References