aboutcode-org / aboutcode-org/vulnerablecode

Behaviour of 'arch' param in debian package request

Đang mở
#582 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
data-quality feature Priority: medium
Ngôn ngữ chính
Python
Star
702
Fork
328
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
3

Mô tả

Hello,

This is more a question than a bug.
The api/docs of VulnerableCode gives the following quest example:
`pkg:deb/debian/curl@7.50.3-1?arch=i386&distro=jessie`

I try to play with the `arch` param.
If I query `pkg:deb/debian/apt@2.2.4?distro=bullseye` to VulnerableCode I receive:
```

{
"url": "http://localhost:9999/api/packages/613937",
"unresolved_vulnerabilities": [
{
"url": "http://localhost:9999/api/vulnerabilities/7783",
"vulnerability_id": "CVE-2011-3374",
"references": [
{
"reference_id": "CVE-2011-3374",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2011-3374",
"scores": [
[...]
```

And if I look on https://security-tracker.debian.org/tracker/CVE-2011-3374 I see that `all versions` are vulnerable.

Then when I query
`pkg:deb/debian/apt@2.2.4?distro=bullseye&arch=amd64`
why do I get no vulnerabilities ?

```
[
{
"type": "deb",
"namespace": "debian",
"name": "apt",
"version": "2.2.4",
"qualifiers": {
"arch": "amd64",
"distro": "bullseye"
},
"subpath": null,
"unresolved_vulnerabilities": [],
"resolved_vulnerabilities": [],
"purl": "pkg:deb/debian/apt@2.2.4?distro=bullseye&arch=amd64"
}
]
```

Shouldn't the same vulnerability be returned since it affects all versions ?

Version of VulnerableCode used: https://github.com/nexB/vulnerablecode/commit/4677f70c654a15da529a80d19d7de1ca013ef8eb

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.