Cyber Posture

CVE-2025-27140

CriticalPublic PoCRCE

Published: 24 February 2025

Published
24 February 2025
Modified
28 February 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.0221 84.6th percentile
Risk Priority 21 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2025-27140 is a critical-severity OS Command Injection (CWE-78) vulnerability in Wegia Wegia. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 15.4% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploit Public-Facing Application (T1190) and 2 other techniques. What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

Mitigating Controls (NIST 800-53 r5)AI

prevent

Directly mitigates the vulnerability by requiring installation of the patch in WeGIA version 3.2.15 that fixes the OS command injection in importar_dump.php.

prevent

Requires input validation and sanitization at the importar_dump.php endpoint to block malicious payloads in the file move command parameters.

prevent

Restricts types, formats, and lengths of inputs to the vulnerable endpoint to exclude OS command injection characters and payloads.

MITRE ATT&CK Enterprise TechniquesAI

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.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1505.003 Web Shell Persistence
Adversaries may backdoor web servers with web shells to establish persistent access to systems.
Why these techniques?

OS command injection in public-facing web app directly enables remote exploitation (T1190), arbitrary command execution via Unix shell (T1059.004), and webshell uploads/deployment (T1505.003).

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

NVD Description

WeGIA is a Web manager for charitable institutions. An OS Command Injection vulnerability was discovered in versions prior to 3.2.15 of the WeGIA application, `importar_dump.php` endpoint. This vulnerability could allow an attacker to execute arbitrary code remotely. The command is…

more

basically a command to move a temporary file, so a webshell upload is also possible. Version 3.2.15 contains a patch for the issue.

Deeper analysisAI

CVE-2025-27140 is an OS Command Injection vulnerability (CWE-78, CWE-284) in the WeGIA web application, a manager for charitable institutions. The flaw affects versions prior to 3.2.15 and is located in the `importar_dump.php` endpoint, where inadequate input sanitization on a file move command enables attackers to inject and execute arbitrary operating system commands remotely.

With 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), the vulnerability is exploitable by any unauthenticated attacker accessible over the network, requiring low complexity and no user interaction. Exploitation allows remote code execution, including webshell uploads by manipulating the temporary file move operation, potentially leading to full server compromise with high impacts on confidentiality, integrity, and availability.

Version 3.2.15 of WeGIA patches the issue. Additional mitigation details are provided in the GitHub security advisory (GHSA-xw6w-x28r-2p5c) and the specific patching commit (7d0df8c9a0b8b7d6862bbc23dc729d73e39672a1).

Details

CWE(s)

Affected Products

wegia
wegia
≤ 3.2.15

CVEs Like This One

CVE-2025-26613Same product: Wegia Wegia
CVE-2026-28409Same product: Wegia Wegia
CVE-2025-22133Same product: Wegia Wegia
CVE-2025-26609Same product: Wegia Wegia
CVE-2025-26617Same product: Wegia Wegia
CVE-2025-58745Same product: Wegia Wegia
CVE-2025-58159Same product: Wegia Wegia
CVE-2025-26607Same product: Wegia Wegia
CVE-2025-26608Same product: Wegia Wegia
CVE-2025-26611Same product: Wegia Wegia

References