Description
WeGIA is a web manager for charitable institutions. Prior to 3.8.6, the pre-installation web/instalador/instalador.php endpoint is reachable before config.php exists and processes unauthenticated installation POST data. In the Linux reinstall flow, a crafted usuario value reaches a command executed by shell_exec(). The installer also writes attacker-controlled values into executable config.php and concatenates the database name nomebd into a CREATE DATABASE statement. Successful exploitation can execute commands as the web-server user, persist attacker-controlled PHP configuration, and alter or disrupt the application and its data. This issue is fixed in version 3.8.6.
Published: 2026-10-14
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Command Execution (Remote Code Execution)
Action: Immediate Patch
AI Analysis

Impact

Prior to version 3.8.6, the WeGIA web manager exposes an installer endpoint that can be accessed before the configuration file has been established. A crafted POST parameter "usuario" is directly passed to a shell_exec call, providing the attacker ability to execute arbitrary shell commands as the web‑server user. Additionally, the installer writes attacker‑controlled values into the resulting config.php file, enabling persistent PHP code injection, and includes the supplied database name in a CREATE DATABASE statement, yielding SQL injection. The combination of OS command, PHP code, and SQL injection weaknesses (CWE‑78, CWE‑94, CWE‑89) allows an attacker who can send HTTP requests to the pre‑installation endpoint to run arbitrary commands, persist malicious PHP code, and modify or delete application data.

Affected Systems

Any installation of WeGIA older than version 3.8.6 running on a Linux environment is affected. The vulnerability is tied to the pre‑installation web/instalador/instalador.php endpoint, which remains reachable before the configuration phase in those versions. The fix is released in version 3.8.6; earlier releases should be identified by the version tag in the source repository.

Risk and Exploitability

With a CVSS score of 6.5, the vulnerability is considered moderate. The EPSS score is not available, and the issue is not listed in CISA’s KEV catalog, indicating that it has not yet been observed in widespread exploitation. The most likely attack vector is a remote attacker with network access to the application, who can directly access the installer endpoint and send crafted POST data. Successful exploitation would run arbitrary shell commands as the web‑server process, write malicious PHP code to the configuration file, and inject arbitrary SQL into the database creation procedure, providing persistent compromise of the application and its data.

Generated by OpenCVE AI on October 15, 2026 at 13:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the WeGIA installation to version 3.8.6 or newer, which removes the vulnerable installer endpoint and fixes command and code injection.
  • If immediate upgrade is not possible, block or remove access to the /web/instalador/instalador.php URL until a valid config.php is present; alternatively move the installer to a protected or non‑exposed location.
  • Review and restrict the use of shell_exec in the codebase; consider disabling the function or ensuring input sanitization, and audit configuration files for unauthorized PHP code to mitigate any remaining risk.

Generated by OpenCVE AI on October 15, 2026 at 13:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
Description WeGIA is a web manager for charitable institutions. Prior to 3.8.6, the pre-installation web/instalador/instalador.php endpoint is reachable before config.php exists and processes unauthenticated installation POST data. In the Linux reinstall flow, a crafted usuario value reaches a command executed by shell_exec(). The installer also writes attacker-controlled values into executable config.php and concatenates the database name nomebd into a CREATE DATABASE statement. Successful exploitation can execute commands as the web-server user, persist attacker-controlled PHP configuration, and alter or disrupt the application and its data. This issue is fixed in version 3.8.6.
Title WeGIA: Pre-auth Installer Injection Chain Enables Command Execution and Arbitrary PHP Code Injection
Weaknesses CWE-78
CWE-89
CWE-94
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-14T19:44:02.494Z

Reserved: 2026-06-17T00:05:03.778Z

Link: CVE-2026-55679

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-14T20:17:50.030

Modified: 2026-10-14T20:17:50.160

Link: CVE-2026-55679

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T14:00:07Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')