From 0edd8cb943fcdad016da45447b17648bb61b44ad Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Mon, 25 Nov 2024 11:51:46 +0100 Subject: [PATCH] Show version fixed in cve details page --- src/main/java/io/gardenlinux/glvd/db/CveDetails.java | 10 +++++++++- src/main/resources/templates/getCveDetails.html | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/gardenlinux/glvd/db/CveDetails.java b/src/main/java/io/gardenlinux/glvd/db/CveDetails.java index f02e3d3..71a07c3 100644 --- a/src/main/java/io/gardenlinux/glvd/db/CveDetails.java +++ b/src/main/java/io/gardenlinux/glvd/db/CveDetails.java @@ -38,6 +38,9 @@ public class CveDetails { @Column(name = "source_package_version", nullable = false) private List sourcePackageVersion; + @Column(name = "version_fixed", nullable = false) + private List versionFixed; + @Column(name = "base_score_v40", nullable = true) private Float baseScoreV40; @@ -65,7 +68,7 @@ public class CveDetails { public CveDetails() { } - public CveDetails(String cveId, String vulnStatus, String description, String cvePublishedDate, List distro, List distroVersion, List isVulnerable, List sourcePackageName, List sourcePackageVersion, Float baseScoreV40, Float baseScoreV31, Float baseScoreV30, Float baseScoreV2, String vectorStringV40, String vectorStringV31, String vectorStringV30, String vectorStringV2) { + public CveDetails(String cveId, String vulnStatus, String description, String cvePublishedDate, List distro, List distroVersion, List isVulnerable, List sourcePackageName, List sourcePackageVersion, List versionFixed, Float baseScoreV40, Float baseScoreV31, Float baseScoreV30, Float baseScoreV2, String vectorStringV40, String vectorStringV31, String vectorStringV30, String vectorStringV2) { this.cveId = cveId; this.vulnStatus = vulnStatus; this.description = description; @@ -75,6 +78,7 @@ public CveDetails(String cveId, String vulnStatus, String description, String cv this.isVulnerable = isVulnerable; this.sourcePackageName = sourcePackageName; this.sourcePackageVersion = sourcePackageVersion; + this.versionFixed = versionFixed; this.baseScoreV40 = baseScoreV40; this.baseScoreV31 = baseScoreV31; this.baseScoreV30 = baseScoreV30; @@ -121,6 +125,10 @@ public List getSourcePackageVersion() { return sourcePackageVersion; } + public List getVersionFixed() { + return versionFixed; + } + public Float getBaseScoreV40() { return baseScoreV40; } diff --git a/src/main/resources/templates/getCveDetails.html b/src/main/resources/templates/getCveDetails.html index 8c52126..d42f4ba 100644 --- a/src/main/resources/templates/getCveDetails.html +++ b/src/main/resources/templates/getCveDetails.html @@ -41,6 +41,7 @@

Affected Linux Versions

Source Package Package Version Is Vulnerable + Is fixed in Version @@ -49,6 +50,7 @@

Affected Linux Versions

+