CVE-2021-40313 SQL injection in n/a
Attackers can execute arbitrary SQL commands via the pwg_token parameter in the admin batch manager, potentially accessing or modifying database content.
- 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-2021-40313?
CVE-2021-40313 is a high-severity SQL injection vulnerability in Piwigo Piwigo, published on 6 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Piwigo v11.5 was discovered to contain a SQL injection vulnerability via the parameter pwg_token in /admin/batch_manager_global.php.
Weakness: CWE-89
Which versions are affected by CVE-2021-40313?
It affects 1 product.
Products include Piwigo Piwigo.
How do I fix CVE-2021-40313?
No fix has been published for CVE-2021-40313 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-2021-40313 being exploited?
There is no known exploitation of CVE-2021-40313 in the wild and no public exploit code.
Other vulnerabilities in Piwigo Piwigo
Sources
Also known as GHSA-94pj-f7mj-c6q8.