What’s Vulnerable › Vulnerabilities
CVE-2023-31139: DHIS2 Core unrestricted session cookies with Personal Access Tokens
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-05-09 · updated 2026-06-17
- Weakness: CWE-613
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.
Affected products
- dhis2-core: from 2.37.0 before 2.37.9.1; from 2.38.0 before 2.38.3.1; from 2.39.0 before 2.39.1.2 — fixed in 2.37.9.1, 2.38.3.1, 2.39.1.2
How to fix
Upgrade to a fixed version: dhis2-core 2.37.9.1, 2.38.3.1, 2.39.1.2. Check the vendor advisory for mitigations.
References
- https://github.com/dhis2/dhis2-core/security/advisories/GHSA-44g3-9mp4-prv3
- https://github.com/dhis2/dhis2-releases/blob/master/releases/2.37/ReleaseNote-2.37.9.1.md
- https://github.com/dhis2/dhis2-releases/blob/master/releases/2.38/ReleaseNote-2.38.3.1.md
- https://github.com/dhis2/dhis2-releases/blob/master/releases/2.39/ReleaseNote-2.39.1.2.md
- https://github.com/dhis2/dhis2-core/security/advisories/GHSA-44g3-9mp4-prv3
- https://github.com/dhis2/dhis2-releases/blob/master/releases/2.37/ReleaseNote-2.37.9.1.md
- https://github.com/dhis2/dhis2-releases/blob/master/releases/2.38/ReleaseNote-2.38.3.1.md
- https://github.com/dhis2/dhis2-releases/blob/master/releases/2.39/ReleaseNote-2.39.1.2.md
Get alerted when CVE-2023-31139 or the next vulnerability affects your stack