Vulnerabilities in pkg:golang/github.com/google/exposure-notifications-server

PACKAGE
Advisory Summary

GHSA-3wxm-m9m4-cprj is a MODERATE import of incorrectly embargoed keys vulnerability (General Security Weakness) affecting Github.com/google/exposure notifications server libraries in the Go ecosystem. The issue involves import of incorrectly embargoed keys could cause early publication. Remediation is available by upgrading affected packages to version 0.18.3, 0.19.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/google/exposure-notifications-server

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/google/exposure-notifications-server. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3wxm-m9m4-cprj - MODERATE Import of incorrectly embargoed keys could cause early publication

GHSA-3wxm-m9m4-cprj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3wxm-m9m4-cprj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/google/exposure notifications server
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-3wxm-m9m4-cprj

To remediate this vulnerability, upgrade all affected Github.com/google/exposure notifications server 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/google/exposure-notifications-server fixed: 0.18.3
Upgrade github.com/google/exposure-notifications-server to 0.18.3
github.com/google/exposure-notifications-server fixed: 0.19.2
Upgrade github.com/google/exposure-notifications-server to 0.19.2
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/google/exposure-notifications-server

How to Check if You Are Affected

To determine whether your application is affected by GHSA-3wxm-m9m4-cprj, inspect your project dependencies for Github.com/google/exposure notifications server:

inspect dependencies for github.com/google/exposure-notifications-server

Analyze the terminal output to locate any version of Github.com/google/exposure notifications server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.18.3), 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 General Security Weakness. In Github.com/google/exposure notifications server, 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 If your installation is using the `export-importer` service, there is potential impact. If your installation is not importing keys via the `export-importer` services, your installation is not impacted. In versions `0.19.1` and earlier, the `export-importer` service assumed that the server it was importing from had properly embargoed keys for at least 2 hours after their expiry time. There are now known instances of servers that did not properly embargo keys. This could allow allow for imported keys to be re-published before they have expired, allowing for potential replay of RPIs. ### Patches This is patched in `v0.18.3` and all versions `0.19.2` and later. ### Workarounds Ensure that the servers you are importing export zip files from are not publishing keys too early. ### References n/a ### For more information If you have any questions or comments about this advisory * Open an issue in [exposure-notifications-server](https://github.com/google/exposure-notifications-server/) * Email us at [exposure-notifications-feedback@google.com](mailto:exposure-notifications-feedback@google.com)

GHSA-3wxm-m9m4-cprj Affected Github.com/google/exposure notifications server Versions

2 component(s)
Fixed Versions:
0.18.30.19.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/google/exposure-notifications-server
Go
< 0.18.3
0.18.3
github.com/google/exposure-notifications-server
Go
≥ 0.19.0
< 0.19.2
0.19.2

References

Frequently Asked Questions

What is GHSA-3wxm-m9m4-cprj?
GHSA-3wxm-m9m4-cprj is a security vulnerability in Github.com/google/exposure notifications server involving Import of incorrectly embargoed keys could cause early publication under General Security Weakness.
Which Github.com/google/exposure notifications server versions are affected?
Affected versions include releases prior to 0.18.3, 0.19.2 across affected packages: github.com/google/exposure-notifications-server.
What version fixes GHSA-3wxm-m9m4-cprj?
Upgrading to 0.18.3, 0.19.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/google/exposure-notifications-server affected?
Yes, github.com/google/exposure-notifications-server is affected in releases prior to 0.18.3, 0.19.2. Upgrade your dependency to 0.18.3, 0.19.2 or later.
What CWE is associated with GHSA-3wxm-m9m4-cprj?
GHSA-3wxm-m9m4-cprj is classified under General Security Weakness.
How can I check Go dependencies for GHSA-3wxm-m9m4-cprj?
Run the dependency tree command: 'inspect dependencies for github.com/google/exposure-notifications-server'. 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-3wxm-m9m4-cprj",
  "modified" : "2021-05-20T20:24:22Z",
  "published" : "2021-05-21T16:24:44Z",
  "aliases" : [ ],
  "summary" : "Import of incorrectly embargoed keys could cause early publication",
  "details" : "### Impact\n\nIf your installation is using the `export-importer` service, there is potential impact.\nIf your installation is not importing keys via the `export-importer` services, your installation is not impacted.\n\nIn versions `0.19.1` and earlier, the `export-importer` service assumed that the server it was importing from had properly embargoed keys for at least 2 hours after their expiry time. There are now known instances of servers that did not properly embargo keys.\n\nThis could allow allow for imported keys to be re-published before they have expired, allowing for potential replay of RPIs.\n\n### Patches\n\nThis is patched in `v0.18.3` and all versions `0.19.2` and later.\n\n### Workarounds\n\nEnsure that the servers you are importing export zip files from are not publishing keys too early. \n\n### References\n\nn/a\n\n### For more information\n\nIf you have any questions or comments about this advisory\n* Open an issue in [exposure-notifications-server](https://github.com/google/exposure-notifications-server/)\n* Email us at [exposure-notifications-feedback@google.com](mailto:exposure-notifications-feedback@google.com)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/google/exposure-notifications-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/google/exposure-notifications-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.19.0"
      }, {
        "fixed" : "0.19.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/google/exposure-notifications-server/security/advisories/GHSA-3wxm-m9m4-cprj"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-20T20:24:22Z",
    "nvd_published_at" : null
  }
}