GHSA-qvgg-r6rq-vwfx datadog/dd-trace Circumvents open_basedir INI directive
Not scored
Published
Check this codebase for GHSA-qvgg-r6rq-vwfx and fix it if it is affected.
What it is: GHSA-qvgg-r6rq-vwfx is a vulnerability in datadog/dd-trace, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-qvgg-r6rq-vwfx in the wild and no public exploit code.
Affected packages and fixed versions:
- datadog/dd-trace (Packagist): affected from 0.30.0; fixed in 0.30.2
- datadog/dd-trace (Packagist): affected from 0.30.0; fixed in 0.30.2
Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/GHSA-qvgg-r6rq-vwfx/ (Markdown: https://insights.sbomify.com/GHSA-qvgg-r6rq-vwfx/index.md)
The dd-trace PHP library bypasses open_basedir restrictions, allowing access to files outside the intended directory scope.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-qvgg-r6rq-vwfx?
GHSA-qvgg-r6rq-vwfx is a vulnerability in datadog/dd-trace, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
datadog/dd-trace versions 0.30.0 prior to 0.30.2 are affected by a security and stability issue outlined in PR #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.
Which versions are affected by GHSA-qvgg-r6rq-vwfx?
2 open source packages ship an affected version, including datadog/dd-trace.
| Package | Affected | Fixed in |
|---|---|---|
datadog/dd-trace Packagist | From 0.30.0 | 0.30.2 |
datadog/dd-trace Packagist | From 0.30.0 | 0.30.2 |
How do I fix GHSA-qvgg-r6rq-vwfx?
Upgrade datadog/dd-trace to 0.30.2 or later.
Is GHSA-qvgg-r6rq-vwfx being exploited?
There is no known exploitation of GHSA-qvgg-r6rq-vwfx in the wild and no public exploit code.