VYPR
Unrated severityOSV Advisory· Published Apr 24, 2019· Updated Aug 4, 2024

CVE-2019-10691

CVE-2019-10691

Description

Invalid UTF-8 sequences in usernames or email headers crash Dovecot's authentication service via JSON encoder assertion.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Invalid UTF-8 sequences in usernames or email headers crash Dovecot's authentication service via JSON encoder assertion.

Vulnerability

The JSON encoder in Dovecot versions 2.3.0 through 2.3.5.1 incorrectly asserts when processing invalid UTF-8 characters, leading to a crash. This affects the authentication service when auth policy is enabled [1][2]. It can also be triggered during OX push notification delivery if an email contains invalid UTF-8 in the From or Subject headers [2]. In version 2.2.x, malformed UTF-8 sequences are passed through without issue [2].

Exploitation

An unauthenticated remote attacker can repeatedly crash the Dovecot authentication process by attempting to authenticate with a username containing an invalid UTF-8 sequence, provided auth policy is enabled [2]. Additionally, if the OX push notification driver is enabled, an attacker can send an email with an invalid UTF-8 sequence in the From or Subject header to trigger a crash [2]. No special privileges or user interaction beyond sending a crafted request or email are required.

Impact

Successful exploitation causes a denial of service (DoS) by repeatedly crashing the authentication service, preventing legitimate users from authenticating [1][2]. The CVSS score is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) [2]. No information disclosure, privilege escalation, or remote code execution is reported.

Mitigation

The vulnerability is fixed in Dovecot version 2.3.5.2, released 2019-04-11 [1][2]. Users should upgrade to that version or later. If upgrading is not immediately possible, disabling auth policy or OX push notification driver may reduce exposure, but the vendor recommends upgrading [2]. The Gentoo advisory (GLSA 201908-29) also recommends upgrading to >=net-mail/dovecot-2.3.7.2 [4].

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

6

Patches

0

No patches discovered yet.

Vulnerability mechanics

Root cause

"The JSON encoder in Dovecot 2.3 assert-crashes when processing invalid UTF-8 sequences instead of handling them safely."

Attack vector

An attacker can repeatedly crash the Dovecot authentication process by attempting to log in with a username containing an invalid UTF-8 sequence [ref_id=1]. This requires that auth policy is enabled (auth_policy_server_url and auth_policy_hash_nonce must be configured) [ref_id=1]. The JSON encoder's assertion failure causes the authentication service to crash, and the attacker can sustain this to keep the service down [CWE-176] [ref_id=1].

Affected code

The vulnerability resides in the JSON encoder component of Dovecot 2.3.0 through 2.3.5.1 [ref_id=1]. The encoder incorrectly triggers an assertion failure when it encounters invalid UTF-8 sequences, rather than handling them gracefully [ref_id=1].

What the fix does

The vendor fixed the issue in Dovecot version 2.3.5.2 [ref_id=1]. The advisory does not include a patch diff, but the solution is to update to the latest patch release or disable auth policy support [ref_id=2]. The fix ensures the JSON encoder no longer assert-crashes on invalid UTF-8 input, instead handling such sequences safely [ref_id=1].

Preconditions

  • configAuth policy must be enabled (auth_policy_server_url and auth_policy_hash_nonce configured)
  • networkAttacker must be able to initiate authentication attempts against the Dovecot server
  • authNo authentication required — attacker can be unauthenticated
  • inputUsername must contain an invalid UTF-8 sequence

Reproduction

Configure Dovecot with auth_policy_server_url and auth_policy_hash_nonce set. Attempt to log in with a username containing an invalid UTF-8 sequence. Observe the assert-crash in Dovecot logs [ref_id=1] [ref_id=2].

Generated on May 25, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.