CVE-2025-30086: Github.com/goharbor/harbor Possible ORM Leak Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-h27m-3qw8-3pw8
CVSS 4.9
CWE-202 CWE-200
Published
Advisory Summary

CVE-2025-30086 is a MODERATE (CVSS 4.9) possible orm leak vulnerability vulnerability (CWE-202: Exposure of Sensitive Information Through Data Queries) affecting Github.com/goharbor/harbor libraries in the Go ecosystem. The issue involves possible orm leak vulnerability in the harbor. Remediation is available by upgrading affected packages to version 2.13.1, 2.12.4, 2.4.0-rc1.0.20250331071157-dce7d9f5cffb.

CVE-2025-30086 at a Glance

CVE Identifier CVE-2025-30086
GHSA Identifier GHSA-h27m-3qw8-3pw8
Severity MODERATE
CVSS v3.1 Base Score 4.9
CWE Classification CWE-202: Exposure of Sensitive Information Through Data Queries
Affected Product Github.com/goharbor/harbor
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.9

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

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

How to Fix CVE-2025-30086

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: 2.13.1
Upgrade github.com/goharbor/harbor to 2.13.1
github.com/goharbor/harbor fixed: 2.12.4
Upgrade github.com/goharbor/harbor to 2.12.4
github.com/goharbor/harbor fixed: 2.4.0-rc1.0.20250331071157-dce7d9f5cffb
Upgrade github.com/goharbor/harbor to 2.4.0-rc1.0.20250331071157-dce7d9f5cffb
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-2025-30086, 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 2.13.1), 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-202: Exposure of Sensitive Information Through Data Queries, where when trying to keep information confidential, an attacker can often infer some of the information by using statistics. 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

### Impact Administrator users on Harbor could exploit an ORM Leak (https://www.elttam.com/blog/plormbing-your-django-orm/) vulnerability that was present in the `/api/v2.0/users` endpoint to leak users' password hash and salt values. This vulnerability was introduced into the application because the `q` URL parameter allowed the administrator to filter users by any column, and the filter `password=~` could be abused to leak out a user's password hash character by character. An attacker with administrator access could exploit this vulnerability to leak highly sensitive information stored on the Harbor database, as demonstrated in the attached writeup by the leaking of users' password hashes and salts. All endpoints that support the `q` URL parameter are vulnerable to this ORM leak attack, and could potentially be exploitable by lower privileged users to gain unauthorised access to other sensitive information. ### Patches No available ### Workarounds NA ### References ### Credit alex@elttam.com

CVE-2025-30086 Affected Github.com/goharbor/harbor Versions

3 component(s)
Fixed Versions:
2.13.12.12.42.4.0-rc1.0.20250331071157-dce7d9f5cffb
Product / Package Ecosystem Affected Versions Fixed Version
github.com/goharbor/harbor
Go
≥ 2.13.0
< 2.13.1
All 1 versions
2.13.0
2.13.1
github.com/goharbor/harbor
Go
≥ 2.4.0-rc1.1
< 2.12.4
2.12.4
github.com/goharbor/harbor
Go
< 2.4.0-rc1.0.20250331071157-dce7d9f5cffb
2.4.0-rc1.0.20250331071157-dce7d9f5cffb

References

Frequently Asked Questions

What is CVE-2025-30086?
CVE-2025-30086 is a security vulnerability in Github.com/goharbor/harbor involving Possible ORM Leak Vulnerability in the Harbor under CWE-202: Exposure of Sensitive Information Through Data Queries.
Which Github.com/goharbor/harbor versions are affected?
Affected versions include releases prior to 2.13.1, 2.12.4, 2.4.0-rc1.0.20250331071157-dce7d9f5cffb across affected packages: github.com/goharbor/harbor.
What version fixes CVE-2025-30086?
Upgrading to 2.13.1, 2.12.4, 2.4.0-rc1.0.20250331071157-dce7d9f5cffb (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 2.13.1, 2.12.4, 2.4.0-rc1.0.20250331071157-dce7d9f5cffb. Upgrade your dependency to 2.13.1, 2.12.4, 2.4.0-rc1.0.20250331071157-dce7d9f5cffb or later.
What is the CVSS score of CVE-2025-30086?
CVE-2025-30086 has a CVSS v3.1 base score of 4.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-30086?
CVE-2025-30086 is classified under CWE-202: Exposure of Sensitive Information Through Data Queries (When trying to keep information confidential, an attacker can often infer some of the information by using statistics.).
How can I check Go dependencies for CVE-2025-30086?
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-h27m-3qw8-3pw8",
  "modified" : "2025-07-25T16:23:52Z",
  "published" : "2025-07-23T15:47:31Z",
  "aliases" : [ "CVE-2025-30086" ],
  "summary" : "Possible ORM Leak Vulnerability in the Harbor",
  "details" : "### Impact\n\nAdministrator users on Harbor could exploit an ORM Leak (https://www.elttam.com/blog/plormbing-your-django-orm/) vulnerability that was present in the `/api/v2.0/users` endpoint to leak users' password hash and salt values. This vulnerability was introduced into the application because the `q` URL parameter allowed the administrator to filter users by any column, and the filter `password=~` could be abused to leak out a user's password hash character by character.\n\nAn attacker with administrator access could exploit this vulnerability to leak highly sensitive information stored on the Harbor database, as demonstrated in the attached writeup by the leaking of users' password hashes and salts. All endpoints that support the `q` URL parameter are vulnerable to this ORM leak attack, and could potentially be exploitable by lower privileged users to gain unauthorised access to other sensitive information. \n\n\n### Patches\nNo available\n\n### Workarounds\nNA\n\n### References\n\n### Credit\nalex@elttam.com",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.13.0"
      }, {
        "fixed" : "2.13.1"
      } ]
    } ],
    "versions" : [ "2.13.0" ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0-rc1.1"
      }, {
        "fixed" : "2.12.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.0-rc1.0.20250331071157-dce7d9f5cffb"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/security/advisories/GHSA-h27m-3qw8-3pw8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30086"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/commit/dce7d9f5cffbd0d0c5d27e7a2f816f65a930702c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/goharbor/harbor"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/releases"
  }, {
    "type" : "WEB",
    "url" : "https://goharbor.io/blog"
  }, {
    "type" : "WEB",
    "url" : "https://www.elttam.com/blog/plormbing-your-django-orm"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-202" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-23T15:47:31Z",
    "nvd_published_at" : "2025-07-25T15:15:26Z"
  }
}