CyberSecBulletin
CVE-2023-31139NVD status: Modified

DHIS2 Core contains the service layer and Web API for DHIS2, an information system for data…

CVE-2023-31139 is a high-severity vulnerability in dhis2-core from Dhis2, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected dhis2-core versions: >= 2.37, < 2.37.9.1; >= 2.38, < 2.38.3.1; >= 2.39, < 2.39.1.2. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.63% chance of exploitation within 30 days, higher than 51% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Dhis 2 to 2.37.9.1 or 2.38.3.1 or 2.39.1.2, whichever matches your release line, or a later version.
  2. Read the advisory on github.com for workarounds and exact fixed builds.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
Dhis2dhis2-core>= 2.37, < 2.37.9.1; >= 2.38, < 2.38.3.1; >= 2.39, < 2.39.1.2Not stated
Dhis2Dhis 22.37.0 up to, but not including, 2.37.9.1; 2.38.0 up to, but not including, 2.38.3.1; 2.39.0 up to, but not including, 2.39.1.22.37.9.1, 2.38.3.1, 2.39.1.2

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
NoneNothing can be modified.
Availability
NoneAvailability is not affected.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.14.3MediumCNA (github.com)
CVSS 3.17.5HighNVD

Official description

DHIS2 Core contains the service layer and Web API for DHIS2, an information system for data capture. Starting in the 2.37 branch and prior to versions 2.37.9.1, 2.38.3.1, and 2.39.1.2, Personal Access Tokens (PATs) generate unrestricted session cookies. This may lead to a bypass of other access restrictions (for example, based on allowed IP addresses or HTTP methods). DHIS2 implementers should upgrade to a supported version of DHIS2: 2.37.9.1, 2.38.3.1, or 2.39.1.2. Implementers can work around this issue by adding extra access control validations on a reverse proxy.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in dhis2-core

All dhis2-core vulnerabilities

Spotted an error? Tell us.