Skip to content

Commit

Permalink
Similar to #99 for GO feeds
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Dec 17, 2024
1 parent bf95d7d commit ab90000
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
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 = "[email protected]"},
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

0 comments on commit ab90000

Please sign in to comment.