Skip to content

SEPPmail Secure E-Mail Gateway wave (11 GHSAs): pre-auth SSTI, forgeable tokens, and LDAP injection

Wave in one line: SEPPmail Secure E-Mail Gateway before 15.1.2 ships a pre-authentication server-side template injection that reaches password reset, a source-visible hard-coded fallback secret that forges account tokens and decrypts large-file transfers, an unauthenticated world-writable socket where a root daemon accepts shell commands, and unescaped LDAP wildcards in both login identifiers and mail-rule filters.

Source: GitHub Security Advisory wave published 2026-11-26T15:31Z (CVE-2026-124836..124845 plus CVE-2026-130637, all fixed in 15.1.2, GHSA package version fields empty, band from vendor advisory). Related pages: Sept 20 app-auth forgery chains, Sept 16 IdP authority boundaries, July 30 URL-policy page.

SEPPmail SEG is an email-security appliance common in enterprise/government perimeters. The eleven records share one shape: the legacy GINA subsystem (registration, recovery, large-file transfer) kept its own trust assumptions after the GINAv2 hardening, and every boundary test that GINAv2 got, GINA lacks. When a product has a "legacy" component bolted beside the hardened one, the legacy component is the assessment target.

The eleven legs

  • Pre-authentication SSTI to account takeover (CVE-2026-130637 / GHSA-5pph-7rm4-335j, critical): unauthenticated server-side template injection discloses sensitive account information and resets account passwords. This is the headliner: an unauthenticated template sink on a mail gateway that feeds a password-reset flow.
  • Hard-coded fallback secret for GINA tokens and LFT (GHSA-wgxf-r47p-25mq / CVE-2026-124843, critical): when expected key material is unavailable or unusable, token signing and Large File Transfer encryption fall back to a source-visible shared constant. While the fallback path is active an attacker forges accepted account tokens and decrypts LFT content.
  • Broad session-purpose reuse across registration and recovery (GHSA-7fhr-9jwp-j366 / CVE-2026-124840, critical): a recovery session (knowing only an account security answer) is accepted by a different account workflow, letting the attacker replace credentials and recovery data and, where self-deletion is enabled, delete the account.
  • Stored account address interpolated into a root boot-job shell command (GHSA-rm45-88r2-p33p / CVE-2026-124839, high): an authenticated internal attacker who can prepare the account state, arrange for a migration marker to be absent, and cause a reboot gets arbitrary commands as root when the boot job runs.
  • Unauthenticated world-writable local config socket with root shell acceptance (GHSA-w9cc-crr4-2mgr / CVE-2026-124838, high): a local low-privilege process talks shell commands to a root daemon over this socket, so any local code execution becomes full appliance root.
  • Unauthenticated multipart uploads written before authentication, never cleaned up (GHSA-49fc-mhf2-8f76 / CVE-2026-124844, high): failed/unauthenticated requests persist files, exhausting the shared backing filesystem and taking down GINA plus co-located services.
  • Legacy routing header normalization merges tenant/policy selectors (GHSA-qrw2-p89c-rxj2 / CVE-2026-124845, medium): hyphenated and underscored forms of a trusted GINA routing header normalize to the same backend variable, creating a merged invalid selector that drops multi-domain deployments to the default domain policy.
  • Unescaped LDAP wildcards in GINA identifiers (GHSA-5hmp-mcjq-36j6 / CVE-2026-124841, medium): identifier values reach account/token/certificate/key lookup filters unescaped, altering which directory entry is selected and disclosing account existence.
  • Message-derived values inserted into mail-rule LDAP filters unescaped (GHSA-6xvm-8hxp-x5jq / CVE-2026-124836, medium): where a deployed rule uses attacker-controlled message data with ldap_compare/ldap_read, a remote sender alters the rule query, changing policy decisions or data returned to later rule processing.
  • Password reset replaces credentials without authenticating the requester (GHSA-mr6m-856g-pf8m / CVE-2026-124842, high): knowing the account address forces a reset when a configured admin or valid stored creator is present, revoking active API tokens; the replacement credential goes only to a pre-existing trusted recipient.
  • Insufficiently sanitized DKIM identity preserved into ARC seal (GHSA-9m4h-65wr-hm3m / CVE-2026-124837, medium): a remote sender injects authentication-result content that downstream systems trust through the ARC chain.

Durable rules

  1. Sweep every "legacy" subsystem name on an appliance beside the current one. GINA vs GINAv2 is the fingerprint: hardened v2 paths exist while legacy handlers keep unauthenticated writes, shared constants, and session-purpose reuse. Enumerate handler families by name variant (/gina, legacy, v1, product-specific names from the admin UI or JS bundles) and re-run the full authz battery on each; a patched CVE on the modern path says nothing about the legacy twin (genealogy: the Oct 9 Nginx UI missed-router leg and the incomplete-fix rule set).
  2. A fallback crypto path is a second authentication system. Anywhere code says "when key material is unavailable/unusable, use X," force the fallback (corrupt/expiry-trigger states where reachable) and test whether fallback constants are published, derived from static strings, or shared across tenants. The Oct 10 Gateway Fabric empty-keys fail-open and the Sept 21 mgmt-plane fail-open rules generalize: enumerate degraded-mode branches in auth code first, they are rarely tested.
  3. Cross-workflow session-purpose battery. For every low-trust entry that issues a session (recovery, registration, invite, LFT upload), attempt that session token against every privileged account consumer (credential change, recovery-data change, deletion). Sessions should carry an action class; if two workflows accept one session, that is the finding (login-code pre-seeding lineage on the IdP page).
  4. LDAP filter battery on identifier-shaped params and message-derived rule inputs. Per-parameter: *, ?, )(, (|, escaped-byte and DN-variant forms. The two-leg spread (login identifiers vs mail-rule inputs) proves the audit unit is every consumer of directory queries, not just the login form. Proof with a lab directory and canary DNs only.
  5. Identity fields copied into authentication results or ARC seals are injection targets. Inject canary attributes into DKIM/SPF-adjacent identity fields you control (own-domain mail) and inspect the received Authentication-Results and ARC chain on a lab downstream checker; misleading-but-trusted claims are reportable mail-federation findings.
  6. Stored-value-to-boot-job is a delayed-execution class. Low-privilege writes to any stored field (account address, hostname, contact) deserve the question "does init/cron/boot ever shell this string?" The three preconditions here (prepared state, absent marker, reboot) mean the class lands as post-auth/root-later, still a reportable chain; look for migration-marker idioms in firmware.
  7. Writes-before-auth are quota and forensics findings. Unauthenticated multipart persistence that survives the failed request gives an unauthenticated attacker a file-storage primitive; measure accumulation on your own lab appliance, never on production.

Fingerprinting and recon

  • Version check from outside: the appliance admin/recovery portals and LFT download pages carry the build; anything below 15.1.2 has the whole set. GHSA package fields are empty, so pin bands from the vendor advisory.
  • Multi-domain (hosted/multi-tenant) mode is a precondition for the header-normalization leg; single-domain installs still take the SSTI, fallback-secret, and LDAP legs.
  • The local socket and boot-job legs require existing local or authenticated footholds; treat them as post-exploitation escalation paths in the report, and prove only in customer-approved labs.

Validation boundaries

Lab appliance only, with synthetic accounts and your own test domain for mail legs. Prove SSTI with arithmetic/string canaries and an owned callback, never with production mail data; prove token forgery by minting a token for your own lab account; capture only synthetic LFT content you uploaded yourself. Never reset, replace, or delete real accounts, and never inject DKIM/ARC content toward third-party recipient systems outside authorized scope.