GHSA-qvgg-r6rq-vwfx: Datadog/dd trace Datadog/dd-trace Circumvents Open_basedir INI Directive Vulnerability
LOWGHSA-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
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.
Upgrade datadog/dd-trace to 0.30.2
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
GHSA-qvgg-r6rq-vwfx Affected Datadog/dd trace Versions
1 component(s)| 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?
Which Datadog/dd trace versions are affected?
What version fixes GHSA-qvgg-r6rq-vwfx?
Is datadog/dd-trace affected?
What CWE is associated with GHSA-qvgg-r6rq-vwfx?
How can I check Packagist dependencies for GHSA-qvgg-r6rq-vwfx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}