CVE-2023-30552

Source
https://cve.org/CVERecord?id=CVE-2023-30552
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30552.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-30552
Aliases
  • GHSA-9jvj-8h33-6cqp
Published
2023-04-18T22:35:30.098Z
Modified
2026-04-10T04:57:22.514686Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
SQL injection in sql/instance.py endpoint in Archery - GHSL-2022-101
Details

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 sql/instance.py endpoint's describe method. In several cases, user input coming from the tb_name parameter value, the db_name parameter value or the schema_name value in the sql/instance.py describe endpoint is passed to the describe_table methods in 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. Please take into account that in some cases all three parameter values are concatenated, in other only one or two of them. The affected methods are: describe_table in sql/engines/clickhouse.pywhich concatenates input which is passed to execution on the database in the query method in sql/engines/clickhouse.py, describe_table in sql/engines/mssql.py which concatenates input which is passed to execution on the database in the query methods in sql/engines/mssql.py, describe_table in sql/engines/mysql.pywhich concatenates input which is passed to execution on the database in the query method in sql/engines/mysql.py, describe_table in sql/engines/oracle.py which concatenates input which is passed to execution on the database in the query methods in sql/engines/oracle.py, describe_table in sql/engines/pgsql.pywhich concatenates input which is passed to execution on the database in the query methods in sql/engines/pgsql.py, describe_table in sql/engines/phoenix.py which concatenates input which is passed to execution on the database in the query method in sql/engines/phoenix.py. 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-101.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30552.json",
    "cwe_ids": [
        "CWE-89"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/hhyo/archery

Affected ranges

Type
GIT
Repo
https://github.com/hhyo/archery
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.9.0"
        }
    ]
}

Affected versions

v1.*
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.1.4
v1.1.5
v1.1.7
v1.2.0Beta
v1.2.0Beta2
v1.3.0
v1.3.1
v1.3.2
v1.3.3
v1.3.4
v1.3.5
v1.3.6
v1.3.7
v1.3.8
v1.4.0
v1.4.1
v1.4.2
v1.4.3
v1.4.5
v1.5.0
v1.5.1
v1.5.2
v1.5.3
v1.6.0
v1.6.1
v1.6.2
v1.6.3
v1.6.4
v1.6.5
v1.6.6
v1.6.7
v1.7.0
v1.7.1
v1.7.10
v1.7.11
v1.7.12
v1.7.13
v1.7.2
v1.7.3
v1.7.4
v1.7.5
v1.7.6
v1.7.7
v1.7.8
v1.7.9
v1.8.0
v1.8.1
v1.8.2
v1.8.3
v1.8.4
v1.8.5
v1.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30552.json"