CVE-2026-6187
Published: 13 April 2026
Summary
CVE-2026-6187 is a medium-severity Injection (CWE-74) vulnerability in Sourcecodester (inferred from references). Its CVSS base score is 6.9 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 13.5th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified are NIST 800-53 RA-5 (Vulnerability Monitoring and Scanning) and SI-10 (Information Input Validation).
Deeper analysis
CVE-2026-6187 is a SQL injection vulnerability affecting SourceCodester Pharmacy Sales and Inventory System 1.0. The flaw occurs in the processing of the file /ajax.php?action=chk_prod_availability, where manipulation of the ID argument results in SQL injection. It is associated with CWEs-74 and CWE-89, and carries a CVSS v3.1 base score of 7.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L). The vulnerability was published on 2026-04-13.
Remote attackers can exploit this vulnerability without authentication or user interaction, requiring only low attack complexity. Exploitation enables limited impacts on confidentiality, integrity, and availability through SQL injection, potentially allowing unauthorized database queries or modifications depending on the backend configuration.
Advisories and references, including VulDB entries (https://vuldb.com/vuln/357109, https://vuldb.com/submit/797375, https://vuldb.com/vuln/357109/cti) and a GitHub issue (https://github.com/lingzezzz/lingze/issues/3), document the issue, with the vendor site at https://www.sourcecodester.com/. The exploit is public and may be used.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-22012
Vulnerability details
A vulnerability was detected in SourceCodester Pharmacy Sales and Inventory System 1.0. This issue affects some unknown processing of the file /ajax.php?action=chk_prod_availability. The manipulation of the argument ID results in sql injection. The attack may be performed from remote. The…
more
exploit is now public and may be used.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
SQL injection in a web application (ajax.php) allows remote unauthenticated exploitation, directly mapping to T1190 for exploiting public-facing applications.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Directly prevents SQL injection by requiring validation of the ID argument in /ajax.php?action=chk_prod_availability.
Requires identification, reporting, and correction of the specific SQL injection flaw in the Pharmacy Sales and Inventory System.
Enables scanning to identify the publicly exploitable SQL injection vulnerability (CVE-2026-6187) in the system.