# CVE-2023-31139: DHIS2 Core unrestricted session cookies with Personal Access Tokens

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2023-05-09T14:27:22.658Z
- Modified: 2026-06-17T05:56:21.820Z
- Weaknesses: CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dhis2 dhis2-core: >= 2.37, < 2.37.9.1; >= 2.38, < 2.38.3.1; >= 2.39, < 2.39.1.2
- dhis2 dhis_2: 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

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/dhis2/dhis2-core/security/advisories/GHSA-44g3-9mp4-prv3> (third-party-advisory)
- <https://github.com/dhis2/dhis2-releases/blob/master/releases/2.37/ReleaseNote-2.37.9.1.md> (release-notes)
- <https://github.com/dhis2/dhis2-releases/blob/master/releases/2.38/ReleaseNote-2.38.3.1.md> (release-notes)
- <https://github.com/dhis2/dhis2-releases/blob/master/releases/2.39/ReleaseNote-2.39.1.2.md> (release-notes)

## Sources

- CVE List: [CVE-2023-31139](https://www.cve.org/CVERecord?id=CVE-2023-31139), CVE Terms of Use, modified 2025-01-28
- NVD: [CVE-2023-31139](https://nvd.nist.gov/vuln/detail/CVE-2023-31139), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31139 · Whole record: https://cve.day/CVE-2023-31139.json · Rebuilt by cve.day 2026-11-25T22:58:24.005Z
