GHSA-vpxm-cr3r-pjp9

Suggest an improvement
Source
https://github.com/advisories/GHSA-vpxm-cr3r-pjp9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-vpxm-cr3r-pjp9/GHSA-vpxm-cr3r-pjp9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vpxm-cr3r-pjp9
Published
2025-01-30T17:50:52Z
Modified
2025-01-30T17:50:52Z
Summary
General OpenMRS Security Advisory, January 2025: Penetration Testing Results and Patches
Details

Impact

We recently underwent Penetration Testing of OpenMRS by a third-party company. Vulnerabilities were found, and fixes have been made and released. We've released security updates that include critical fixes, and so, we strongly recommend upgrading affected modules.

This notice applies to all OpenMRS instances. The testers used the OpenMRS v3 Reference Application (O3 RefApp); however, their findings highlighted modules commonly used in older OpenMRS applications, including the O2 RefApp.

Vulnerability Details

  • The issues uncovered included broken access control (e.g. inappropriate admin access), phishing vulnerability, and stored XSS (e.g. vulnerable passwords).
  • No vulnerabilities were found in the O3 frontend esm modules.
  • The Letter of Attestation from the penetration test is available here for your reference.
  • After the fixes were applied, the OpenMRS O3 RefApp met a Security Level of “Excellent, Grade A”.
  • The full detailed Remediation Pentest Report is available to Implementation Technical Leads upon request.

Patches

Minimum Requirements for Implementers: We strongly recommend upgrading your modules to the following versions (or greater) as soon as possible. This is the minimum amount to do and be protected from the vulnerabilities found and fixed. The following versions contain the patch:

  • Platform 2.6.11+
    • How: Increase your platform version number wherever this is specified in your implementation. If you use the OpenMRS SDK, this will be in the distro.properties file.
    • Notes:
      • The newly released Platform 2.7 also includes the fixes. Release Notes and more download options here.
      • Platform 2.6.8+ has most of the fixes, but these are broken if you don't use SSL, so Platform 2.6.11 or higher is preferred.
      • For those still on Platform 2.5+ such as the Bahmni ecosystem, the new 2.5.14 release includes the patch. Bahmni note: The upcoming patch release for both Bahmni Lite and Bahmni Standard will incorporate these security fixes.
  • Legacy UI OMOD 1.21.0+ (here)
  • ID Gen OMOD 4.14.0+ (here)
  • Address Hierarchy OMOD 2.19.0+ (here)
  • Attachments OMOD 3.6.0+ (here)
  • Patient Flags OMOD 3.0.8+ (here)

Workarounds

There are no practical workarounds to fix or remediate the vulnerabilities without upgrading. Technically, you could remove the affected OMODs, but this would badly degrade the system's functionality.

Thank you to our amazing Security contributors!

Thank you to security firm UnderDefense, and to the OpenMRS Security Group contributors for their patch support - specific thanks to Daniel Kayiwa, Samuel Lubwama, Ian Bacher, Rafal Korytkowski, and Michael Seaton.

Database specific
{
    "cwe_ids":  [
        "CWE-209",
        "CWE-284",
        "CWE-601",
        "CWE-614"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-01-30T17:50:52Z",
    "nvd_published_at":  null,
    "severity":  "CRITICAL"
}
References

Affected packages

Maven
org.openmrs:openmrs

Package

Name
org.openmrs:openmrs
View open source insights on deps.dev
Purl
pkg:maven/org.openmrs/openmrs

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.6.11

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-vpxm-cr3r-pjp9/GHSA-vpxm-cr3r-pjp9.json"
org.openmrs.module:legacyui

Package

Name
org.openmrs.module:legacyui
View open source insights on deps.dev
Purl
pkg:maven/org.openmrs.module/legacyui

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.21.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-vpxm-cr3r-pjp9/GHSA-vpxm-cr3r-pjp9.json"
org.openmrs.module:idgen

Package

Name
org.openmrs.module:idgen
View open source insights on deps.dev
Purl
pkg:maven/org.openmrs.module/idgen

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.14.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-vpxm-cr3r-pjp9/GHSA-vpxm-cr3r-pjp9.json"
org.openmrs.module:addresshierarchy

Package

Name
org.openmrs.module:addresshierarchy
View open source insights on deps.dev
Purl
pkg:maven/org.openmrs.module/addresshierarchy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.19.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-vpxm-cr3r-pjp9/GHSA-vpxm-cr3r-pjp9.json"
org.openmrs.module:attachments

Package

Name
org.openmrs.module:attachments
View open source insights on deps.dev
Purl
pkg:maven/org.openmrs.module/attachments

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.6.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-vpxm-cr3r-pjp9/GHSA-vpxm-cr3r-pjp9.json"
org.openmrs.module:patientflags

Package

Name
org.openmrs.module:patientflags
View open source insights on deps.dev
Purl
pkg:maven/org.openmrs.module/patientflags

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.0.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-vpxm-cr3r-pjp9/GHSA-vpxm-cr3r-pjp9.json"