Cyber Resilience

CVE-2022-31890

CriticalPublic PoC

Published: 05 April 2023

Published
05 April 2023
Modified
13 February 2025
KEV Added
Patch
CVSS Score v3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.1373 94.4th percentile
Risk Priority 28 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2022-31890 is a critical-severity SQL Injection (CWE-89) vulnerability in Enhancesoft Audit Log. Its CVSS base score is 9.8 (Critical).

Operationally, ranked in the top 5.6% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis

CVE-2022-31890 is a SQL injection vulnerability (CWE-89) in the audit/class.audit.php file of osTicket osTicket-plugins prior to commit a7842d494889fd5533d13deb3c6a7789768795ae. The flaw exists in the getOrder function, which processes an order parameter without adequate sanitization, allowing malicious input to alter SQL queries. It carries a CVSS 3.1 score of 9.8, reflecting network-accessible exploitation with no required credentials or user interaction and full impact on confidentiality, integrity, and availability.

An unauthenticated remote attacker can supply crafted input to the order parameter and execute arbitrary SQL commands against the underlying database. Successful exploitation can result in data exfiltration, modification of records, or disruption of the osTicket application, effectively granting the attacker control equivalent to a database administrator in the affected deployment.

Public references include a Checkmarx analysis of osTicket vulnerabilities and the osTicket-plugins repository commit 0b59afbd2d4ccd0522552198a9aaf1ec05b5071e, which addresses the issue. Administrators should apply the referenced commit or a subsequent release that incorporates the fix to eliminate the vulnerable code path.

The associated EPSS score remains near 0.14 with negligible movement between current and peak values, indicating limited observed exploitation interest to date.

EU & UK References

Vulnerability details

SQL Injection vulnerability in audit/class.audit.php in osTicket osTicket-plugins before commit a7842d494889fd5533d13deb3c6a7789768795ae via the order parameter to the getOrder function.

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

enhancesoft
audit log
≤ 2022-04-21

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-89

Penetration testing uses SQL injection payloads against database interfaces, identifying and supporting fixes for SQL injection weaknesses.

addresses: CWE-89

Validates query inputs to prevent SQL syntax or command manipulation.

References