/

CVE-2026-112252

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Wubang Five-in-One /ws.asmx

CVE-2026-112252

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized database access and potential command execution

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Wubang Five-in-One Safety Production Management Information System contains a SQL injection vulnerability in the xp_cmdshell functionality exposed through /ws.asmx.

A remote attacker who can reach the affected service may be able to manipulate the sql argument, potentially accessing, modifying, or deleting database data and, depending on database permissions, invoking operating-system commands.

Wubang Five-in-One Safety Production Management Information System contains a SQL injection vulnerability in the xp_cmdshell functionality exposed through /ws.asmx.

A remote attacker who can reach the affected service may be able to manipulate the sql argument, potentially accessing, modifying, or deleting database data and, depending on database permissions, invoking operating-system commands.

Affected context

The vulnerability affects deployments of Wubang Five-in-One Safety Production Management Information System through version 3.5 when the /ws.asmx web service exposes the xp_cmdshell functionality and incorporates the sql argument into database operations without adequate separation from executable SQL syntax.

Risk depends on network reachability, the database account's privileges, and whether command-execution functionality is enabled and usable in the deployment.

The vulnerability affects deployments of Wubang Five-in-One Safety Production Management Information System through version 3.5 when the /ws.asmx web service exposes the xp_cmdshell functionality and incorporates the sql argument into database operations without adequate separation from executable SQL syntax.

Risk depends on network reachability, the database account's privileges, and whether command-execution functionality is enabled and usable in the deployment.

Exploit preconditions

  • Attack surface: The remotely reachable /ws.asmx web service
  • Required access: Network access to the service; authentication requirements depend on the deployment configuration
  • Trigger point: Processing the sql argument associated with the xp_cmdshell function
  • Why exploitation is possible: User-controlled input may be interpreted as SQL syntax rather than treated solely as data, allowing database query behavior to be altered
  • Privilege dependency: The scope of impact depends on the permissions of the database account and any enabled operating-system command execution features
  • Attack surface: The remotely reachable /ws.asmx web service
  • Required access: Network access to the service; authentication requirements depend on the deployment configuration
  • Trigger point: Processing the sql argument associated with the xp_cmdshell function
  • Why exploitation is possible: User-controlled input may be interpreted as SQL syntax rather than treated solely as data, allowing database query behavior to be altered
  • Privilege dependency: The scope of impact depends on the permissions of the database account and any enabled operating-system command execution features

Why this happens

The underlying bug is improper neutralization of user-controlled input used in SQL statements, which maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').

The related CWE-74 classification reflects the broader injection pattern: data supplied through a service argument is allowed to influence an interpreter's command structure. When the vulnerable path can reach xp_cmdshell, database-level injection may also cross into operating-system command execution, subject to database and host privileges.

The underlying bug is improper neutralization of user-controlled input used in SQL statements, which maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').

The related CWE-74 classification reflects the broader injection pattern: data supplied through a service argument is allowed to influence an interpreter's command structure. When the vulnerable path can reach xp_cmdshell, database-level injection may also cross into operating-system command execution, subject to database and host privileges.

Potential impact

  • An attacker may read sensitive database records
  • An attacker could alter or delete application data
  • The vulnerability may enable authentication or authorization bypasses within the application
  • Database credentials or other stored secrets could be exposed
  • Operating-system commands may be executed if the database context permits xp_cmdshell use
  • The affected server could be used for further internal access or disruption
  • An attacker may read sensitive database records
  • An attacker could alter or delete application data
  • The vulnerability may enable authentication or authorization bypasses within the application
  • Database credentials or other stored secrets could be exposed
  • Operating-system commands may be executed if the database context permits xp_cmdshell use
  • The affected server could be used for further internal access or disruption

General mitigation guidance

Mitigation generally focuses on separating data from executable SQL and reducing the privileges available to the affected service.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for all externally influenced values
  • Avoiding dynamic SQL where a fixed query or stored procedure can provide the required behavior
  • Validating inputs against an allowlist appropriate to the expected data type and format
  • Removing or disabling database operating-system command execution features when they are not required
  • Applying least-privilege permissions to the application and database accounts
  • Restricting access to administrative web-service endpoints through authentication, authorization, and network controls
  • Preventing sensitive database errors from being returned to remote clients

Mitigation generally focuses on separating data from executable SQL and reducing the privileges available to the affected service.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for all externally influenced values
  • Avoiding dynamic SQL where a fixed query or stored procedure can provide the required behavior
  • Validating inputs against an allowlist appropriate to the expected data type and format
  • Removing or disabling database operating-system command execution features when they are not required
  • Applying least-privilege permissions to the application and database accounts
  • Restricting access to administrative web-service endpoints through authentication, authorization, and network controls
  • Preventing sensitive database errors from being returned to remote clients

How teams detect issues like this

Detection can combine source review, runtime monitoring, and policy enforcement.

Useful approaches include:

  • Static analysis for string concatenation, interpolation, or formatting used to construct SQL from request parameters
  • Code review of /ws.asmx handlers and database wrappers for direct use of the sql argument
  • Searching application and database logs for anomalous SQL syntax, unexpected operators, encoded metacharacters, or repeated database errors
  • Monitoring for unexpected use of xp_cmdshell and child processes launched by database services
  • Enforcing repository policies that require parameterized database APIs and prohibit unsafe dynamic SQL patterns
  • Using automated security review tools to identify injection-prone data flows and missing input-to-query controls

Detection can combine source review, runtime monitoring, and policy enforcement.

Useful approaches include:

  • Static analysis for string concatenation, interpolation, or formatting used to construct SQL from request parameters
  • Code review of /ws.asmx handlers and database wrappers for direct use of the sql argument
  • Searching application and database logs for anomalous SQL syntax, unexpected operators, encoded metacharacters, or repeated database errors
  • Monitoring for unexpected use of xp_cmdshell and child processes launched by database services
  • Enforcing repository policies that require parameterized database APIs and prohibit unsafe dynamic SQL patterns
  • Using automated security review tools to identify injection-prone data flows and missing input-to-query controls

Sources

SourceLink
github.comgithub.com/Rookie506/CVE/issues/2
vuldb.comvuldb.com/cve/CVE-2026-112252
vuldb.comvuldb.com/submit/986410
vuldb.comvuldb.com/vuln/422334
vuldb.comvuldb.com/vuln/422334/cti

Frequently asked

questions

Potentially. The affected function is exposed through a web service, so an attacker who can reach /ws.asmx may be able to target it. Actual exploitability depends on endpoint exposure and any authentication or authorization controls.

Network access to the vulnerable service is the fundamental requirement. Authentication may or may not be required, depending on how the application is deployed and configured.

Treat the sql argument as data by using parameterized queries or prepared statements, and avoid exposing database command-execution functionality unless it is strictly necessary.

Enforce parameterized database access in code review and CI policies, validate inputs by expected type and format, use least-privilege accounts, and monitor for abnormal SQL or database service process activity.

Potentially. The affected function is exposed through a web service, so an attacker who can reach /ws.asmx may be able to target it. Actual exploitability depends on endpoint exposure and any authentication or authorization controls.

Network access to the vulnerable service is the fundamental requirement. Authentication may or may not be required, depending on how the application is deployed and configured.

Treat the sql argument as data by using parameterized queries or prepared statements, and avoid exposing database command-execution functionality unless it is strictly necessary.

Enforce parameterized database access in code review and CI policies, validate inputs by expected type and format, use least-privilege accounts, and monitor for abnormal SQL or database service process activity.

Find out what's already
exploitable in your codebase.