repo_id
stringclasses
927 values
file_path
stringlengths
99
214
content
stringlengths
2
4.15M
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-1572.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-41727" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Denial of service via crafted TIFF image in golang.org/x/image/tiff", ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-1495.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-41721" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Request smuggling due to improper request handling in golang.org/x/net/h...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2024-2609.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2024-24784" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Comments in display names are incorrectly handled in net/mail", "d...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2022-1038.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-2880" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Incorrect sanitization of forwarded query parameters in net/http/httputil...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2022-1037.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-2879" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Unbounded memory consumption when reading headers in archive/tar", ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2020-0049.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2020-36564" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Improper input validation in github.com/justinas/nosurf", "descrip...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-1702.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2023-24537" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Infinite loop in parsing in go/scanner", "descriptions": [ ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2020-0032.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2019-25073" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Path traversal in github.com/goadesign/goa", "descriptions": [ ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2022-0527.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-30630" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Stack exhaustion in Glob on certain paths in io/fs", "descriptions...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2022-0988.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-32190" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Failure to strip relative path components in net/url", "descriptio...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2022-1144.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-41717" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Excessive memory growth in net/http and golang.org/x/net/http2", "...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2022-0524.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-30631" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Stack exhaustion when reading certain archives in compress/gzip", ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2020-0025.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2018-25046" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Path traversal in code.cloudfoundry.org/archiver", "descriptions":...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-2045.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2023-39322" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Memory exhaustion in QUIC connection handling in crypto/tls", "des...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-2095.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2023-39323" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Arbitrary code execution during build via line directives in cmd/go", ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-1737.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2023-29401" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Improper handling of filenames in Content-Disposition HTTP header in git...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2022-1059.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-32149" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Denial of service via crafted Accept-Language header in golang.org/x/tex...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2020-0040.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2020-36562" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Uncontrolled Resource Consumption in github.com/shiyanhui/dht", "d...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-1568.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-41722" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Path traversal on Windows in path/filepath", "descriptions": [ ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-2375.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2023-45287" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Before Go 1.20, the RSA based key exchange methods in crypto/tls may exh...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2024-2963.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2024-24791" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Denial of service due to improper 100-continue handling in net/http", ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2024-2598.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2024-24783" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Verify panics on certificates with an unknown public key algorithm in cr...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-1569.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-41725" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Excessive resource consumption in mime/multipart", "descriptions":...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2020-0023.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2015-10004" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Timing side-channel in github.com/robbert229/jwt", "descriptions":...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-1988.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2023-3978" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Improper rendering of text nodes in golang.org/x/net/html", "descri...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2023-2043.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2023-39319" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Improper handling of special tags within script contexts in html/templat...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2022-0532.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2022-30580" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Empty Cmd.Path can trigger unintended binary in os/exec on Windows", ...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2021-0106.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2020-36566" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Path traversal in github.com/whyrusleeping/tar-utils", "descriptio...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2024-2599.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2023-45290" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Memory exhaustion in multipart form parsing in net/textproto and net/htt...
v5
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/data/cve/v5/GO-2020-0022.json
{ "dataType": "CVE_RECORD", "dataVersion": "5.0", "cveMetadata": { "cveId": "CVE-2014-125026" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" }, "title": "Out-of-bounds write in github.com/cloudflare/golz4", "description...
webconfig
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/webconfig/404.html
<!-- Copyright 2022 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <ti...
webconfig
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/webconfig/README.md
# Go Vulnerability Database Web Configuration These files control what users see when they visit [vuln.go.dev](https://vuln.go.dev), and when they get a 404 on that site. ## Deployment Every time a new CL is submitted, the existing `.html` and `.ico` files in this folder are automatically copied to the vuln DB bucke...
webconfig
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/webconfig/index.html
<!-- Copyright 2022 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <ti...
webconfig
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/webconfig/privacy.html
<!-- Copyright 2022 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <ti...
webconfig
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/webconfig/copyright.html
<!-- Copyright 2022 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <ti...
doc
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/doc/triage.md
# Handling Go Vulnerability Reports NOTE: This document is somewhat outdated but still contains some valuable background / context. A newer [quickstart guide](quickstart.md) is in progress. This document explains how we handle vulnerability issue triage in the [x/vulndb issue tracker](http://github.com/golang/vulndb/...
doc
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/doc/quickstart.md
# Go Vulnerability Database Quickstart [WORK IN PROGRESS] This document is a quick guide our new (evolving) process for handling vulnerability issue triage in the [x/vulndb issue tracker](http://github.com/golang/vulndb/issues). For the original documentation, which is somewhat outdated, see our [old triage docs](tr...
doc
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/doc/format.md
# Vulnerability Report Format & Style Guide The Go security team uses an internal YAML format to create vulnerability reports, which are automatically converted to OSV JSON and served to the vulnerability database at [vuln.go.dev](https://vuln.go.dev). The YAML format is subject to change without warning and should n...
doc
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/doc/worker.md
# worker `worker` is a binary that can act as both a CLI and a web server. With no command-line arguments, it listens for HTTP traffic at the `PORT` environment variable. There is no reason to run the server locally (except debugging), so this document describes only the CLI. The CLI can display Firestore database o...
internal
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/internal.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package internal contains functionality for x/vulndb. package internal import ( "bufio" "os" "strings" "golang.org/x/vulndb/internal/derrors" ) // Rea...
issues
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/issues/issues.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package issues provides a general way to interact with issues, // and a client for interacting with the GitHub issues API. package issues import ( "contex...
issues
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/issues/issues_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package issues_test import ( "context" "fmt" "net/http" "strconv" "strings" "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmp...
issues
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/issues/real_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build go1.17 // +build go1.17 package issues import ( "context" "flag" "fmt" "os" "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-...
githubtest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/issues/githubtest/setup.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package githubtest provides a test client and server for testing the GitHub API // client. package githubtest import ( "context" "net/http" "net/http/htt...
osvutils
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osvutils/affects_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package osvutils import ( "errors" "testing" "golang.org/x/vulndb/internal/osv" ) func TestAffectsSemver(t *testing.T) { tests := []struct { name st...
osvutils
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osvutils/validate_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package osvutils import ( "errors" "testing" "time" "golang.org/x/vulndb/internal/osv" ) var ( jan1999 = osv.Time{Time: time.Date(1999, 1, 1, 0, 0, 0, 0...
osvutils
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osvutils/affects.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package osvutils import ( "fmt" "golang.org/x/vulndb/internal/osv" "golang.org/x/vulndb/internal/version" ) // AffectsSemver returns whether the version v...
osvutils
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osvutils/validate.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package osvutils provides utilities for working with Go OSV entries. // It is separated from package osv because that package // promises to only import from...
ghsarepo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/ghsarepo/client.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // // Package ghsarepo provides a client and utilities for reading // GitHub security advisories directly from the Git repo // https://github.com/github/advisory...
ghsarepo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/ghsarepo/client_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ghsarepo import ( "flag" "testing" "time" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "golang.org/x/vulndb/internal/git...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/ghsarepo/testdata/repo.txtar
# Copyright 2023 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Test repo in the shape of github.com/github/advisory-database -- advisories/github-reviewed/2022/12/GHSA-abcd-efgh-b123.json -- { "schema_version": "1.3.0", ...
cvelistrepo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/cvelistrepo/cvelistrepo.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package cvelistrepo supports working with the repo // containing the list of CVEs. package cvelistrepo import ( "context" "encoding/json" "fmt" "io" "p...
cvelistrepo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/cvelistrepo/txtar.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cvelistrepo import ( "context" "fmt" "os" "path" "path/filepath" "slices" "testing" "time" "github.com/go-git/go-git/v5/plumbing" "github.co...
cvelistrepo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/cvelistrepo/cvelistrepo_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cvelistrepo import ( "context" "flag" "fmt" "os" "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "golang.org/x...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/cvelistrepo/testdata/v5.txtar
Copyright 2023 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Repo in the shape of "https://github.com/CVEProject/cvelistV5". Updated with real data 2023-11-20T19:00:00-05:00. Auto-generated; do not edit directly. -- README.md -- ...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/cvelistrepo/testdata/NOTICE
# NOTICE The `testdata` folder contains unmodified data from [CVE List](https://github.com/CVEProject/cvelist), and [CVE List V5](https://github.com/CVEProject/cvelistV5), licensed under [CVE license](https://www.cve.org/Legal/TermsOfUse).
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/cvelistrepo/testdata/v4.txtar
Copyright 2023 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Repo in the shape of "https://github.com/CVEProject/cvelist". Updated with real data 2023-11-20T19:00:00-05:00. Auto-generated; do not edit directly. -- README.md -- ig...
osv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osv/time.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package osv import ( "encoding/json" "time" ) // Time is a wrapper for time.Time that marshals and unmarshals // RFC3339 formatted UTC strings. type Time st...
osv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osv/time_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package osv import ( "encoding/json" "fmt" "testing" ) func TestMarshalUnmarshalTime(t *testing.T) { tests := []struct { name string in string want...
osv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osv/osv.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package osv implements the Go OSV vulnerability format // (https://go.dev/security/vuln/database#schema), which is a subset of // the OSV shared vulnerabilit...
osv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osv/review_status.go
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package osv import ( "encoding/json" "fmt" ) type ReviewStatus int const ( ReviewStatusUnknown ReviewStatus = iota ReviewStatusUnreviewed ReviewStatusRe...
osv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/osv/osv_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package osv_test import ( "testing" "golang.org/x/vulndb/internal/test" ) func TestImports(t *testing.T) { // package osv only allows non stdlib imports. ...
pkgsite
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/pkgsite/client.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkgsite import ( "context" "encoding/json" "fmt" "io" "net/http" "net/http/httptest" "os" "path/filepath" "strconv" "sync" "testing" "time"...
pkgsite
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/pkgsite/client_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkgsite import ( "context" "flag" "testing" ) var usePkgsite = flag.Bool("pkgsite", false, "use pkg.go.dev for tests") func TestKnown(t *testing.T...
pkgsite
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/pkgsite/testdata/pkgsite/TestKnownParallel.json
{ "/mod/github.com/something/something": false, "/mod/golang.org/x/mod": true }
TestKnown
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/pkgsite/testdata/pkgsite/TestKnown/invalid.json
{ "/mod/github.com/something/something": false }
TestKnown
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/pkgsite/testdata/pkgsite/TestKnown/valid.json
{ "/mod/golang.org/x/mod": true }
version
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/version/semver.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package version provides shared utilities for manipulating // Go semantic versions with no prefix. package version import ( "regexp" "strings" "golang.o...
gitrepo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/gitrepo/gitrepo_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gitrepo_test import ( "fmt" "testing" "time" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/memfs" "github.com/go-git/go-git/v5"...
gitrepo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/gitrepo/gitrepo.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package gitrepo provides operations on git repos. package gitrepo import ( "context" "fmt" "io" "strings" "time" "github.com/go-git/go-billy/v5/memfs...
genai
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/suggest.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package genai import ( "context" _ "embed" "encoding/json" "errors" "fmt" ) type Input struct { // The path of the affected module to include in the sum...
genai
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/suggest_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package genai import ( "context" "fmt" "strings" "testing" _ "embed" "github.com/google/go-cmp/cmp" ) func TestSuggest(t *testing.T) { tests := []str...
genai
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/prompt_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package genai import "testing" func TestNewPrompt(t *testing.T) { type args struct { in *Input promptContext string examples Examples ...
genai
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/examples_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package genai import ( "bytes" "flag" "path/filepath" "strings" "testing" "github.com/google/go-cmp/cmp" ) var update = flag.Bool("update", false, "upd...
genai
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/gemini.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package genai import ( "context" "fmt" "os" gemini "github.com/google/generative-ai-go/genai" "google.golang.org/api/option" ) type GeminiClient struct ...
genai
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/examples.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package genai import ( "encoding/csv" "encoding/json" "fmt" "io" "os" "path/filepath" "strings" "github.com/google/go-cmp/cmp" ) // Examples represen...
genai
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/gemini_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package genai import ( "context" "testing" gemini "github.com/google/generative-ai-go/genai" "github.com/google/go-cmp/cmp" ) func TestGemini(t *testing....
genai
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/prompt.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package genai import ( "bytes" _ "embed" "encoding/json" "strings" "text/template" ) var ( //go:embed templates/preamble.txt defaultPreamble string /...
data
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/data/examples.json
[{"Input":{"Module":"github.com/docker/distribution","Description":"### Impact\n\nSystems that rely on digest equivalence for image attestations may be vulnerable to type confusion.\n\n### Patches\n\nUpgrade to at least `v2.8.0-beta.1` if you are running `v2.x` release. If you use the code from the `main` branch, upda...
data
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/data/examples.csv
"{""Module"":""github.com/docker/distribution"",""Description"":""### Impact\n\nSystems that rely on digest equivalence for image attestations may be vulnerable to type confusion.\n\n### Patches\n\nUpgrade to at least `v2.8.0-beta.1` if you are running `v2.x` release. If you use the code from the `main` branch, update...
data
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/data/example_prompt.txt
You are an expert computer security researcher. You are helping the Go programming language security team write high-quality, correct, and concise summaries and descriptions for the Go vulnerability database. Given an affected module and a description of a vulnerability, output a JSON object containing 1) Summary: a s...
gen_examples
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/gen_examples/main.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Command gen_examples generates and stores examples // that can be used to create prompts / training inputs for Google's // Generative AI APIs. package main ...
templates
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/templates/prompt.tmpl
{{ .Preamble }} {{ range .Examples }} input: {{ .Input | toJSON }} output: {{ .Suggestion | toJSON }}{{ end }} input: {{ .Input | toJSON }} output:
templates
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/genai/templates/preamble.txt
You are an expert computer security researcher. You are helping the Go programming language security team write high-quality, correct, and concise summaries and descriptions for the Go vulnerability database. Given an affected module and a description of a vulnerability, output a JSON object containing 1) Summary: a s...
observe
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/observe/observe.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package observe provides metric and tracing support for Go servers. // It uses OpenTelemetry. package observe import ( "context" "golang.org/x/exp/slog" ...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/config.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package worker import ( "errors" "golang.org/x/vulndb/internal/worker/store" ) // serviceID names the Cloud Run service. const serviceID = "vuln-worker" /...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/false_positive_records.gen.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Code generated by gen_false_positives.go; DO NOT EDIT. package worker import ( "time" "golang.org/x/vulndb/internal/worker/store" ) var falsePositives ...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/false_positives_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build go1.17 // +build go1.17 package worker import ( "context" "testing" "time" "github.com/google/go-cmp/cmp" "golang.org/x/vulndb/internal/cve4"...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/worker.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package worker // This file has the public API of the worker, used by cmd/worker as well // as the server in this package. import ( "context" "fmt" "reflec...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/util.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package worker import ( "encoding/json" "github.com/go-git/go-git/v5/plumbing/object" "golang.org/x/vulndb/internal/cve4" "golang.org/x/vulndb/internal/de...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/README.md
# Go Vulnerability Worker The vuln worker triages incoming security advisories and scans selected modules for vulnerabilities. The Go security team runs the worker on Google Cloud Platform's Cloud Run product. See the repo's `terraform` directory for more on the deployment setup. The main program for the worker, in ...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/server_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The android builder doesn't copy the static directory (or anything but testdata). //go:build !android && go1.17 // +build !android,go1.17 package worker im...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/server.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package worker import ( "bytes" "context" "errors" "fmt" "io" "net/http" "os" "path/filepath" "runtime/debug" "strconv" "strings" "sync/atomic" "t...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/gen_false_positives.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Program to generate false-positive CVE records. // This requires a local copy of the cvelist repo: // git clone https://github.com/CVEProject/cvelist //...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/worker_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build go1.17 // +build go1.17 package worker import ( "context" "flag" "fmt" "math" "net/http" "sort" "strings" "testing" "time" "github.com/g...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/false_positives.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package worker import ( "context" "golang.org/x/vulndb/internal/derrors" "golang.org/x/vulndb/internal/observe" "golang.org/x/vulndb/internal/worker/store...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/update.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package worker import ( "context" "errors" "fmt" "path" "strings" "time" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing/object" ...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/update_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build go1.17 // +build go1.17 package worker import ( "context" "errors" "flag" "testing" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/...
log
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/log/log.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package log implements event handlers for logging. package log import ( "context" "fmt" "golang.org/x/exp/slog" "io" "os" "time" ) type Attrs []slog....
log
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/internal/worker/log/log_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package log import ( "bytes" "context" "fmt" "golang.org/x/exp/slog" "testing" "time" ) // TODO(jba): is it important to put additional attrs under "log...