CVE-2023-30556 SQL injection in sql_optimize.py optimize_sqltuningadvisor method in Archery - GHSL-2022-107
Attackers can inject SQL via the db_name parameter to query connected databases in the Archery SQL audit platform.
- 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-2023-30556?
CVE-2023-30556 is a medium-severity SQL injection vulnerability in hhyo Archery, published on 18 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Archery is an open source SQL audit platform. The Archery project contains multiple SQL injection vulnerabilities, that may allow an attacker to query the connected databases. Affected versions are subject to SQL injection in the `optimize_sqltuningadvisor` method of `sql_optimize.py`. User input coming from the `db_name` parameter value in `sql_optimize.py` is passed to the `sqltuningadvisor` method in `oracle.py`for execution. To mitigate escape the variables accepted via user input when used in `sql_optimize.py`. Users may also use prepared statements when dealing with SQL as a mitigation for this issue. This issue is also indexed as `GHSL-2022-107`.
Weakness: CWE-89
Which versions are affected by CVE-2023-30556?
It affects 1 product.
Products include Archerydms Archery.
How do I fix CVE-2023-30556?
No fix has been published for CVE-2023-30556 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-2023-30556 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-30556 exists.
Other vulnerabilities in hhyo Archery
Sources
Also known as GHSA-6pv9-9gq7-hr68.