CVE-2026-55679

WeGIA: Pre-auth Installer Injection Chain Enables Command Execution and Arbitrary PHP Code Injection

Published Oct 14, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Labredescefetrj
Labredescefetrj wegia
Vendors & Products Labredescefetrj
Labredescefetrj wegia
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'}

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')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 2:06 AM
Reserved
Jun 17, 2026, 12:05 AM
Status
Deferred
Published
Oct 14, 2026, 8:17 PM
Modified
Oct 20, 2026, 3:17 AM