CVE-2021-32704: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in dhis2-core

Published Jun 24, 2021
·
Updated

DHIS 2 is an information system for data capture, management, validation, analytics and visualization. A SQL injection security vulnerability has been found in specific versions of DHIS2. This vulnerability affects the /api/trackedEntityInstances API endpoint in DHIS2 versions 2.34.4, 2.35.2, 2.35.3, 2.35.4, and 2.36.0. Earlier versions, such as 2.34.3 and 2.35.1 and all versions 2.33 and older are unaffected. The system is vulnerable to attack only from users that are logged in to DHIS2, and there is no known way of exploiting the vulnerability without first being logged in as a DHIS2 user. A successful exploit of this vulnerability could allow the malicious user to read, edit and delete data in the DHIS2 instance. There are no known exploits of the security vulnerabilities addressed by these patch releases. However, we strongly recommend that all DHIS2 implementations using versions 2.34, 2.35 and 2.36 install these patches as soon as possible. There is no straightforward known workaround for DHIS2 instances using the Tracker functionality other than upgrading the affected DHIS2 server to one of the patches in which this vulnerability has been fixed. For implementations which do NOT use Tracker functionality, it may be possible to block all network access to POST to the /api/trackedEntityInstance endpoint as a temporary workaround while waiting to upgrade.

Affected Software

3 affected components
DHIS2 DHIS 2>=2.34.4<2.34.5
DHIS2 DHIS 2>=2.35.2<2.35.5
DHIS2 DHIS 2>=2.36.0<2.36.1

Event History

Jun 24, 2021
CVE Published
via MITRE·04:10 PM
Data Sourced
via MITRE·04:10 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2021-32704?

CVE-2021-32704 is considered a significant security risk due to its SQL injection vulnerability.

2

How do I fix CVE-2021-32704?

To fix CVE-2021-32704, upgrade DHIS2 to versions later than 2.34.5, 2.35.5, or 2.36.1 depending on your current version.

3

Which versions of DHIS2 are affected by CVE-2021-32704?

CVE-2021-32704 affects DHIS2 versions between 2.34.4 and 2.34.5, 2.35.2 and 2.35.5, as well as 2.36.0 and 2.36.1.

4

What components of DHIS2 does CVE-2021-32704 affect?

CVE-2021-32704 specifically affects the /api/trackedEntityInstances API endpoint in DHIS2.

5

Is CVE-2021-32704 remote exploit?

Yes, CVE-2021-32704 can be exploited remotely by sending crafted API requests.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203