CVE-2017-20247 WordPress Plugin PICA Photo Gallery 1.0 SQL Injection

High 8.8 Published Updated

Unauthenticated attackers can execute arbitrary SQL queries via the aid parameter to extract sensitive database information from the PICA Photo Gallery plugin.

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

What is CVE-2017-20247?

CVE-2017-20247 is a high-severity SQL injection vulnerability in Apptha PICA Photo Gallery, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

WordPress Plugin PICA Photo Gallery 1.0 contains an SQL injection vulnerability that allows unauthenticated attackers to execute arbitrary SQL queries by injecting malicious code through the aid parameter. Attackers can send GET requests with crafted SQL payloads in the aid parameter to extract sensitive database information including user credentials and table contents.

Weakness: CWE-89

Which versions are affected by CVE-2017-20247?

How do I fix CVE-2017-20247?

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

There is no known exploitation of CVE-2017-20247 in the wild and no public exploit code.

Sources

Also known as GHSA-23pq-pv24-pjcg.

Is CVE-2017-20247 in your software?

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

Check your SBOMs for free