CVE-2022-26245: SQLinjection in falcon-plus
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.81425%
CWE
Published
3/28/2022
Updated
1/27/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/open-falcon/falcon-plus | go | <= 0.3.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The function GetHostsFromGroup
in host.go
directly interpolates the grpName
parameter into an SQL query using fmt.Sprintf
without proper sanitization or parameterization. This allows attackers to inject arbitrary SQL commands through the grpName
parameter. The GitHub issue #951 explicitly shows the vulnerable code pattern where user-controlled input flows into the SQL query construction.