CVE-2019-19025: Github.com/goharbor/harbor Cross-site Request Forgery (CSRF) Vulnerability

HIGH
Advisory Identifier: GHSA-rffr-c932-cpxv
CVSS 7.6
CWE-352
Published
Advisory Summary

CVE-2019-19025 is a HIGH (CVSS 7.6) cross-site request forgery (csrf) vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Github.com/goharbor/harbor libraries in the Go ecosystem. The issue involves cross-site request forgery (csrf) in cloud native computing foundation harbor. Remediation is available by upgrading affected packages to version 1.8.6, 1.9.3.

CVE-2019-19025 at a Glance

CVE Identifier CVE-2019-19025
GHSA Identifier GHSA-rffr-c932-cpxv
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Github.com/goharbor/harbor
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2019-19025

To remediate this vulnerability, upgrade all affected Github.com/goharbor/harbor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/goharbor/harbor fixed: 1.8.6
Upgrade github.com/goharbor/harbor to 1.8.6
github.com/goharbor/harbor fixed: 1.9.3
Upgrade github.com/goharbor/harbor to 1.9.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/goharbor/harbor

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-19025, inspect your project dependencies for Github.com/goharbor/harbor:

inspect dependencies for github.com/goharbor/harbor

Analyze the terminal output to locate any version of Github.com/goharbor/harbor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Github.com/goharbor/harbor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Cure53 has discovered that the Harbor web interface does not implement protection mechanisms against Cross-Site Request Forgery (CSRF). By luring an authenticated user onto a prepared third-party website, an attacker can execute any action on the platform in the context of the currently authenticated victim. The vulnerability was immediately fixed by the Harbor team and all supported versions were patched. Successful exploitation of this issue will lead to 3rd parties executing actions on the platform of behalf of authenticated users and administrators. If your product uses the affected releases of Harbor, update to version 1.8.6 and 1.9.3 to patch this issue immediately. https://github.com/goharbor/harbor/releases/tag/v1.8.6 https://github.com/goharbor/harbor/releases/tag/v1.9.3

CVE-2019-19025 Affected Github.com/goharbor/harbor Versions

2 component(s)
Fixed Versions:
1.8.61.9.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/goharbor/harbor
Go
≥ 1.7.0
< 1.8.6
1.8.6
github.com/goharbor/harbor
Go
≥ 1.9.0
< 1.9.3
1.9.3

References

Frequently Asked Questions

What is CVE-2019-19025?
CVE-2019-19025 is a security vulnerability in Github.com/goharbor/harbor involving Cross-site Request Forgery (CSRF) in Cloud Native Computing Foundation Harbor under CWE-352: Cross-Site Request Forgery (CSRF).
Which Github.com/goharbor/harbor versions are affected?
Affected versions include releases prior to 1.8.6, 1.9.3 across affected packages: github.com/goharbor/harbor.
What version fixes CVE-2019-19025?
Upgrading to 1.8.6, 1.9.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/goharbor/harbor affected?
Yes, github.com/goharbor/harbor is affected in releases prior to 1.8.6, 1.9.3. Upgrade your dependency to 1.8.6, 1.9.3 or later.
What is the CVSS score of CVE-2019-19025?
CVE-2019-19025 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2019-19025?
CVE-2019-19025 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check Go dependencies for CVE-2019-19025?
Run the dependency tree command: 'inspect dependencies for github.com/goharbor/harbor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rffr-c932-cpxv",
  "modified" : "2024-09-06T21:54:42Z",
  "published" : "2021-05-18T18:27:50Z",
  "aliases" : [ "CVE-2019-19025" ],
  "summary" : "Cross-site Request Forgery (CSRF) in Cloud Native Computing Foundation Harbor",
  "details" : "Cure53 has discovered that the Harbor web interface does not implement protection mechanisms against Cross-Site Request Forgery (CSRF). By luring an authenticated user onto a prepared third-party website, an attacker can execute any action on the platform in the context of the currently authenticated victim.\n\nThe vulnerability was immediately fixed by the Harbor team and all supported versions were patched.\n\nSuccessful exploitation of this issue will lead to 3rd parties executing actions on the platform of behalf of authenticated users and administrators.\n\nIf your product uses the affected releases of Harbor, update to version 1.8.6 and 1.9.3 to patch this issue immediately.\n\nhttps://github.com/goharbor/harbor/releases/tag/v1.8.6\nhttps://github.com/goharbor/harbor/releases/tag/v1.9.3",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.8.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.9.0"
      }, {
        "fixed" : "1.9.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/security/advisories/GHSA-gcqm-v682-ccw6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-19025"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/security/advisories"
  }, {
    "type" : "WEB",
    "url" : "https://tanzu.vmware.com/security/cve-2019-19025"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-04T22:01:58Z",
    "nvd_published_at" : "2020-03-20T03:15:00Z"
  }
}