/

CVE-2026-75014

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Pet Grooming Barcode API

CVE-2026-75014

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise, data disclosure, and data manipulation

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

SourceCodester Pet Grooming Management Software 1.0 contains a SQL injection flaw in the barcode data endpoint. A remote attacker who can reach the endpoint may manipulate the barcode parameter to alter database queries, potentially exposing or changing application data.

Affected context

The vulnerability occurs in the administrative barcode lookup functionality exposed through /admin/get_barcode_data.php. It becomes risky when the endpoint is network-accessible and incorporates the barcode argument into database queries without sufficient parameterization or input handling. Actual exposure may depend on deployment configuration, authentication controls, and database privileges.

Exploit preconditions

  • Attack surface: The remotely accessible /admin/get_barcode_data.php endpoint
  • Required access: Network access to the endpoint; authentication requirements depend on the application's deployment and access controls
  • Trigger point: Processing of the barcode request argument
  • Why exploitation is possible: User-controlled input may influence database query construction without consistently enforced parameterized query boundaries

Why this happens

The underlying bug is an unsafe interaction between externally supplied input and database query construction. When the barcode value is concatenated into a query or otherwise interpreted as query syntax, an attacker may influence the database operation rather than supplying only a barcode value. This behavior maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection); the related CWE-74 reflects the broader class of injection vulnerabilities.

Potential impact

  • An attacker may read sensitive records from the application database
  • Database contents could be modified, deleted, or corrupted
  • Authentication or authorization data could be exposed or altered
  • The application may experience errors, degraded availability, or broader compromise depending on database privileges

General mitigation guidance

Mitigation generally centers on ensuring that application inputs cannot become executable database syntax.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlist-based validation for barcode formats before database access
  • Avoid dynamically concatenating request values into SQL statements
  • Restrict database accounts to the minimum operations required by the application
  • Separate administrative endpoints from public network exposure where practical
  • Return generic database errors while recording useful security telemetry internally

These controls reduce input trust and limit the impact of query manipulation if another weakness is present.

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis rules identifying string concatenation or interpolation in SQL construction
  • Code review checks for database calls that accept raw request parameters
  • Dynamic application testing of endpoint parameters using approved security test cases
  • Web application firewall or API gateway policies that detect suspicious injection patterns
  • Database logs showing abnormal query structures, unexpected errors, or unusual access to records

Automated code review and software composition or application security tools may help identify unsafe query-building patterns, but findings should be validated against the application's actual data-access behavior.

Sources

SourceLink
github.comgithub.com/niaoniaollll/cve/issues/1
vuldb.comvuldb.com/cve/CVE-2026-75014
vuldb.comvuldb.com/submit/876426
vuldb.comvuldb.com/vuln/391274
vuldb.comvuldb.com/vuln/391274/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

Yes, the affected endpoint may be reachable remotely. Exploitability depends on network exposure, authentication requirements, and whether the barcode parameter reaches an unsafe database query.

Not necessarily. The available description does not establish the endpoint's authentication requirements, so access controls must be assessed in each deployment.

Use parameterized queries or prepared statements, validate barcode input against an expected format, and ensure database permissions are narrowly scoped.

Establish secure database-access patterns, prohibit query construction from concatenated request data, review endpoint authorization, and include static and dynamic injection testing in the development pipeline.

Find out what's already
exploitable in your codebase.