Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
5 changes: 3 additions & 2 deletions vulnfeeds/cmd/cve-bulk-converter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ func worker(wg *sync.WaitGroup, jobs <-chan string, outDir string, cnas []string
}

// Perform the conversion and export the results.
if err = cvelist2osv.ConvertAndExportCVEToOSV(cve, osvFile, metricsFile, sourceLink); err != nil {
var outcome cvelist2osv.ConversionOutcome
if outcome, err = cvelist2osv.ConvertAndExportCVEToOSV(cve, osvFile, metricsFile, sourceLink); err != nil {
logger.Warn("Failed to generate an OSV record", slog.String("cve", string(cveID)), slog.Any("err", err))
} else {
logger.Info("Generated OSV record for "+string(cveID), slog.String("cve", string(cveID)), slog.String("cna", cve.Metadata.AssignerShortName))
logger.Info("Generated OSV record for "+string(cveID), slog.String("cve", string(cveID)), slog.String("cna", cve.Metadata.AssignerShortName), slog.Any("outcome", outcome))
}

metricsFile.Close()
Expand Down
5 changes: 3 additions & 2 deletions vulnfeeds/cmd/cve-single-converter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ func main() {
}

// Perform the conversion and export the results.
if err = cvelist2osv.ConvertAndExportCVEToOSV(cve, osvFile, metricsFile, ""); err != nil {
var outcome cvelist2osv.ConversionOutcome
if outcome, err = cvelist2osv.ConvertAndExportCVEToOSV(cve, osvFile, metricsFile, ""); err != nil {
logger.Warn("Failed to generate an OSV record", slog.String("cve", string(cveID)), slog.Any("err", err))
} else {
logger.Info("Generated OSV record for "+string(cveID), slog.String("cve", string(cveID)), slog.String("cna", cve.Metadata.AssignerShortName))
logger.Info("Generated OSV record for "+string(cveID), slog.String("cve", string(cveID)), slog.String("cna", cve.Metadata.AssignerShortName), slog.Any("outcome", outcome))
}

metricsFile.Close()
Expand Down
180 changes: 180 additions & 0 deletions vulnfeeds/cvelist2osv/__snapshots__/cna-snaps/GitHub_M.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@

[TestSnapshotConversion/CVE-2023-45803.json - 1]
{
"affected": [
{
"ranges": [
{
"database_specific": {
"versions": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.7"
}
]
},
"events": [
{
"introduced": "6446fef0cf432ca035169602a1447a0d8ef53e80"
},
{
"fixed": "56f01e088dc006c03d4ee6ea9da4ab810f1ed700"
}
],
"repo": "https://github.com/urllib3/urllib3",
"type": "GIT"
},
{
"database_specific": {
"versions": [
{
"introduced": "0"
},
{
"fixed": "1.26.18"
}
]
},
"events": [
{
"introduced": "0"
},
{
"fixed": "9c2c2307dd1d6af504e09aac0326d86ee3597a0b"
}
],
"repo": "https://github.com/urllib3/urllib3",
"type": "GIT"
}
]
}
],
"aliases": [
"GHSA-g4mx-q9vg-27p4"
],
"database_specific": {
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-200"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/..."
},
"details": "urllib3 is a user-friendly HTTP client library for Python. urllib3 previously wouldn't remove the HTTP request body when an HTTP redirect response using status 301, 302, or 303 after the request had its method changed from one that could accept a request body (like `POST`) to `GET` as is required by HTTP RFCs. Although this behavior is not specified in the section for redirects, it can be inferred by piecing together information from different sections and we have observed the behavior in other major HTTP client implementations like curl and web browsers. Because the vulnerability requires a previously trusted service to become compromised in order to have an impact on confidentiality we believe the exploitability of this vulnerability is low. Additionally, many users aren't putting sensitive data in HTTP request bodies, if this is the case then this vulnerability isn't exploitable. Both of the following conditions must be true to be affected by this vulnerability: 1. Using urllib3 and submitting sensitive information in the HTTP request body (such as form data or JSON) and 2. The origin service is compromised and starts redirecting using 301, 302, or 303 to a malicious peer or the redirected-to service becomes compromised. This issue has been addressed in versions 1.26.18 and 2.0.7 and users are advised to update to resolve this issue. Users unable to update should disable redirects for services that aren't expecting to respond with redirects with `redirects=False` and disable automatic redirects with `redirects=False` and handle 301, 302, and 303 redirects manually by stripping the HTTP request body.",
"id": "CVE-2023-45803",
"modified": "2025-02-13T17:14:11.578Z",
"published": "2023-10-17T19:43:45.404Z",
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/..."
},
{
"type": "FIX",
"url": "https://github.com/urllib3/urllib3/commit/4e98d57809dacab1cbe625fddeec1a290c478ea9"
},
{
"type": "ADVISORY",
"url": "https://github.com/urllib3/urllib3/security/advisories/GHSA-g4mx-q9vg-27p4"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4R2Y5XK3WALSR3FNAGN7JBYV2B343ZKB/"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5/"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PPDPLM6UUMN55ESPQWJFLLIZY4ZKCNRX/"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-45803"
},
{
"type": "WEB",
"url": "https://www.rfc-editor.org/rfc/rfc9110.html#name-get"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "Request body not stripped after redirect in urllib3"
}
---

[TestSnapshotConversion/CVE-2024-21634.json - 1]
{
"affected": [
{
"ranges": [
{
"database_specific": {
"versions": [
{
"introduced": "0"
},
{
"fixed": "1.10.5"
}
]
},
"events": [
{
"introduced": "0"
},
{
"fixed": "019a6117fb99131f74f92ecf462169613234abbf"
}
],
"repo": "https://github.com/amazon-ion/ion-java",
"type": "GIT"
}
]
}
],
"aliases": [
"GHSA-264p-99wq-f4j6"
],
"database_specific": {
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-770"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/..."
},
"details": "Amazon Ion is a Java implementation of the Ion data notation. Prior to version 1.10.5, a potential denial-of-service issue exists in `ion-java` for applications that use `ion-java` to deserialize Ion text encoded data, or deserialize Ion text or binary encoded data into the `IonValue` model and then invoke certain `IonValue` methods on that in-memory representation. An actor could craft Ion data that, when loaded by the affected application and/or processed using the `IonValue` model, results in a `StackOverflowError` originating from the `ion-java` library. The patch is included in `ion-java` 1.10.5. As a workaround, do not load data which originated from an untrusted source or that could have been tampered with.",
"id": "CVE-2024-21634",
"modified": "2025-06-16T19:45:37.088Z",
"published": "2024-01-03T22:46:03.585Z",
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/..."
},
{
"type": "ADVISORY",
"url": "https://github.com/amazon-ion/ion-java/security/advisories/GHSA-264p-99wq-f4j6"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21634"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "Ion Java StackOverflow vulnerability"
}
---
82 changes: 82 additions & 0 deletions vulnfeeds/cvelist2osv/__snapshots__/cna-snaps/GitLab.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@

[TestSnapshotConversion/CVE-2025-1110.json - 1]
{
"affected": [
{
"ranges": [
{
"database_specific": {
"versions": [
{
"introduced": "18.0"
},
{
"fixed": "18.0.1"
}
]
},
"events": [
{
"introduced": "504fd9e5236e13d674e051c6b8a1e9892b371c58"
},
{
"fixed": "3426be1b93852c5358240c5df40970c0ddfbdb2a"
}
],
"repo": "https://gitlab.com/gitlab-org/gitlab",
"type": "GIT"
}
]
}
],
"database_specific": {
"cna_assigner": "GitLab",
"cwe_ids": [
"CWE-1220"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/..."
},
"details": "An issue has been discovered in GitLab CE/EE affecting all versions from 18.0 before 18.0.1. In certain circumstances, a user with limited permissions could access Job Data via a crafted GraphQL query.",
"id": "CVE-2025-1110",
"modified": "2025-05-22T14:17:44.379Z",
"published": "2025-05-22T14:02:31.385Z",
"references": [
{
"type": "PACKAGE",
"url": "git://git@gitlab.com:gitlab-org/gitlab.git"
},
{
"type": "ADVISORY",
"url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/..."
},
{
"type": "REPORT",
"url": "https://gitlab.com/gitlab-org/gitlab/-/issues/517693"
},
{
"type": "REPORT",
"url": "https://hackerone.com/reports/2972576"
},
{
"type": "ARTICLE",
"url": "https://hackerone.com/reports/2972576"
},
{
"type": "EVIDENCE",
"url": "https://hackerone.com/reports/2972576"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-1110"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "Insufficient Granularity of Access Control in GitLab"
}
---
Loading
Loading