Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2024-58374: Unauthenticated SQL Injection in Hongjing e-HR getSdutyTree

Published Aug 13, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.7High · v4
EPSS0.74%56th percentile
CISA KEVNoNot listed
In the wildReported29 exploitation records in Mallory
IdentifiersCVE-2024-58374CWE-89 · Improper Neutralization of Special…

CVE-2024-58374 is an unauthenticated SQL injection vulnerability in the getSdutyTree servlet endpoint of Hongjing Century e-HR. A remote attacker can supply a path traversal sequence in the request URI to bypass the oauthservlet authentication filter and reach the protected endpoint. The codeitemid parameter is insufficiently sanitized before incorporation into a Microsoft SQL Server query, allowing UNION-based SQL injection to retrieve sensitive database contents, including user credentials. The Shadowserver Foundation first observed exploitation evidence on July 30, 2024.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Remote unauthenticated attackers can bypass authentication, access protected resources, and disclose sensitive contents of the underlying Microsoft SQL Server database, including user credentials.

Mitigation

If you can’t patch tonight, do this now.

If a patch is not immediately available, restrict network access to the affected Hongjing e-HR application so the vulnerable servlet is not reachable from untrusted networks. Deploy compensating controls at reverse proxies or web application firewalls to block path traversal sequences in request URIs and detect or block SQL injection patterns targeting the codeitemid parameter. Monitor for suspicious requests to the getSdutyTree endpoint and review database and application logs for evidence of unauthorized query activity. Because credential exposure is possible, review authentication records and reset potentially compromised accounts.

Remediation

Patch, then assume compromise.

Apply the vendor-provided fix or update for Hongjing e-HR that corrects both the authentication bypass condition in request handling and the SQL injection flaw in the getSdutyTree servlet. The vulnerable code path should enforce authentication before servlet access and eliminate dynamic SQL construction from the codeitemid parameter by using parameterized queries or prepared statements. Input validation should be added as a defense-in-depth measure, and exposed credentials potentially retrieved through exploitation should be rotated.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2024-58374 exploited in the wild?
Yes. As of Oct 9, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2024-58374?
Yes. As of Oct 9, 2026, Mallory has reports of a public exploit for CVE-2024-58374.
Is there a patch for CVE-2024-58374?
Apply the vendor-provided fix or update for Hongjing e-HR that corrects both the authentication bypass condition in request handling and the SQL injection flaw in the getSdutyTree servlet. The vulnerable code path should enforce authentication before servlet access and eliminate dynamic SQL construction from the codeitemid parameter by using parameterized queries or prepared statements.
How severe is CVE-2024-58374?
CVE-2024-58374 has a CVSS v4 score of 8.7 (High) and an EPSS score of 0.74% (56th percentile) as of Oct 9, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.