DHIS2 Core unrestricted session cookies with Personal Access Tokens
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-613.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| dhis2 | dhis2-core | 2.37 to before 2.37.9.1; 2.38 to before 2.38.3.1; 2.39 to before 2.39.1.2 | 2.37.9.1, 2.38.3.1, 2.39.1.2 | Patch available | CNA |
- dhis2-core Vendordhis2 Affected 2.37 to before 2.37.9.1; 2.38 to before 2.38.3.1; 2.39 to before 2.39.1.2 Fixed in 2.37.9.1, 2.38.3.1, 2.39.1.2 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:* | 2.37.0 to before 2.37.9.1; 2.38.0 to before 2.38.3.1; 2.39.0 to before 2.39.1.2 | Vulnerable | dhis2 |
- cpe:2.3:a:dhis2:dhis_2:*:*:*:*:*:*:*:* Versions 2.37.0 to before 2.37.9.1; 2.38.0 to before 2.38.3.1; 2.39.0 to before 2.39.1.2 Vulnerable ·dhis2
Remediation
- Fix · CNA dhis2-core (dhis2) Fixed in 2.37.9.1, 2.38.3.1, 2.39.1.2
Timeline
- 2026-10-02 Threatist record created from CVE-2023-31139
- 2026-10-29 EPSS moved to the 50th–90th percentile
References
More dhis2 Dhis 2 vulnerabilities
- TI-2022-08660 SQL Injection in DHIS2's in OrgUnit program association CVSS 3.1HIGH 8.8
- TI-2021-16565 SQL Injection in DHIS2 Tracker API CVSS 3.1HIGH 8.8
- TI-2021-18026 SQL Injection in DHIS2 Tracker API CVSS 3.1HIGH 8.8
- TI-2021-12372 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in dhis2-core CVSS 3.1HIGH 8.8
- TI-2022-20289 Privilege Chaining with the user admin role in dhis2-core CVSS 3.1HIGH 7.2
- TI-2023-14848 DHIS2 Core vulnerable to Improper Access Control with PATCH requests CVSS 3.1HIGH 7.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences