Skip to content

Commit 35f9e88

Browse files
authored
Similar to #99 for GO feeds (#200)
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
1 parent bf95d7d commit 35f9e88

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "appthreat-vulnerability-db"
3-
version = "6.2.1"
3+
version = "6.2.2"
44
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."
55
authors = [
66
{name = "Team AppThreat", email = "cloud@appthreat.com"},

test/data/GO-2022-0251.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"summary": "Panic on NUL character in ROA in github.com/cloudflare/cfrpki",
44
"details": "OctoRPKI crashes when a repository returns an invalid ROA that is only an encoded NUL character (\\0).",
55
"aliases": [
6-
"CVE-2021-3910",
7-
"GHSA-5mxh-2qfv-4g7j"
6+
"CVE-2021-3910"
87
],
98
"modified": "2024-05-20T16:03:47Z",
109
"published": "2022-07-15T23:07:28Z",

test/data/GO-2022-0646.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"modified": "2022-11-21T19:50:45Z",
55
"aliases": [
66
"CVE-2020-8911",
7-
"CVE-2020-8912",
8-
"GHSA-7f33-f4f5-xwgw",
9-
"GHSA-f5pg-7wfw-84q9"
7+
"CVE-2020-8912"
108
],
119
"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.",
1210
"affected": [

vdb/lib/osv.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,10 @@ def to_vuln(cve_data):
124124
# Offer an option to ignore malware data to keep the db size small
125125
if getenv("OSV_EXCLUDE_MALWARE") and cve_id.startswith("MAL"):
126126
return ret_data
127-
# Quality of PYSEC data is quite low missing both severity and score
128-
# Where a PYSEC feed also reference a github id, let's ignore it since G comes before P
129-
# so it would have gotten processed
127+
# Quality of PYSEC and GO data are quite low missing both severity and score
128+
# Where a PYSEC or GO feed also reference a github id, let's ignore it
130129
# Fixes #99
131-
if cve_id.startswith("PYSEC"):
130+
if cve_id.startswith("PYSEC") or cve_id.startswith("GO-"):
132131
for i in aliases:
133132
if i.startswith("GHSA"):
134133
return ret_data

0 commit comments

Comments
 (0)