DHIS2 Security Hotfix Releases: 43.2.1, 42.7.1, and 41.10.1 (also v40-EOS and v39-EOS)

DHIS2 Security Hotfix Releases: 43.2.1, 42.7.1, and 41.10.1 (also v40-EOS and v39-EOS)

Published: 2026-10-28 Type: Security hotfix Affected major lines: 43, 42, 41, 40, 39

Upgrade as soon as possible

The DHIS2 team has released hotfix versions 43.2.1, 42.7.1, and 41.10.1. These are security-focused releases, and we strongly recommend that all instances upgrade as soon as possible.

Patches are also available for v40 and v39 as “End of Support” builds. But please note: the EOS patches are provided as a stop-gap; they are not as complete as the other fixes and are intended to provide some protection for implementations that cannot upgrade to supported versions quickly.

Security content

These releases fix six security vulnerabilities: one rated Critical, four rated High, and one Medium. Three issues require users with a granted special authority - none require superuser privileges - so no instance should consider itself exempt, including internal or closed instances.

To allow administrators time to patch, technical details are not included in this note. If you cannot upgrade promptly, contact security@dhis2.org for interim mitigations.

CVE identifiers will be published in due course, and this note will be updated to reference them.

Instances running versions that are no longer supported should plan an upgrade to a supported line, as older versions may be affected by these and other known issues.

We are not aware of any active exploitation of these issues at the time of publication.

Notable changes: two features disabled by default

As part of the security hardening in these releases, the following features are now disabled by default. If your instance uses either of them, follow the instructions below before re-enabling.

JasperReports report designs

Reports that rely on JasperReports designs are no longer rendered. Reports using other design formats (such as HTML) are unaffected.

If your instance uses these reports: first review reports that were created or modified recently, especially by non-administrator users, and remove any you do not recognise. Then re-enable the feature by setting jasper.reports.enabled = on in dhis.conf. When enabled, creating or modifying reports with Jasper designs now requires superuser rights.

Analytics table hooks

Stored hooks no longer run after upgrading.

If your instance uses analytics table hooks: review your stored hooks (for example via GET /api/analyticsTableHooks?fields=*) and delete any you did not create, then re-enable the feature by setting analytics.table_hooks.enabled = on in dhis.conf. When enabled, hooks can now only be created and modified by superusers.

Apart from the changes above, these releases contain no other functional changes.

Upgrading

Security hygiene recommendations

We encourage all implementers to review standard security posture on their instances:

  • Review your user roles and the authorities they grant, and ensure powerful authorities are held only by trusted system administrators.

  • Review recently created users and roles, including membership of superuser and other administrative roles, and remove anything you do not recognise.

  • Ensure the PostgreSQL account used by DHIS2 follows the principle of least privilege (it should not, for example, be a database superuser).

  • If user self-registration is enabled but not needed, disable it, and review dormant or shared accounts.

Credits and reporting

We thank the security researchers and community members who reported these issues responsibly.

Potential security vulnerabilities can be reported to security@dhis2.org.

Kind regards,
DHIS2 Security Team

4 Likes

Please note the following additional guidance from the DHIS2 Core Development Team:

DHIS2 2.41.10.1, 2.42.7.1 and 2.43.2.1 security hotfixes: installation guide

October 2026

These hotfixes fix six security vulnerabilities in the supported versions of DHIS2. Install them as soon as you can. Some fixes change how the API behaves; section 5 lists the changes that can affect integrations.

If you run 2.40 or 2.39, use the separate EOS installation guide instead.

1. Downloads

2.43 2.42 2.41
WAR https://releases.dhis2.org/43/dhis2-stable-43.2.1.war https://releases.dhis2.org/42/dhis2-stable-42.7.1.war https://releases.dhis2.org/41/dhis2-stable-41.10.1.war
Docker dhis2/core:2.43.2.1 dhis2/core:2.42.7.1 dhis2/core:2.41.10.1
Upgrade from 2.43.2 2.42.7 2.41.10
Java 17 17 17

If you are on an older patch of the same version (for example 2.43.1), first upgrade to the patch listed above, then install the hotfix.

2. Check that you have the right build

After start-up, check About DHIS2 or /api/system/info:

Version Revision
2.43 2.43.2.1 2003187
2.42 2.42.7.1 324e71c
2.41 2.41.10.1 7fa70c5

3. Before you install

  1. Back up the database and the filestore.
  2. Stop all DHIS2 application nodes. Do not run the old and new versions against the same database at the same time.
  3. Test on a copy of production first if you can.

No database migration is added by these hotfixes. A normal restart is enough; no maintenance window is needed beyond that.

4. Two features are now off by default

Feature Setting in dhis.conf
JasperReports report designs jasper.reports.enabled
Analytics table hooks analytics.table_hooks.enabled

After the upgrade, reports that use a Jasper design are not shown, and stored analytics table hooks are skipped. HTML reports are not affected.

If you use either feature, first review what is stored and delete any Jasper report or analytics table hook you do not recognise, especially ones created or changed by non-administrators. Then set the setting to on and restart. Once enabled, only superusers can create or change Jasper designs and analytics table hooks.

5. API changes that can affect integrations

Most installations need no changes. Check your scripts and integrations for the following. They apply to all three versions.

Change What to do
/api/audits/dataValue returns only the data the user is allowed to read, and no longer includes totals unless you add totalPages=true. Very large or very deep reads by non-superusers are refused (409 E2051, 409 E2052), and reads are stopped after 30 seconds (changelog.aggregate.query.timeout in dhis.conf). Add totalPages=true where you need totals; page through large results.
A user who is not allowed to read a file now gets 403 E1006 when downloading it (/api/fileResources/{uid}/data, /api/audits/files/{uid}). Nothing, unless a script relied on downloading other users’ files.
User roles: a user administrator can no longer grant a role, or add an authority to a role, that they do not hold themselves (409 E3003). Run user-administration scripts with an account that holds the authorities it hands out.

6. If you need to roll back

Rolling back removes the security fixes again. Only do it as a temporary measure.

Because these hotfixes add no database migration, you can return to the previous patch (2.43.2, 2.42.7 or 2.41.10) directly. No database changes are needed. Restoring your pre-upgrade backup works too.

7. Help

  • Cannot upgrade soon? Contact security@dhis2.org for interim mitigations.
  • Problems with a hotfix: post on the community forum and include the version and the revision shown in About DHIS2.
  • Report security issues to security@dhis2.org.

And for the EOS releases, please note the following installation guidance from the DHIS2 Core Development Team:

DHIS2 2.40 and 2.39 End-of-Support security builds: installation guide

October 2026

DHIS2 2.40 and 2.39 are no longer supported, but many instances still run them. To protect those instances, we have published End-of-Support (EOS) builds that contain the security fixes from this release. Install them as soon as you can, and plan an upgrade to a supported version (2.41 or later).

1. Downloads

2.40 2.39
WAR https://releases.dhis2.org/2.40/dhis2-stable-2.40-eos.war https://releases.dhis2.org/2.39/dhis2-stable-2.39-eos.war
Docker dhis2/core:2.40-eos dhis2/core:2.39-eos
You must be on 2.40.12 2.39.10.1, or the June 2026 2.39 EOS build
Java / Tomcat Java 11, Tomcat 9 Java 11, Tomcat 9

2. Check that you have the right build

EOS builds show a SNAPSHOT version (2.40.13-SNAPSHOT, 2.39.11-SNAPSHOT), and the June and October 2.39 builds show the same version. Check the revision instead, under About DHIS2 or at /api/system/info:

Revision of the October build
2.40 0fbab6a
2.39 967fd16

The download links and Docker tags are reused for later EOS builds. Keep the checksum of the WAR you installed, or deploy the Docker image by digest.

3. Before you install

  1. Back up the database and the filestore.
  2. Stop all DHIS2 application nodes. Do not run the old and new builds against the same database at the same time.
  3. Test on a copy of production first if you can.

2.40 only: plan a maintenance window

On first start, 2.40 runs one database migration. It adds an index to the tracker event table and blocks writes to that table while it runs. On small databases this takes seconds; on large tracker databases it can take much longer.

  • Pause tracker data entry, Android sync, imports and integrations before you start.
  • Make sure the database has free disk space for one more index on the event table.
  • Wait until DHIS2 has finished starting before you reopen access.

2.39 has no database migration.

4. Two features are now off by default

Feature Setting in dhis.conf
JasperReports report designs jasper.reports.enabled
Analytics table hooks analytics.table_hooks.enabled

After the upgrade, reports that use a Jasper design are not shown, and stored analytics table hooks are skipped. HTML reports are not affected.

If you use either feature, first review what is stored and delete any Jasper report or analytics table hook you do not recognise, especially ones created or changed by non-administrators. Then set the setting to on and restart. Once enabled, only superusers can create or change Jasper designs and analytics table hooks.

5. API changes that can affect integrations

Most installations need no changes. Check your scripts and integrations for the following.

Both 2.40 and 2.39:

Change What to do
Legacy JSON PATCH (not JSON Patch) of reports, analytics table hooks and user roles is refused with 409. On users, a legacy PATCH that changes roles, user groups or organisation units is refused too. Use PUT, or JSON Patch (Content-Type: application/json-patch+json).
/api/audits/dataValue returns only the data the user is allowed to read, and no longer includes totals unless you add totalPages=true. Very large or very deep reads by non-superusers are refused, and reads are stopped after 30 seconds (changelog.aggregate.query.timeout in dhis.conf). Add totalPages=true where you need totals; page through large results.
A user who is not allowed to read a file now gets 401 when downloading it. (Supported versions return 403.) Nothing, unless a script relied on downloading other users’ files.

2.39 only, if you are coming from 2.39.10.1 (not from the June EOS build):

Change What to do
API tokens are accepted only in the Authorization header, not as a URL or form parameter. Send Authorization: ApiToken <token>.
Metadata import no longer accepts the parameters that override the importing user (userOverrideMode, overrideUser). Remove them from import scripts.

6. If you need to roll back

Rolling back removes the security fixes again. Only do it as a temporary measure.

2.39: return to your previous build. No database changes are needed.

2.40: 2.40.12 will not start on a database that the EOS build has already upgraded. The log shows Detected applied migration not resolved locally: 2.40.35. To roll back:

  1. Stop all DHIS2 application nodes.
  2. Run this in the DHIS2 database (it must report DELETE 1):
    DELETE FROM flyway_schema_history
    WHERE version = '2.40.35'
      AND script = '2.40/V2_40_35__add_composite_index_psi_ou_occurreddate.sql'
      AND checksum = 904049852;
    
  3. Start 2.40.12. Do not remove the new index; 2.40.12 works with it.

Restoring your pre-upgrade backup works too.

7. What EOS means for you

  • EOS builds receive selected security fixes only: no bug fixes, no new features, no regular updates.
  • They were built and tested on our automated pipeline, but did not go through the full QA cycle of a supported release.
  • Supported versions (2.41 and later) include security improvements that cannot be added to 2.40 and 2.39. An EOS build closes the vulnerabilities in this release, but it is not as well protected as a supported version. Plan your upgrade.

8. Help

  • Cannot upgrade soon? Contact security@dhis2.org for interim mitigations.
  • Problems with an EOS build: post on the community forum and include the version line (2.40 or 2.39) and the revision shown in About DHIS2.
  • Report security issues to security@dhis2.org.