Summary
CVE-2024-58374 is an unauthenticated SQL injection vulnerability in Hongjing e-HR (also marketed as Hongjing HCM), a Chinese human capital management/e-HR platform. The flaw resides in the getSdutyTree servlet, where an attacker can bypass authentication and inject SQL through an unsanitized request parameter to read sensitive database contents, including user credentials. It carries a HIGH severity rating and has been observed under active exploitation.
Technical details
- Root cause: The
getSdutyTreeservlet fails to properly sanitize thecodeitemidparameter before using it in a SQL query, allowing UNION-based SQL injection (CWE-89). - Authentication bypass: Attackers supply a path traversal sequence in the request URI to bypass the
oauthservletauthentication filter that would normally gate access to the endpoint. - Attack vector: Network-based, no authentication or user interaction required.
- Impact: Remote, unauthenticated retrieval of database contents, including user credentials; confidentiality impact only (no reported integrity or availability impact).
- Exploitation status: Active exploitation was first observed on July 30, 2024, reported by The Shadowserver Foundation, and the CVE is tracked in VulnCheck’s Known Exploited Vulnerabilities (KEV) data.
Affected software
- Hongjing e-HR (Hongjing Century) — the CVE record does not specify a bounded version range; all deployments exposing the vulnerable
getSdutyTreeservlet should be considered at risk.
Severity
- CVSS v3.1 Base Score: 7.5 (HIGH) —
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS v4.0 Base Score: 8.7 (HIGH) —
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Mitigation and recommended actions
- Immediate: No vendor patch version is documented in public advisories at this time; organizations should contact Hongjing Century for an updated build that sanitizes the
codeitemidparameter and closes theoauthservletpath traversal bypass. - If no patch is available: Restrict or remove public internet exposure of the e-HR/HCM application, place it behind a WAF configured to block path traversal and UNION-based SQL injection patterns, monitor logs for requests targeting
getSdutyTree, and rotate any credentials that may be stored in the affected database.

