# CVE-2023-30556: SQL injection in sql_optimize.py optimize_sqltuningadvisor method in Archery - GHSL-2022-107

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-18T22:35:38.243Z
- Modified: 2026-06-17T05:55:01.297Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- hhyo Archery: <= 1.9.0
- archerydms archery: 1.9.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/hhyo/Archery/security/advisories/GHSA-6pv9-9gq7-hr68> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2023-30556](https://www.cve.org/CVERecord?id=CVE-2023-30556), CVE Terms of Use, modified 2025-02-05
- NVD: [CVE-2023-30556](https://nvd.nist.gov/vuln/detail/CVE-2023-30556), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-30556 · Whole record: https://cve.day/CVE-2023-30556.json · Rebuilt by cve.day 2026-11-25T22:58:23.635Z
