Regression in getting Apache Hadoop vulnerabilities by commit hash
- Dominant language
- Go
- Stars
- 2.9k
- Forks
- 369
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 149
Description
**Describe the bug**
A [functional test](https://github.com/oss-review-toolkit/ort/blob/abc0eeca45586caad3eaffe37f2af7d0c2f0618b/plugins/advisors/osv/src/funTest/kotlin/OsvFunTest.kt#L96) for Google OSV integration in [ORT](https://github.com/oss-review-toolkit/ort) started to fail a few days ago due to the OSV API not returning the expected vulnerability (CVE-2022-26612) for commit [a3b9c37a397ad4188041dd80621bdeefc46885f2](https://github.com/apache/hadoop/commit/a3b9c37a397ad4188041dd80621bdeefc46885f2) (tag [3.3.1](https://github.com/apache/hadoop/releases/tag/rel%2Frelease-3.3.1)) anymore.
**To Reproduce**
Steps to reproduce the behaviour:
1. `curl -d '{"commit": "a3b9c37a397ad4188041dd80621bdeefc46885f2"}' "https://api.osv.dev/v1/query"`
**Expected behaviour**
A non-empty JSON response.
**Screenshots**
n/a
**Additional context**
Previously returned data in ORT-specific YAML serialization:
```yaml
- id: "CVE-2022-26612"
description: "In Apache Hadoop, The unTar function uses unTarUsingJava function\
\ on Windows and the built-in tar utility on Unix and other OSes. As a result,\
\ a TAR entry may create a symlink under the expected extraction directory which\
\ points to an external directory. A subsequent TAR entry may extract an arbitrary\
\ file into the external directory using the symlink name. This however would\
\ be caught by the same targetDirPath check on Unix because of the getCanonicalPath\
\ call. However on Windows, getCanonicalPath doesn't resolve symbolic links, which\
\ bypasses the check. unpackEntries during TAR extraction follows symbolic links\
\ which allows writing outside expected base directory on Windows. This was addressed\
\ in Apache Hadoop 3.2.3"
references:
- url: "https://security.netapp.com/advisory/ntap-20220519-0004/"
scoring_system: "CVSS_V3"
severity: null
score: null
vector: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
- url: "https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz"
scoring_system: "CVSS_V3"
severity: null
score: null
vector: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
```
Contributor guide
Assessment
This issue has not been assessed yet.