Skip to main content
Vulnerability Database/CVE-2026-113599

CVE-2026-113599: Modoboa Authentication Bypass Vulnerability

CVE-2026-113599 is an insecure direct object reference flaw in Modoboa that allows authenticated users to manipulate auto-reply settings for other mailboxes. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-113599 Overview

CVE-2026-113599 is an Insecure Direct Object Reference (IDOR) vulnerability in Modoboa versions before 2.8.0 [CWE-639]. The flaw exists in the auto-reply API endpoint /api/v2/armessages/, which fails to verify that the submitted mbox value belongs to the authenticated user. Any authenticated Modoboa user can create or modify auto-reply messages for mailboxes owned by other users. Attackers can inject arbitrary auto-reply subjects and content into victim accounts or trigger MultipleObjectsReturned errors that break legitimate auto-reply management.

Critical Impact

Authenticated users can tamper with any other user's auto-reply configuration, enabling impersonation, phishing content injection, and denial of auto-reply functionality for the victim.

Affected Products

  • Modoboa mail hosting platform versions prior to 2.8.0
  • Modoboa autoreply module API v2 (/api/v2/armessages/)
  • Deployments exposing authenticated Modoboa API access to users

Discovery Timeline

  • 2026-10-20 - CVE-2026-113599 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-113599

Vulnerability Analysis

Modoboa is an open-source mail hosting and administration platform. The autoreply application exposes a REST endpoint at /api/v2/armessages/ for managing per-mailbox auto-responder messages. The serializer backing this endpoint accepted a user-supplied mbox field without checking whether the authenticated user actually owned that mailbox.

An authenticated attacker can POST a JSON body referencing a victim's mailbox identifier. The server persists the auto-reply with attacker-controlled subject, content, fromdate, and untildate values. Victims may unknowingly send phishing-tinged responses or marketing text to anyone emailing them. Repeated submissions can also cause Django to raise MultipleObjectsReturned, breaking the victim's ability to view or edit their own auto-reply through the standard interface.

Root Cause

The ARmessageSerializer in modoboa/autoreply/api/v2/serializers.py declared fields = "__all__" and provided no validate_mbox method. Ownership of the referenced mailbox was never enforced at serializer or viewset level. A related issue existed in modoboa/admin/api/v2/viewsets.py, where bulk alarm deletion used the unfiltered models.Alarm.objects queryset instead of self.get_queryset().

Attack Vector

Exploitation requires only a valid Modoboa account and network access to the API. The attacker enumerates or guesses a target mbox primary key, then issues a single POST request. No elevated privileges, user interaction, or administrative role is required.

python
# Patch excerpt - modoboa/autoreply/api/v2/serializers.py
        model = models.ARmessage
        fields = "__all__"

+    def validate_mbox(self, value):
+        user = self.context["request"].user
+        if user.mailbox != value:
+            raise serializers.ValidationError(
+                _("You don't have ownership on this mailbox")
+            )
+        return value

    def validate(self, data):
        """Check dates."""
        if not data.get("fromdate"):

Source: Modoboa commit e0a4e3b

python
# Patch excerpt - modoboa/admin/api/v2/viewsets.py (related IDOR fix)
        """Delete multiple alarms at the same time."""
        serializer = self.get_serializer(data=request.data)
        serializer.is_valid(raise_exception=True)
-        models.Alarm.objects.filter(pk__in=serializer.validated_data["ids"]).delete()
+        self.get_queryset().filter(pk__in=serializer.validated_data["ids"]).delete()
        return response.Response(status=204)

Source: Modoboa commit e0a4e3b

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-113599

Indicators of Compromise

  • POST requests to /api/v2/armessages/ where the authenticated user's mailbox does not match the submitted mbox field.
  • Auto-reply records in the autoreply_armessage table whose mbox_id is associated with a different owning user than the account that created the record.
  • Application logs showing MultipleObjectsReturned exceptions raised from the autoreply module.
  • Unexpected changes to subject, content, fromdate, or untildate on existing user auto-replies.

Detection Strategies

  • Audit Modoboa webserver access logs for POST /api/v2/armessages/ activity and correlate the authenticated session with the mailbox referenced in the request body.
  • Query the Modoboa database to identify auto-reply rows whose mbox owner differs from the account history that created or last modified them.
  • Alert on bursts of 4xx or 5xx responses from the autoreply API endpoint, which may indicate enumeration of mbox identifiers.

Monitoring Recommendations

  • Forward Modoboa and reverse-proxy logs to a centralized logging platform and build detections for IDOR patterns on API v2 endpoints.
  • Baseline normal auto-reply creation volume per user and flag outliers that create records referencing multiple distinct mailboxes.
  • Monitor Django error reporting for recurring MultipleObjectsReturned tracebacks within the modoboa.autoreply module.

How to Mitigate CVE-2026-113599

Immediate Actions Required

  • Upgrade Modoboa to version 2.8.0 or later, which introduces the validate_mbox ownership check.
  • Review all existing ARmessage records and remove any auto-replies whose creator does not match the mailbox owner.
  • Rotate credentials for low-trust Modoboa accounts if logs show evidence of abuse against the auto-reply API.
  • Notify affected mailbox owners if attacker-controlled content was found in their auto-reply configuration.

Patch Information

The fix is included in Modoboa release 2.8.0 and tracked in Modoboa issue #3945. The upstream commit e0a4e3b adds serializer-level ownership validation for mbox and tightens the admin alarm bulk-delete queryset. See the VulnCheck advisory for additional context.

Workarounds

  • Restrict access to /api/v2/armessages/ at the reverse proxy to trusted administrative networks until the upgrade is deployed.
  • Temporarily disable the autoreply feature for end users by removing the module from the active Modoboa configuration.
  • Apply the serializer patch from commit e0a4e3b as an out-of-band hotfix if an immediate full upgrade is not feasible.
bash
# Upgrade Modoboa to the patched release
pip install --upgrade "modoboa>=2.8.0"

# Apply database migrations and restart services
modoboa-admin.py migrate
systemctl restart modoboa uwsgi nginx

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.