SecurityContext

CVE-2023-30558: Archery - SQL Injection

  • Cve: CVE-2023-30558
  • Name: Archery - SQL Injection
  • 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. User input coming from the `db_name` in the `sql/data_dictionary.py` `table_list` endpoint is passed to the methods that follow in a given SQL engine implementations, which concatenate user input unsafely into a SQL query and afterwards pass it to the `query` method of each database engine for execution. The affected methods are `get_group_tables_by_db` in `sql/engines/mssql.py`which passes unsafe user input to `sql/engines/mssql.py`, and `get_group_tables_by_db` in `sql/engines/oracle.py`which concatenates input which is passed to execution on the database in the `sql/engines/oracle.py` `query` method. Each of these issues may be mitigated by escaping user input or by using prepared statements when executing SQL queries. This issue is also indexed as `GHSL-2022-105`.
  • Impact: Attackers can execute arbitrary SQL queries on connected databases, potentially leading to data leakage, modification, or destruction.
  • Remediation: Use prepared statements or properly escape user input to mitigate SQL injection vulnerabilities.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: user_interaction
  • Requirements: Attacker needs to supply malicious `db_name` input
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00835
  • Epss percentile: 0.58626
  • Assignee: [email protected]
  • Published at: 2023-04-19T00:15:09Z
  • Age in days: 1315
  • Modified at: 2026-06-17T05:55:01Z
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-30558
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://github.com/hhyo/Archery/security/advisories/GHSA-jwjj-jgfv-x66qnvd2023-04-19

References

UrlSourceTags
https://github.com/hhyo/Archery/security/advisories/GHSA-jwjj-jgfv-x66qnvdExploit, Mitigation, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
archerydms:archery= 1.9.0nonvd/v1/products/archerydms/archery

Projects

RepositoryLink kindsIndexedUrl
hhyo/Archerysecurity_advisoryyes/v1/repositories/hhyo/Archery

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2023-04-19
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts