CVE-2022-2214 SourceCodester Library Management System bookdetails.php sql injection

Medium 6.3 Published Updated

Remote attackers can exploit SQL injection in the bookdetails.php file to read or modify database contents in SourceCodester Library Management System.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-2214?

CVE-2022-2214 is a medium-severity SQL injection vulnerability in SourceCodester Library Management System, published on 27 Jun 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was found in SourceCodester Library Management System 1.0. It has been rated as critical. Affected by this issue is some unknown functionality of the file /librarian/bookdetails.php. The manipulation of the argument id with the input ' AND (SELECT 9198 FROM (SELECT(SLEEP(5)))iqZA)-- PbtB leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.

Weakness: CWE-89

Which versions are affected by CVE-2022-2214?

It affects 1 product.

Products include Library Management System Project Library Management System.

How do I fix CVE-2022-2214?

No fix has been published for CVE-2022-2214 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2022-2214 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-2214 exists.

Sources

Also known as CVE-2022-36707, GHSA-9626-xhm9-qf9j.

Is CVE-2022-2214 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free