Description
Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.4.19 and from 4.5.0 until 4.5.12, Mastodon's app/models/concerns/user/ldap_authenticable.rb mutates OpenSSL::SSL::SSLContext::DEFAULT_PARAMS when LDAP authentication uses LDAP_TLS_NO_VERIFY=true, disabling SSL and TLS certificate verification globally for requests made by puma web processes while sidekiq background jobs remain unaffected. This issue is fixed in versions 4.4.19 and 4.5.12.
Published: 2026-08-18
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises when LDAP authentication is configured with LDAP_TLS_NO_VERIFY, causing the application to alter the OpenSSL default SSL context settings. This alteration removes certificate verification for all HTTPS requests made by the Puma web server, while sidekiq background jobs remain unaffected. Attackers can thus perform man‑in‑the‑middle attacks against outbound connections or spoof certificates without detection, compromising confidentiality and possibly enabling credential theft or injection of malicious content into user sessions. The weakness corresponds to improper certificate validation vulnerabilities (CWE-295).

Affected Systems

Mastodon servers running any version of the open‑source social network from pre‑4.4.19 up to and including 4.5.12 are affected. The vulnerability occurs in the LDAP authentication concerns module, impacting the web process component. Versions 4.4.19 and 4.5.12 contain the fix and are not vulnerable.

Risk and Exploitability

The CVSS score of 7.4 indicates a high impact vulnerability. Although an EPSS score is not available, the vulnerability is exploited by modifying application settings or misconfiguring LDAP, which is a common operational scenario. The issue is not listed in the CISA KEV catalog, suggesting no active exploitation evidence yet. The likely attack vector involves an attacker gaining administrative privilege or manipulating LDAP configuration to set LDAP_TLS_NO_VERIFY, after which the application will tolerate invalid certificates and allow network attackers to intercept traffic. Given the severity and absence of mitigation by default, administrators should treat this as a high‑risk condition awaiting patch.

Generated by OpenCVE AI on August 18, 2026 at 16:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Mastodon to the latest stable release (4.4.19 or newer, or 4.5.12 or newer) where the SSL context is no longer altered.
  • If updating is not immediately possible, remove or set LDAP_TLS_NO_VERIFY to false in the LDAP configuration to prevent the global disabling of certificate verification.
  • After configuration changes, restart the Puma web processes to reload the proper SSL context settings.

Generated by OpenCVE AI on August 18, 2026 at 16:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Joinmastodon
Joinmastodon mastodon
Vendors & Products Joinmastodon
Joinmastodon mastodon

Tue, 18 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
Description Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.4.19 and from 4.5.0 until 4.5.12, Mastodon's app/models/concerns/user/ldap_authenticable.rb mutates OpenSSL::SSL::SSLContext::DEFAULT_PARAMS when LDAP authentication uses LDAP_TLS_NO_VERIFY=true, disabling SSL and TLS certificate verification globally for requests made by puma web processes while sidekiq background jobs remain unaffected. This issue is fixed in versions 4.4.19 and 4.5.12.
Title Mastodon: Unwanted deactivation of SSL/TLS certificate verification
Weaknesses CWE-295
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Joinmastodon Mastodon
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T15:51:15.337Z

Reserved: 2026-07-07T15:00:50.978Z

Link: CVE-2026-59825

cve-icon Vulnrichment

Updated: 2026-08-18T15:51:12.220Z

cve-icon NVD

Status : Received

Published: 2026-08-18T15:16:55.623

Modified: 2026-08-18T16:18:11.260

Link: CVE-2026-59825

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T21:18:42Z

Weaknesses
  • CWE-295

    Improper Certificate Validation