# CVE-2026-39178: Alinto SOGo SQL injection in allContactSearch and password change

Source: https://junglewise.ai/threats/cve-2026-39178-alinto-sogo-sql-injection-in-allcontactsearch-and-password-change  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-08. Updated: 2026-07-08  
License: CC BY 4.0 with a link back

CVE-2026-39178 · Severity: info · CVSS 8.8 · Published 2026-07-08

SOGo is an open-source collaborative software (groupware) server focused on sharing calendars, address books, and emails. A security flaw in the password change and contact search features allows logged-in users to perform unauthorized database operations. This could lead to an attacker changing other users' passwords, stealing sensitive data, or potentially taking control of the server.

Technologies: [Alinto Sogo](https://junglewise.ai/threats/technologies/sogo). Vendors: [Alinto](https://junglewise.ai/threats/vendors/alinto).

## Quick answers

**Is CVE-2026-39178 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-39178 being exploited in the wild.

**How severe is CVE-2026-39178?** Informational severity, with a CVSS score of 8.8, published 8 July 2026.

**Which products and versions are affected?** Alinto Sogo < 5.12.7.

**Is there a fix for CVE-2026-39178?** A patch was published on 2026-03-26: Fixed in nightly builds Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-39178 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-39178?** Check whether you run Alinto Sogo at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A SQL injection vulnerability exists in SOGo's SQLSource component, specifically affecting the allContactSearch endpoint and the password change functionality. The flaw stems from improper sanitization of the 'search' parameter when interacting with PostgreSQL or MariaDB user sources. An authenticated attacker can exploit this to execute arbitrary SQL commands. Depending on the database configuration and user source type, this can lead to mass password resets, database compromise, or server-side code execution. The issue is resolved in version 5.12.7 by using proper SQL adapters for user sources.

## Affected products

- Alinto SOGo < 5.12.7

## Timeline

- 2026-03-26: patched: Fixed in nightly builds
- 2026-03-30: advisory: SOGo v5.12.7 released
- 2026-07-08: disclosed: CVE published

## References

- [https://github.com/Alinto/sogo/commit/1f7e5d2b2c2047c44a6a9e05f73c36491cb96d21](https://github.com/Alinto/sogo/commit/1f7e5d2b2c2047c44a6a9e05f73c36491cb96d21)
- [https://www.sogo.nu/news/2026/sogo-v5127-released.html](https://www.sogo.nu/news/2026/sogo-v5127-released.html)

## Related threats

- [SOGo server-side request forgery in Calendar web subscription](https://junglewise.ai/threats/cve-2026-127145-sogo-before-5-12-13-contains-a-server-side-request-forgery)
- [SOGo denial of service via IMAP greeting timeout](https://junglewise.ai/threats/cve-2026-127141-sogo-before-5-12-13-contains-a-denial-of-service-vulnerability)
- [SOGo Sieve script injection in notification address](https://junglewise.ai/threats/cve-2026-127135-sogo-before-5-12-13-contains-a-sieve-script-injection)
- [SOGo missing rate limiting in TOTP verification](https://junglewise.ai/threats/cve-2026-127131-sogo-before-5-12-13-contains-a-missing-rate-limiting)
- [SOGo improper cryptographic signature verification in S/MIME](https://junglewise.ai/threats/cve-2026-127121-sogo-before-5-12-13-contains-an-improper-cryptographic-signature)
