CVE-2022-31366: An arbitrary file upload vulnerability in the apiImportLabs function in api_labs.php of EVE-NG 2.0.3-112 Co...
An arbitrary file upload vulnerability in the apiImportLabs function in api_labs.php of EVE-NG 2.0.3-112 Community allows attackers to execute arbitrary code via a crafted UNL file.
Security readout for executives and security teams
Plain-English summary
CVE-2022-31366 is a high-severity file upload flaw in EVE-NG Community 2.0.3-112. A user with high privileges could upload a crafted lab file and cause code execution on the server. The source bundle does not name a vendor patch or confirm active exploitation.
Executive priority
Treat as high priority for any internet-reachable or broadly administered EVE-NG system. The flaw can lead to server code execution, but available evidence indicates high privileges are required and does not confirm active exploitation.
Technical view
The CVE describes CWE-434 in apiImportLabs within api_labs.php. The vulnerable path handles UNL lab imports and may allow arbitrary file upload leading to arbitrary code execution. CVSS 3.1 is 7.2 with network access, low complexity, high privileges, and high confidentiality, integrity, and availability impact.
Likely exposure
Exposure is most likely in organizations running EVE-NG Community 2.0.3-112 where privileged users can access lab import functionality. The CVE metadata's affected-product fields are incomplete, so validate against actual installed versions and vendor records.
Exploitation context
The source bundle includes a public technical writeup, but KEV is false and no cited source confirms active exploitation. The CVSS vector requires high privileges, which reduces opportunistic exposure but still matters for compromised admins or insider misuse.
Researcher notes
The CVE record is sparse: affected CPEs are not populated, and the bundle names no patch. Analysis should stay anchored to EVE-NG Community 2.0.3-112, apiImportLabs, api_labs.php, crafted UNL import handling, CWE-434, and CVSS 7.2.
Mitigation direction
Identify EVE-NG Community 2.0.3-112 instances and prioritize review.
Check EVE-NG vendor guidance for fixed builds or official workaround.
Restrict administrative and API access to trusted networks and users.
Review privileged account hygiene and remove unnecessary import access.
Monitor for unexpected lab imports, file changes, or service behavior.
Validation and detection
Confirm deployed EVE-NG edition and version from asset records.
Verify who can access the lab import API or UI workflow.
Review application and web server logs for unusual import activity.
Check filesystem integrity for unexpected files near EVE-NG application paths.
Document whether vendor guidance or an upgrade path exists.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-434: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
2ADP providers
2Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-434 · source CWE mapping
Unrestricted Upload of File with Dangerous Type
Unrestricted Upload of File with Dangerous Type represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.