/

CVE-2026-85187

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Online Medicine Delivery System

CVE-2026-85187

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise and unauthorized data access or modification

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

A high-severity SQL injection vulnerability in the Online Medicine Delivery System allows remotely supplied input to influence database queries through the order status update workflow.

If the vulnerable endpoint is reachable and the ID parameter is not safely handled, an attacker may read, alter, or otherwise affect database-backed application data.

Affected context

The vulnerability occurs in the Order Status Update component of itsourcecode Online Medicine Delivery System 1.0, specifically in the Order::pupdate function associated with the order confirmation workflow. Risk is present where the remotely accessible endpoint processes the ID argument without adequately separating user-controlled input from SQL query structure.

Exploit preconditions

  • Attack surface: Remotely accessible order status update endpoint
  • Required access: The ability to reach the affected workflow; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the ID argument by the Order::pupdate function
  • Why exploitation is possible: User-controlled input may be incorporated into a database query without effective parameterization or equivalent query-boundary protection

Why this happens

The underlying bug is an injection flaw in which externally controlled input is interpreted as part of a database command rather than strictly as data. This behavior maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and is also related to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component. The insecure pattern typically involves constructing SQL statements through string concatenation or otherwise failing to enforce a trusted query structure.

Potential impact

  • An attacker may retrieve sensitive records from the application database.
  • An attacker could modify order, customer, or operational data.
  • The vulnerability may enable unauthorized deletion or corruption of records.
  • Database errors could expose schema details or other implementation information.
  • Compromised data could affect order processing and business operations.

General mitigation guidance

Mitigation generally focuses on ensuring that user-controlled values cannot alter SQL statement structure.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations.
  • Apply allowlisted validation for identifiers such as order IDs, including expected type and format checks.
  • Avoid building SQL statements through string concatenation or interpolation.
  • Enforce authorization checks independently of input validation before changing order state.
  • Restrict database accounts to the minimum permissions required by the application.
  • Return generic database errors to clients while recording actionable diagnostic details securely.

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis rules that flag SQL construction from request parameters.
  • Code review checks for concatenated or interpolated query strings.
  • Dynamic testing of order-management endpoints using non-destructive injection test cases.
  • Web application firewall or API gateway policies that monitor anomalous database-oriented input patterns.
  • Database audit logging for unexpected query behavior, access patterns, or modifications to order data.
  • Automated security review tools that identify missing parameter binding and weak input validation.

Sources

SourceLink
github.comgithub.com/boyslikesports/202607_vul_dir/blob/main/C-12-SQLi-Rider-Order-MultiPoint_en.md
itsourcecode.comitsourcecode.com/
vuldb.comvuldb.com/cve/CVE-2026-85187
vuldb.comvuldb.com/submit/892987
vuldb.comvuldb.com/vuln/398400
vuldb.comvuldb.com/vuln/398400/cti

Frequently asked

questions

Yes. The affected order status update functionality is described as remotely reachable. Exploitability still depends on endpoint exposure and any authentication or authorization controls in the deployment.

The attacker needs network access to the affected workflow and may also need whatever application privileges the deployment requires. The exposed ID parameter is the relevant input path.

Use parameterized queries or prepared statements, validate the identifier against an appropriate allowlist, and enforce authorization before performing the update.

Standardize database access through safe query APIs, prohibit string-built SQL in code review and static analysis policies, apply least-privilege database permissions, and monitor database activity for suspicious behavior.

Find out what's already
exploitable in your codebase.