GHSA-qvgg-r6rq-vwfx: Datadog/dd trace Datadog/dd-trace Circumvents Open_basedir INI Directive Vulnerability

LOW
Published
Advisory Summary

GHSA-qvgg-r6rq-vwfx is a LOW datadog/dd-trace circumvents open_basedir ini directive vulnerability (General Security Weakness) affecting Datadog/dd trace libraries in the Packagist ecosystem. The issue involves datadog/dd-trace circumvents open_basedir ini directive. Remediation is available by upgrading affected packages to version 0.30.2.

GHSA-qvgg-r6rq-vwfx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-qvgg-r6rq-vwfx
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Datadog/dd trace
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-qvgg-r6rq-vwfx

To remediate this vulnerability, upgrade all affected Datadog/dd trace dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

datadog/dd-trace fixed: 0.30.2
Upgrade datadog/dd-trace to 0.30.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 datadog/dd-trace

How to Check if You Are Affected

To determine whether your application is affected by GHSA-qvgg-r6rq-vwfx, inspect your project dependencies for Datadog/dd trace:

inspect dependencies for datadog/dd-trace

Analyze the terminal output to locate any version of Datadog/dd trace in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.30.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 General Security Weakness. In Datadog/dd trace, 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

datadog/dd-trace versions 0.30.0 prior to 0.30.2 are affected by a security and stability issue outlined in PR [#579](https://github.com/DataDog/dd-trace-php/pull/579). This pull request ensures that the ddtrace.request_init_hook remains bound by the open_basedir INI directive, effectively addressing potential vulnerabilities related to open_basedir restrictions. The update introduces a sandboxing mechanism to isolate the request init hook from errors or exceptions during execution, enhancing the library's stability and preventing adverse impacts on the main script.

GHSA-qvgg-r6rq-vwfx Affected Datadog/dd trace Versions

1 component(s)
Fixed Versions:
0.30.2
Product / Package Ecosystem Affected Versions Fixed Version
datadog/dd-trace
Packagist
≥ 0.30.0
< 0.30.2
0.30.2

References

Frequently Asked Questions

What is GHSA-qvgg-r6rq-vwfx?
GHSA-qvgg-r6rq-vwfx is a security vulnerability in Datadog/dd trace involving datadog/dd-trace Circumvents open_basedir INI directive under General Security Weakness.
Which Datadog/dd trace versions are affected?
Affected versions include releases prior to 0.30.2 across affected packages: datadog/dd-trace.
What version fixes GHSA-qvgg-r6rq-vwfx?
Upgrading to 0.30.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is datadog/dd-trace affected?
Yes, datadog/dd-trace is affected in releases prior to 0.30.2. Upgrade your dependency to 0.30.2 or later.
What CWE is associated with GHSA-qvgg-r6rq-vwfx?
GHSA-qvgg-r6rq-vwfx is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-qvgg-r6rq-vwfx?
Run the dependency tree command: 'inspect dependencies for datadog/dd-trace'. 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-qvgg-r6rq-vwfx",
  "modified" : "2024-05-15T18:33:21Z",
  "published" : "2024-05-15T18:33:21Z",
  "aliases" : [ ],
  "summary" : "datadog/dd-trace Circumvents open_basedir INI directive",
  "details" : "datadog/dd-trace versions 0.30.0 prior to 0.30.2 are affected by a security and stability issue outlined in PR [#579](https://github.com/DataDog/dd-trace-php/pull/579). This pull request ensures that the ddtrace.request_init_hook remains bound by the open_basedir INI directive, effectively addressing potential vulnerabilities related to open_basedir restrictions. \nThe update introduces a sandboxing mechanism to isolate the request init hook from errors or exceptions during execution, enhancing the library's stability and preventing adverse impacts on the main script.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "datadog/dd-trace"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.30.0"
      }, {
        "fixed" : "0.30.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/DataDog/dd-trace-php/pull/579"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DataDog/dd-trace-php/commit/87fc324eb63d533b35464f1dfca946795f2294fd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DataDog/dd-trace-php"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DataDog/dd-trace-php/releases/tag/0.30.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DataDog/dd-trace-php/releases/tag/0.30.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/datadog/dd-trace/2019-09-26-1.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T18:33:21Z",
    "nvd_published_at" : null
  }
}