Skip to main content

PHP CVE-2026-40285

| EUVDEUVD-2026-23529 HIGH
SQL Injection (CWE-89)
2026-04-17 GitHub_M
8.8
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

7
Patch released
Apr 20, 2026 - 19:02 nvd
Patch available
Re-analysis Queued
Apr 17, 2026 - 21:22 vuln.today
cvss_changed
Patch available
Apr 17, 2026 - 21:16 EUVD
Analysis Generated
Apr 17, 2026 - 21:11 vuln.today
EUVD ID Assigned
Apr 17, 2026 - 20:45 euvd
EUVD-2026-23529
Analysis Generated
Apr 17, 2026 - 20:45 vuln.today
CVE Published
Apr 17, 2026 - 20:25 nvd
HIGH 8.8

DescriptionGitHub Advisory

WeGIA is a web manager for charitable institutions. Versions prior to 3.6.10 contain a SQL injection vulnerability in dao/memorando/UsuarioDAO.php. The cpf_usuario POST parameter overwrites the session-stored user identity via extract($_REQUEST) in DespachoControle::verificarDespacho(), and the attacker-controlled value is then interpolated directly into a raw SQL query, allowing any authenticated user to query the database under an arbitrary identity. Version 3.6.10 fixes the issue.

AnalysisAI

SQL injection in WeGIA charitable institution manager allows authenticated users to impersonate arbitrary identities and execute database queries with elevated privileges. The cpf_usuario parameter in dao/memorando/UsuarioDAO.php bypasses session-based identity controls through PHP's extract($_REQUEST) function, enabling any low-privileged authenticated user to query sensitive data or modify database contents as any other user, including administrators. WeGIA versions before 3.6.10 are affected. No public exploit identified at time of analysis, though exploitation complexity is low (CVSS AC:L) requiring only valid user credentials.

Technical ContextAI

WeGIA is a PHP-based web application designed for managing charitable institutions. This vulnerability exploits PHP's extract() function, which creates variables from array keys - in this case, from the global $_REQUEST superglobal containing both GET and POST parameters. The affected code path is in DespachoControle::verificarDespacho() which calls extract($_REQUEST), allowing POST parameter 'cpf_usuario' to overwrite legitimate session-stored user identity variables. This attacker-controlled value is then directly concatenated into raw SQL queries in dao/memorando/UsuarioDAO.php without parameterization or input validation, constituting a classic CWE-89 SQL injection vulnerability. The dual nature of this flaw combines variable overwriting with SQL injection, making it particularly dangerous as it bypasses application-layer identity controls before the database query is even constructed.

RemediationAI

Upgrade WeGIA to version 3.6.10 or later, which contains the vendor-released patch addressing both the unsafe extract($_REQUEST) usage and SQL injection vulnerability. The fix can be obtained from the official GitHub repository at https://github.com/LabRedesCefetRJ/WeGIA. If immediate patching is not feasible, implement the following compensating controls with noted limitations: (1) Disable or restrict access to the memorando/despacho functionality at the web server level (e.g., via .htaccess or nginx location blocks) - this prevents exploitation but breaks legitimate memo dispatch features used by administrators; (2) Implement Web Application Firewall rules to block POST requests containing 'cpf_usuario' parameter to affected endpoints - this may cause false positives if the parameter is legitimately used elsewhere in the application; (3) Restrict application access to only trusted IP ranges via firewall rules - this reduces attack surface but doesn't address insider threats from authenticated users on trusted networks. None of these workarounds fully mitigate the vulnerability; upgrading to 3.6.10 is the only complete remediation. Review application logs for suspicious cpf_usuario parameter usage or anomalous database queries under unexpected user contexts as potential indicators of prior exploitation.

More in PHP

View all
CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-46506 CRITICAL POC
10.0 May 13

NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

Share

CVE-2026-40285 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy