Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ private List<Issue> toIssues(JsonNode response) {
List<Issue> issues = new ArrayList<>();
details.forEach(
vuln -> {
if (vuln.hasNonNull("withdrawn")) {
return;
}
var status = (ObjectNode) vuln.get("status");
if (status == null || !status.hasNonNull("affected")) {
return;
Expand All @@ -123,6 +126,9 @@ private List<Issue> toIssues(JsonNode response) {

affected.forEach(
data -> {
if (data.hasNonNull("withdrawn")) {
return;
}
var source = getSource(data);
if (source == null) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,160 @@ private static Stream<String> testResponseToIssuesWithValidData() {
]
},
"warnings": []
}
},
""",
// new response with withdrawn field
"""
{
"pkg:maven/org.postgresql/postgresql@42.5.0": {
"details": [
{
"normative": true,
"identifier": "CVE-2022-41948",
"title": "This CVE is a placeholder for a vulnerability that has been withdrawn",
"description": "This CVE is a placeholder for a vulnerability that has been withdrawn",
"withdrawn": "2024-01-01T00:00:00Z",
"status": {
"affected": [
{
"uuid": "urn:uuid:595a7085-f230-42b5-9c8f-ab25939d9900",
"identifier": "CVE-2022-41948",
"document_id": "CVE-2022-41948",
"title": "This CVE is a placeholder for a vulnerability that has been withdrawn",
"withdrawn": "2024-01-01T00:00:00Z",
"labels": {
"type": "osv",
"file": "github-reviewed/2022/11/GHSA-562r-vg33-8x8h/GHSA-562r-vg33-8x8h.json",
"importer": "osv-github",
"source": "https://github.com/github/advisory-database"
},
"scores": [
{
"type": "3.1",
"value": 5.8,
"severity": "medium"
}
]
}
]
}
},
{
"normative": true,
"identifier": "CVE-2022-41946",
"title": "TemporaryFolder on unix-like systems does not limit access to created files in pgjdbc",
"description": "pgjdbc is an open source postgresql JDBC Driver. In affected versions a prepared statement using either `PreparedStatement.setText(int, InputStream)` or `PreparedStatemet.setBytea(int, InputStream)` will create a temporary file if the InputStream is larger than 2k. This will create a temporary file which is readable by other users on Unix like systems, but not MacOS. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system. This vulnerability does not allow other users to overwrite the contents of these directories or files. This is purely an information disclosure vulnerability. Because certain JDK file system APIs were only added in JDK 1.7, this this fix is dependent upon the version of the JDK you are using. Java 1.7 and higher users: this vulnerability is fixed in 4.5.0. Java 1.6 and lower users: no patch is available. If you are unable to patch, or are stuck running on Java 1.6, specifying the java.io.tmpdir system environment variable to a directory that is exclusively owned by the executing user will mitigate this vulnerability.",
"cwes": [
"CWE-200",
"CWE-377"
],
"status": {
"affected": [
{
"uuid": "urn:uuid:595a7085-f230-42b5-9c8f-ab25939d99ed",
"identifier": "GHSA-562r-vg33-8x8h",
"document_id": "GHSA-562r-vg33-8x8h",
"title": "TemporaryFolder on unix-like systems does not limit access to created files",
"labels": {
"type": "osv",
"file": "github-reviewed/2022/11/GHSA-562r-vg33-8x8h/GHSA-562r-vg33-8x8h.json",
"importer": "osv-github",
"source": "https://github.com/github/advisory-database"
},
"scores": [
{
"type": "3.1",
"value": 5.8,
"severity": "medium"
}
]
},
{
"uuid": "urn:uuid:595a7085-f230-42b5-9c8f-ab25939d9908",
"identifier": "CVE-2022-41946",
"document_id": "CVE-2022-41946",
"title": "This CVE is a placeholder for a vulnerability that has been withdrawn",
"withdrawn": "2024-01-01T00:00:00Z",
"labels": {
"type": "osv",
"file": "github-reviewed/2022/11/GHSA-562r-vg33-8x8h/GHSA-562r-vg33-8x8h.json",
"importer": "osv-github",
"source": "https://github.com/github/advisory-database"
},
"scores": [
{
"type": "3.1",
"value": 5.8,
"severity": "medium"
}
]
}
]
}
},
{
"normative": true,
"identifier": "CVE-2024-1597",
"title": "pgjdbc SQL Injection via line comment generation",
"description": "pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there is no vulnerability. A placeholder for a numeric value must be immediately preceded by a minus. There must be a second placeholder for a string value after the first placeholder; both must be on the same line. By constructing a matching string payload, the attacker can inject SQL to alter the query,bypassing the protections that parameterized queries bring against SQL Injection attacks. Versions before 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, and 42.2.28 are affected.",
"cwes": [
"CWE-89"
],
"status": {
"affected": [
{
"uuid": "urn:uuid:020c0585-32db-4949-bd41-87850add2277",
"identifier": "https://www.redhat.com/#RHSA-2024_1797",
"document_id": "RHSA-2024:1797",
"issuer": {
"id": "aa42c1b1-0591-447c-b2bb-80888252c85f",
"name": "Red Hat Product Security"
},
"title": "Red Hat Security Advisory: Red Hat build of Quarkus 2.13.9.SP2 release and security update",
"labels": {
"importer": "redhat-csaf",
"file": "2024/rhsa-2024_1797.json",
"source": "https://security.access.redhat.com/data/csaf/v2/advisories/",
"type": "csaf"
},
"scores": [
{
"type": "3.1",
"value": 9.8,
"severity": "critical"
}
]
},
{
"uuid": "urn:uuid:ea8dd8f5-40a9-4817-ba11-9606f799fe6e",
"identifier": "https://www.redhat.com/#RHSA-2024_1662",
"document_id": "RHSA-2024:1662",
"issuer": {
"id": "aa42c1b1-0591-447c-b2bb-80888252c85f",
"name": "Red Hat Product Security"
},
"title": "Red Hat Security Advisory: Red Hat build of Quarkus 3.2.11 release and security update",
"labels": {
"file": "2024/rhsa-2024_1662.json",
"importer": "redhat-csaf",
"source": "https://security.access.redhat.com/data/csaf/v2/advisories/",
"type": "csaf"
},
"scores": [
{
"type": "3.1",
"value": 9.8,
"severity": "critical"
}
]
}
]
}
}
]
},
"warnings": []
},
""");
}

Expand Down