CVE-2024-40540 SQL injection in n/a

Medium 6.2 Published Updated

Attackers can execute arbitrary SQL commands via the dataScope parameter in the /api/dept endpoint of my-springsecurity-plus.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-40540?

CVE-2024-40540 is a medium-severity SQL injection vulnerability in n/a, published on 12 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

my-springsecurity-plus before v2024.07.03 was discovered to contain a SQL injection vulnerability via the dataScope parameter at /api/dept.

Weakness: CWE-89

Which versions are affected by CVE-2024-40540?

It affects 1 product.

Products include Codermy My-Springsecurity-Plus.

How do I fix CVE-2024-40540?

No fix has been published for CVE-2024-40540 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-2024-40540 being exploited?

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

Sources

Also known as GHSA-7xgj-q868-4w2x.

Is CVE-2024-40540 in your software?

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

Check your SBOMs for free