CVE-2024-45387: Github.com/apache/trafficcontrol/v8 SQL Injection Vulnerability

HIGH
Advisory Identifier: GHSA-vq94-9pfv-ccqr
CVSS 8.8
CWE-89
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-45387
GHSA Identifier GHSA-vq94-9pfv-ccqr
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Github.com/apache/trafficcontrol/v8
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

github.com/apache/trafficcontrol/v8 fixed: 8.0.2
Upgrade github.com/apache/trafficcontrol/v8 to 8.0.2
Verify Direct and Transitive Dependencies

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

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. Users are recommended to upgrade to version Apache Traffic Control 8.0.2 if you run an affected version of Traffic Ops.

CVE-2024-45387 Affected Github.com/apache/trafficcontrol/v8 Versions

1 component(s)
Fixed Versions:
8.0.2
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?
CVE-2024-45387 is a security vulnerability in Github.com/apache/trafficcontrol/v8 involving SQL injection in Apache Traffic Control under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Github.com/apache/trafficcontrol/v8 versions are affected?
Affected versions include releases prior to 8.0.2 across affected packages: github.com/apache/trafficcontrol/v8.
What version fixes CVE-2024-45387?
Upgrading to 8.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/apache/trafficcontrol/v8 affected?
Yes, github.com/apache/trafficcontrol/v8 is affected in releases prior to 8.0.2. Upgrade your dependency to 8.0.2 or later.
What is the CVSS score of CVE-2024-45387?
CVE-2024-45387 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-45387?
CVE-2024-45387 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (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.).
How can I check Go dependencies for CVE-2024-45387?
Run the dependency tree command: 'inspect dependencies for github.com/apache/trafficcontrol/v8'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}