Cyber Posture

CVE-2024-57031

CriticalPublic PoC

Published: 17 January 2025

Published
17 January 2025
Modified
24 March 2025
KEV Added
Patch
CVSS Score 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0044 63.3th percentile
Risk Priority 20 60% EPSS · 20% KEV · 20% CVSS

Description

Adversaries may leverage databases to mine valuable information.

Security Summary

CVE-2024-57031, published on 2025-01-17, is a SQL injection vulnerability (CWE-89) affecting WeGIA versions prior to 3.2.0. The issue is located in the /funcionario/remuneracao.php component, where the id_funcionario parameter fails to properly sanitize user input, allowing malicious SQL payloads to be injected into backend database queries.

The vulnerability carries a CVSS v3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), indicating critical severity. A remote, unauthenticated attacker requires only network access and can exploit it with low complexity and no user interaction. Successful exploitation enables arbitrary SQL execution, potentially resulting in high-impact compromise of confidentiality, integrity, and availability, such as unauthorized data access, modification, deletion, or denial of service against the database.

Advisories recommend upgrading to WeGIA 3.2.0 or later to mitigate the vulnerability. Further technical details and proof-of-concept information are available in the research repository at https://github.com/nmmorette/vulnerability-research/tree/main/CVE-2024-57031, with additional context on the official site at https://www.wegia.org/.

Details

CWE(s)
CWE-89

Affected Products

wegia
wegia
≤ 3.2.0

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1213.006 Databases Collection
Adversaries may leverage databases to mine valuable information.
Why these techniques?

SQL injection vulnerability in a web application enables exploitation of public-facing applications (T1190) and direct access to databases for data collection (T1213.006).

References