CVE-2026-140587 — SourceCodester Drug Recommendation System
One of 2 SourceCodester Drug Recommendation System vulnerabilities published together by NVD: our article covers all of them.
PHPWebVulnerabilitiesSummary
A vulnerability was detected in SourceCodester Drug Recommendation System 1.0. The impacted element is an unknown function of the file Admin/add_user.php of the component User Management. Performing a manipulation of the argument txtpassword results in sql injection. The attack is possible to be carried out remotely. The exploit is now public and may be used.
Severity breakdown
Medium · 5.5
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- low on confidentiality, integrity and availability
- Impact on other systems
- none
- Exploit maturity
- a proof-of-concept exploit is public
Weakness
- CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| SourceCodester Drug Recommendation System | 1.0 | — |
References by type
Other references
Affected
- SourceCodester Drug Recommendation System
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140587?
A vulnerability was detected in SourceCodester Drug Recommendation System 1.0. The impacted element is an unknown function of the file Admin/adduser.php of the component User Management. Performing a manipulation of the argument txtpassword results in sql injection. The attack is possible to be carried out remotely. The exploit is now public and may be used. Weakness type: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74).
How severe is CVE-2026-140587?
CVE-2026-140587 has a CVSS 4.0 base score of 5.5 (medium), from the CNA (vuldb.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-140587 being exploited?
Not as far as is known: CVE-2026-140587 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-140587?
SourceCodester Drug Recommendation System 1.0.
How do I fix CVE-2026-140587?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.