CVE-2024-45387: Github.com/apache/trafficcontrol/v8 SQL Injection Vulnerability
HIGHCVE-2024-45387 is a HIGH (CVSS 8.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Github.com/apache/trafficcontrol/v8 libraries in the Go ecosystem. The issue involves sql injection in apache traffic control. Remediation is available by upgrading affected packages to version 8.0.2.
CVE-2024-45387 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-45387
To remediate this vulnerability, upgrade all affected Github.com/apache/trafficcontrol/v8 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/apache/trafficcontrol/v8 to 8.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/apache/trafficcontrol/v8
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-45387, inspect your project dependencies for Github.com/apache/trafficcontrol/v8:
inspect dependencies for github.com/apache/trafficcontrol/v8
Analyze the terminal output to locate any version of Github.com/apache/trafficcontrol/v8 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.2), 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/apache/trafficcontrol/v8, 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-2024-45387 Affected Github.com/apache/trafficcontrol/v8 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/apache/trafficcontrol/v8
|
Go |
≥ 8.0.0
< 8.0.2
|
8.0.2
|
References
Frequently Asked Questions
What is CVE-2024-45387?
Which Github.com/apache/trafficcontrol/v8 versions are affected?
What version fixes CVE-2024-45387?
Is github.com/apache/trafficcontrol/v8 affected?
What is the CVSS score of CVE-2024-45387?
What CWE is associated with CVE-2024-45387?
How can I check Go dependencies for CVE-2024-45387?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vq94-9pfv-ccqr",
"modified" : "2025-02-11T19:06:05Z",
"published" : "2024-12-23T18:30:47Z",
"aliases" : [ "CVE-2024-45387" ],
"summary" : "SQL injection in Apache Traffic Control",
"details" : "An SQL injection vulnerability in Traffic Ops in Apache Traffic Control <= 8.0.1, >= 8.0.0 allows a privileged user with role \"admin\", \"federation\", \"operations\", \"portal\", or \"steering\" to execute arbitrary SQL against the database by sending a specially-crafted PUT request.\n\nUsers are recommended to upgrade to version Apache Traffic Control 8.0.2 if you run an affected version of Traffic Ops.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/apache/trafficcontrol/v8"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45387"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/trafficcontrol"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/trafficcontrol/releases/tag/v8.0.2"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/t38nk5n7t8w3pb66z7z4pqfzt4443trr"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/12/23/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-23T20:56:26Z",
"nvd_published_at" : "2024-12-23T16:15:06Z"
}
}