Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Similar to #99 for GO feeds #200

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "appthreat-vulnerability-db"
version = "6.2.1"
version = "6.2.2"
description = "AppThreat's vulnerability database and package search library with a built-in sqlite based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities."
authors = [
{name = "Team AppThreat", email = "cloud@appthreat.com"},
Expand Down
3 changes: 1 addition & 2 deletions test/data/GO-2022-0251.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"summary": "Panic on NUL character in ROA in github.com/cloudflare/cfrpki",
"details": "OctoRPKI crashes when a repository returns an invalid ROA that is only an encoded NUL character (\\0).",
"aliases": [
"CVE-2021-3910",
"GHSA-5mxh-2qfv-4g7j"
"CVE-2021-3910"
],
"modified": "2024-05-20T16:03:47Z",
"published": "2022-07-15T23:07:28Z",
Expand Down
4 changes: 1 addition & 3 deletions test/data/GO-2022-0646.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"modified": "2022-11-21T19:50:45Z",
"aliases": [
"CVE-2020-8911",
"CVE-2020-8912",
"GHSA-7f33-f4f5-xwgw",
"GHSA-f5pg-7wfw-84q9"
"CVE-2020-8912"
],
"details": "The Go AWS S3 Crypto SDK contains vulnerabilities that can permit an attacker with write access to a bucket to decrypt files in that bucket.\n\nFiles encrypted by the V1 EncryptionClient using either the AES-CBC content cipher or the KMS key wrap algorithm are vulnerable. Users should migrate to the V1 EncryptionClientV2 API, which will not create vulnerable files. Old files will remain vulnerable until reencrypted with the new client.",
"affected": [
Expand Down
7 changes: 3 additions & 4 deletions vdb/lib/osv.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,10 @@ def to_vuln(cve_data):
# Offer an option to ignore malware data to keep the db size small
if getenv("OSV_EXCLUDE_MALWARE") and cve_id.startswith("MAL"):
return ret_data
# Quality of PYSEC data is quite low missing both severity and score
# Where a PYSEC feed also reference a github id, let's ignore it since G comes before P
# so it would have gotten processed
# Quality of PYSEC and GO data are quite low missing both severity and score
# Where a PYSEC or GO feed also reference a github id, let's ignore it
# Fixes #99
if cve_id.startswith("PYSEC"):
if cve_id.startswith("PYSEC") or cve_id.startswith("GO-"):
for i in aliases:
if i.startswith("GHSA"):
return ret_data
Expand Down
Loading