CVE-2024-58374 Hongjing e-HR Unauthenticated SQL Injection via getSdutyTree
Remote attackers can bypass authentication and inject SQL to retrieve sensitive database contents, including user credentials, from Hongjing e-HR.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-58374?
CVE-2024-58374 is a high-severity SQL injection vulnerability in Hongjing Century e-HR, published on 13 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Hongjing e-HR contains an unauthenticated SQL injection vulnerability in the getSdutyTree servlet endpoint that allows remote unauthenticated attackers to access protected resources by supplying a path traversal sequence in the request URI to bypass the oauthservlet authentication filter. Attackers can inject UNION-based SQL payloads through the unsanitized codeitemid parameter into the underlying Microsoft SQL Server query to retrieve sensitive database contents including user credentials. Exploitation evidence was first observed by the Shadowserver Foundation on 2024-07-30 (UTC).
Weakness: CWE-89
Which versions are affected by CVE-2024-58374?
How do I fix CVE-2024-58374?
No fix has been published for CVE-2024-58374 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2024-58374 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-58374 exists.
Sources
Also known as GHSA-4rwp-3x5g-4c6w.