CVE-2023-41891: Github.com/flyteorg/flyteadmin SQL Injection Vulnerability
LOWCVE-2023-41891 is a LOW (CVSS 3.5) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Github.com/flyteorg/flyteadmin libraries in the Go ecosystem. The issue involves flyte admin sql injection in list filters. Remediation is available by upgrading affected packages to version 1.1.124.
CVE-2023-41891 at a Glance
Security Impact
CVSS: 3.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N).
How to Fix CVE-2023-41891
To remediate this vulnerability, upgrade all affected Github.com/flyteorg/flyteadmin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/flyteorg/flyteadmin to 1.1.124
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/flyteorg/flyteadmin
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-41891, inspect your project dependencies for Github.com/flyteorg/flyteadmin:
inspect dependencies for github.com/flyteorg/flyteadmin
Analyze the terminal output to locate any version of Github.com/flyteorg/flyteadmin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.124), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Github.com/flyteorg/flyteadmin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-41891 Affected Github.com/flyteorg/flyteadmin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/flyteorg/flyteadmin
|
Go |
< 1.1.124
|
1.1.124
|
References
Frequently Asked Questions
What is CVE-2023-41891?
Which Github.com/flyteorg/flyteadmin versions are affected?
What version fixes CVE-2023-41891?
Is github.com/flyteorg/flyteadmin affected?
What is the CVSS score of CVE-2023-41891?
What CWE is associated with CVE-2023-41891?
How can I check Go dependencies for CVE-2023-41891?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r847-6w6h-r8g4",
"modified" : "2023-10-27T17:39:08Z",
"published" : "2023-10-27T17:39:08Z",
"aliases" : [ "CVE-2023-41891" ],
"summary" : "Flyte Admin SQL Injection in List Filters",
"details" : "### Impact\nList endpoints on Flyte Admin has a SQL vulnerability where a malicious user can send a REST requests with custom SQL statements as list filters.\n\n### Workarounds\nThe attacker needs to have access to the flyteadmin installation (typically either behind a VPN or authentication).\n\n### References\nhttps://owasp.org/www-community/attacks/SQL_Injection#\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/flyteorg/flyteadmin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.124"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/flyteorg/flyteadmin/security/advisories/GHSA-r847-6w6h-r8g4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-41891"
}, {
"type" : "WEB",
"url" : "https://github.com/flyteorg/flyteadmin/commit/b3177ef70f068e908140b8a4a9913dfa74f289fd"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/flyteorg/flyteadmin"
}, {
"type" : "WEB",
"url" : "https://owasp.org/www-community/attacks/SQL_Injection#"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-27T17:39:08Z",
"nvd_published_at" : "2023-10-30T19:15:07Z"
}
}