cve_id
stringlengths
13
16
cve_description
stringlengths
60
2.06k
cwe_info
unknown
repo
stringlengths
26
68
patch_url
listlengths
1
6
programing_language
stringclasses
3 values
vul_func
listlengths
1
5
fix_func
listlengths
1
9
image_url
stringlengths
49
52
CVE-2021-23376
This affects all versions of package ffmpegdotjs. If attacker-controlled user input is given to the trimvideo function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.
{ "CWE-78": { "name": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", "description": "The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special el...
https://github.com/TRomesh/ffmpegdotjs
[ "https://github.com/TRomesh/ffmpegdotjs/commit/dae868764d6418dac081ed1aa84c636645ba6adb" ]
JavaScript
[ { "id": "vul_js_21_1", "commit": "b7395da", "file_path": "index.js", "start_line": 216, "end_line": 233, "snippet": " trimvideo: (input, start, duration, output) => {\n return new Promise(function(resolve, reject) {\n if (fs.existsSync(input)) {\n exec(\n `ffmpeg -hi...
[ { "id": "fix_js_21_1", "commit": "dae868764d6418dac081ed1aa84c636645ba6adb", "file_path": "index.js", "start_line": 216, "end_line": 233, "snippet": " trimvideo: (input, start, duration, output) => {\n return new Promise(function(resolve, reject) {\n if (fs.existsSync(input)) {\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-23376
CVE-2020-26215
Jupyter Notebook before version 6.1.5 has an Open redirect vulnerability. A maliciously crafted link to a notebook server could redirect the browser to a different website. All notebook servers are technically affected, however, these maliciously crafted links can only be reasonably made for known notebook server hosts...
{ "CWE-601": { "name": "URL Redirection to Untrusted Site ('Open Redirect')", "description": "The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect." } }
https://github.com/jupyter/notebook
[ "https://github.com/jupyter/notebook/commit/3cec4bbe21756de9f0c4bccf18cf61d840314d74" ]
Python
[ { "id": "vul_py_47_1", "commit": "d8308e13803ba1c6e92f129381e615af6c6e00d3", "file_path": "notebook/base/handlers.py", "start_line": 861, "end_line": 863, "snippet": " def get(self):\n self.redirect(self.request.uri.rstrip('/'))\n ", "vul_localization": [ { "pa...
[ { "id": "fix_py_47_1", "commit": "3cec4bbe21756de9f0c4bccf18cf61d840314d74", "file_path": "notebook/base/handlers.py", "start_line": 861, "end_line": 867, "snippet": " def get(self):\n path, *rest = self.request.uri.partition(\"?\")\n # trim trailing *and* leading /\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-26215
CVE-2022-1986
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/gogs/gogs
[ "https://github.com/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82" ]
Go
[ { "id": "vul_go_6_1", "commit": "6982749", "file_path": "internal/db/repo_editor.go", "start_line": 468, "end_line": 474, "snippet": "func isRepositoryGitPath(path string) bool {\n\treturn strings.HasSuffix(path, \".git\") ||\n\t\tstrings.Contains(path, \".git\"+string(os.PathSeparator)) ||\...
[ { "id": "fix_go_6_1", "commit": "38aff73", "file_path": "internal/db/repo_editor.go", "start_line": 468, "end_line": 476, "snippet": "func isRepositoryGitPath(path string) bool {\n\treturn strings.HasSuffix(path, \".git\") ||\n\t\tstrings.Contains(path, \".git/\") ||\n\t\tstrings.Contains(pa...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-1986
CVE-2024-25620
Helm is a tool for managing Charts. Charts are packages of pre-configured Kubernetes resources. When either the Helm client or SDK is used to save a chart whose name within the `Chart.yaml` file includes a relative path change, the chart would be saved outside its expected directory based on the changes in the relative...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/helm/helm
[ "https://github.com/helm/helm/commit/0d0f91d1ce277b2c8766cdc4c7aa04dbafbf2503" ]
Go
[ { "id": "vul_go_16_2", "commit": "e81f614", "file_path": "pkg/chart/metadata.go", "start_line": 87, "end_line": 146, "snippet": "func (md *Metadata) Validate() error {\n\tif md == nil {\n\t\treturn ValidationError(\"chart.metadata is required\")\n\t}\n\n\tmd.Name = sanitizeString(md.Name)\n\...
[ { "id": "fix_go_16_1", "commit": "0d0f91d", "file_path": "pkg/chart/metadata.go", "start_line": 19, "end_line": 19, "snippet": "\t\"path/filepath\"" }, { "id": "fix_go_16_2", "commit": "0d0f91d", "file_path": "pkg/chart/metadata.go", "start_line": 88, "end_line": 152,...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-25620
CVE-2020-25459
An issue was discovered in function sync_tree in hetero_decision_tree_guest.py in WeBank FATE (Federated AI Technology Enabler) 0.1 through 1.4.2 allows attackers to read sensitive information during the training process of machine learning joint modeling.
{ "CWE-668": { "name": "Exposure of Resource to Wrong Sphere", "description": "The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource." } }
https://github.com/FederatedAI/FATE
[ "https://github.com/FederatedAI/FATE/commit/6feccf6d752184a6f9365d56a76fe627983e7139" ]
Python
[ { "id": "vul_py_44_1", "commit": "67708d5", "file_path": "federatedml/tree/hetero/hetero_decision_tree_guest.py", "start_line": 532, "end_line": 544, "snippet": " def sync_tree(self):\n LOGGER.info(\"sync tree to host\")\n\n self.transfer_inst.tree.remote(self.tree_,\n ...
[ { "id": "fix_py_44_1", "commit": "6feccf6", "file_path": "federatedml/tree/hetero/hetero_decision_tree_guest.py", "start_line": 544, "end_line": 557, "snippet": " def sync_tree(self):\n LOGGER.info(\"sync tree to host\")\n\n tree_nodes = self.remove_sensitive_info()\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-25459
CVE-2020-28494
This affects the package total.js before 3.4.7. The issue occurs in the image.pipe and image.stream functions. The type parameter is used to build the command that is then executed using child_process.spawn. The issue occurs because child_process.spawn is called with the option shell set to true and because the type pa...
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/totaljs/framework
[ "https://github.com/totaljs/framework/commit/6192491ab2631e7c1d317c221f18ea613e2c18a5" ]
JavaScript
[ { "id": "vul_js_22_1", "commit": "79e84ad", "file_path": "image.js", "start_line": 319, "end_line": 340, "snippet": "ImageProto.stream = function(type, writer) {\n\n\tvar self = this;\n\n\t!self.builder.length && self.minify();\n\n\tif (!type)\n\t\ttype = self.outputType;\n\n\tF.stats.perfor...
[ { "id": "fix_js_22_1", "commit": "6192491ab2631e7c1d317c221f18ea613e2c18a5", "file_path": "image.js", "start_line": 320, "end_line": 341, "snippet": "ImageProto.stream = function(type, writer) {\n\n\tvar self = this;\n\n\t!self.builder.length && self.minify();\n\n\tif (!type || !SUPPORTEDIMA...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-28494
CVE-2025-24806
Authelia is an open-source authentication and authorization server providing two-factor authentication and single sign-on (SSO) for applications via a web portal. If users are allowed to sign in via both username and email the regulation system treats these as separate login events. This leads to the regulation limitat...
{ "CWE-307": { "name": "Improper Restriction of Excessive Authentication Attempts", "description": "The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame." } }
https://github.com/authelia/authelia
[ "https://github.com/authelia/authelia/commit/d4a54189aa6563912f9427b96dcb01eacafa785c" ]
Go
[ { "id": "vul_go_76_1", "commit": "37cb14fb898b675bd39bbe8776f8cdf54f8272f3", "file_path": "internal/handlers/handler_firstfactor.go", "start_line": 14, "end_line": 159, "snippet": "func FirstFactorPOST(delayFunc middlewares.TimingAttackDelayFunc) middlewares.RequestHandler {\n\treturn func(c...
[ { "id": "fix_go_76_1", "commit": "d4a54189aa6563912f9427b96dcb01eacafa785c", "file_path": "internal/handlers/handler_firstfactor.go", "start_line": 15, "end_line": 163, "snippet": "func FirstFactorPOST(delayFunc middlewares.TimingAttackDelayFunc) middlewares.RequestHandler {\n\treturn func(c...
ghcr.io/patcheval-cve/patcheval-cve:cve-2025-24806
CVE-2023-22736
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Versions starting with 2.5.0-rc1 and above, prior to 2.5.8, and version 2.6.0-rc4, are vulnerable to an authorization bypass bug which allows a malicious Argo CD user to deploy Applications outside the configured allowed namespaces. Reconciled Ap...
{ "CWE-862": { "name": "Missing Authorization", "description": "The product does not perform an authorization check when an actor attempts to access a resource or perform an action." } }
https://github.com/argoproj/argo-cd
[ "https://github.com/argoproj/argo-cd/commit/1f82078e7463228477e6c2cd959c14e7426c99d7", "https://github.com/argoproj/argo-cd/commit/9b6815f06f0f58ecd7240999e6b32cf16ebd0d9e" ]
Go
[ { "id": "vul_go_61_1", "commit": "16f2de0", "file_path": "./controller/appcontroller.go", "start_line": 1771, "end_line": 1791, "snippet": "func (ctrl *ApplicationController) canProcessApp(obj interface{}) bool {\n\tapp, ok := obj.(*appv1.Application)\n\tif !ok {\n\t\treturn false\n\t}\n\tif...
[ { "id": "fix_go_61_1", "commit": "9b6815f", "file_path": "./controller/appcontroller.go", "start_line": 1771, "end_line": 1792, "snippet": "func (ctrl *ApplicationController) canProcessApp(obj interface{}) bool {\n\tapp, ok := obj.(*appv1.Application)\n\tif !ok {\n\t\treturn false\n\t}\n\n\t...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-22736
CVE-2022-31506
The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/cmusatyalab/opendiamond
[ "https://github.com/cmusatyalab/opendiamond/commit/398049c187ee644beabab44d6fece82251c1ea56" ]
Python
[ { "id": "vul_py_22_1", "commit": "d2f20ffff793f88335f2c0244679d7193295abe2", "file_path": "opendiamond/dataretriever/diamond_store.py", "start_line": 122, "end_line": 123, "snippet": "def _get_obj_absolute_path(obj_path):\n return os.path.join(DATAROOT, obj_path)", "vul_localization":...
[ { "id": "fix_py_22_1", "commit": "398049c187ee644beabab44d6fece82251c1ea56", "file_path": "opendiamond/dataretriever/diamond_store.py", "start_line": 123, "end_line": 124, "snippet": "def _get_obj_absolute_path(obj_path):\n return safe_join(DATAROOT, obj_path)" } ]
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-31506
CVE-2025-48374
zot is ancontainer image/artifact registry based on the Open Container Initiative Distribution Specification. Prior to version 2.1.3 (corresponding to pseudoversion 1.4.4-0.20250522160828-8a99a3ed231f), when using Keycloak as an oidc provider, the clientsecret gets printed into the container stdout logs for an example ...
{ "CWE-532": { "name": "Insertion of Sensitive Information into Log File", "description": "The product writes sensitive information to a log file." } }
https://github.com/project-zot/zot
[ "https://github.com/project-zot/zot/commit/8a99a3ed231fdcd8467e986182b4705342b6a15e" ]
Go
[ { "id": "vul_go_74_1", "commit": "af4a46b", "file_path": "pkg/api/config/config.go", "start_line": 327, "end_line": 359, "snippet": "func (c *Config) Sanitize() *Config {\n\tsanitizedConfig := &Config{}\n\n\tif err := DeepCopy(c, sanitizedConfig); err != nil {\n\t\tpanic(err)\n\t}\n\n\tif c....
[ { "id": "fix_go_74_1", "commit": "8a99a3e", "file_path": "pkg/api/config/config.go", "start_line": 327, "end_line": 381, "snippet": "func (c *Config) Sanitize() *Config {\n\tsanitizedConfig := &Config{}\n\n\tif err := DeepCopy(c, sanitizedConfig); err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Sa...
ghcr.io/patcheval-cve/patcheval-cve:cve-2025-48374
CVE-2017-16100
dns-sync is a sync/blocking dns resolver. If untrusted user input is allowed into the resolve() method then command injection is possible.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/skoranga/node-dns-sync
[ "https://github.com/skoranga/node-dns-sync/commit/d9abaae384b198db1095735ad9c1c73d7b890a0d)))", "https://github.com/skoranga/node-dns-sync/commit/d9abaae384b198db1095735ad9c1c73d7b890a0d" ]
JavaScript
[ { "id": "vul_js_2_1", "commit": "b748fe77a87749d95876028eda8e759109be4c73", "file_path": "lib/dns-sync.js", "start_line": 14, "end_line": 30, "snippet": " resolve: function resolve(hostname) {\n var output,\n nodeBinary = process.execPath,\n scriptPath = path....
[ { "id": "fix_js_2_1", "commit": "d9abaae384b198db1095735ad9c1c73d7b890a0d", "file_path": "lib/dns-sync.js", "start_line": 20, "end_line": 42, "snippet": " resolve: function resolve(hostname) {\n var output,\n nodeBinary = process.execPath;\n\n if (!isValidHostName...
ghcr.io/patcheval-cve/patcheval-cve:cve-2017-16100
CVE-2021-21360
Products.GenericSetup is a mini-framework for expressing the configured state of a Zope Site as a set of filesystem artifacts. In Products.GenericSetup before version 2.1.1 there is an information disclosure vulnerability - anonymous visitors may view log and snapshot files generated by the Generic Setup Tool. The prob...
{ "CWE-200": { "name": "Exposure of Sensitive Information to an Unauthorized Actor", "description": "The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information." } }
https://github.com/zopefoundation/Products.GenericSetup
[ "https://github.com/zopefoundation/Products.GenericSetup/commit/700319512b3615b3871a1f24e096cf66dc488c57" ]
Python
[ { "id": "vul_py_51_1", "commit": "835c1ac", "file_path": "src/Products/GenericSetup/context.py", "start_line": 482, "end_line": 501, "snippet": " def writeDataFile(self, filename, text, content_type, subdir=None):\n \"\"\" See IExportContext.\n \"\"\"\n if subdir is n...
[ { "id": "fix_py_51_1", "commit": "700319512b3615b3871a1f24e096cf66dc488c57", "file_path": "src/Products/GenericSetup/context.py", "start_line": 483, "end_line": 506, "snippet": " def writeDataFile(self, filename, text, content_type, subdir=None):\n \"\"\" See IExportContext.\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-21360
CVE-2018-3772
Concatenating unsanitized user input in the `whereis` npm module < 0.4.1 allowed an attacker to execute arbitrary commands. The `whereis` module is deprecated and it is recommended to use the `which` npm module instead.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/vvo/node-whereis
[ "https://github.com/vvo/node-whereis/commit/0f64e3780235004fb6e43bfd153ea3e0e210ee2b" ]
JavaScript
[ { "id": "vul_js_17_1", "commit": "b8b642b", "file_path": "index.js", "start_line": 3, "end_line": 31, "snippet": "module.exports = function whereis(name, cb) {\n cp.exec('which ' + name, function(error, stdout, stderr) {\n stdout = stdout.split('\\n')[0];\n if (error || stderr || stdo...
[ { "id": "fix_js_17_1", "commit": "0f64e37", "file_path": "index.js", "start_line": 3, "end_line": 31, "snippet": "module.exports = function whereis(name, cb) {\n cp.execFile('which', [name], function(error, stdout, stderr) {\n stdout = stdout.split('\\n')[0];\n if (error || stderr || ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2018-3772
CVE-2022-4724
Improper Access Control in GitHub repository ikus060/rdiffweb prior to 2.5.5.
{ "CWE-284": { "name": "Improper Access Control", "description": "The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor." } }
https://github.com/ikus060/rdiffweb
[ "https://github.com/ikus060/rdiffweb/commit/c4a19cf67d575c4886171b8efcbf4675d51f3929" ]
Python
[ { "id": "vul_py_54_1", "commit": "d1aaa96", "file_path": "rdiffweb/core/model/__init__.py", "start_line": 70, "end_line": 139, "snippet": "@event.listens_for(Base.metadata, 'after_create')\ndef db_after_create(target, connection, **kw):\n \"\"\"\n Called on database creation to update ...
[ { "id": "fix_py_54_1", "commit": "c4a19cf", "file_path": "rdiffweb/core/model/__init__.py", "start_line": 71, "end_line": 158, "snippet": "def db_after_create(target, connection, **kw):\n \"\"\"\n Called on database creation to update database schema.\n \"\"\"\n\n if getattr(conn...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-4724
CVE-2023-25165
Helm is a tool that streamlines installing and managing Kubernetes applications.`getHostByName` is a Helm template function introduced in Helm v3. The function is able to accept a hostname and return an IP address for that hostname. To get the IP address the function performs a DNS lookup. The DNS lookup happens when u...
{ "CWE-200": { "name": "Exposure of Sensitive Information to an Unauthorized Actor", "description": "The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information." } }
https://github.com/helm/helm
[ "https://github.com/helm/helm/commit/5abcf74227bfe8e5a3dbf105fe62e7b12deb58d2" ]
Go
[ { "id": "vul_go_49_1", "commit": "5bf273d81ba7da1816a55983fae6a6cf4ca29af2", "file_path": "pkg/engine/engine.go", "start_line": 37, "end_line": 45, "snippet": "type Engine struct {\n\t// If strict is enabled, template rendering will fail if a template references\n\t// a value that was not pa...
[ { "id": "fix_go_49_1", "commit": "5abcf74227bfe8e5a3dbf105fe62e7b12deb58d2", "file_path": "pkg/engine/engine.go", "start_line": 37, "end_line": 54, "snippet": "type Engine struct {\n\t// If strict is enabled, template rendering will fail if a template references\n\t// a value that was not pa...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-25165
CVE-2022-23538
github.com/sylabs/scs-library-client is the Go client for the Singularity Container Services (SCS) Container Library Service. When the scs-library-client is used to pull a container image, with authentication, the HTTP Authorization header sent by the client to the library service may be incorrectly leaked to an S3 bac...
{ "CWE-522": { "name": "Insufficiently Protected Credentials", "description": "The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval." } }
https://github.com/sylabs/scs-library-client
[ "https://github.com/sylabs/scs-library-client/commit/68ac4cab5cda0afd8758ff5b5e2e57be6a22fcfa" ]
Go
[ { "id": "vul_go_71_1", "commit": "54fbe14", "file_path": "client/pull.go", "start_line": 106, "end_line": 115, "snippet": "func (c *Client) httpGetRangeRequest(ctx context.Context, url string, start, end int64) (*http.Response, error) {\n\treq, err := c.newRequestWithURL(ctx, http.MethodGet,...
[ { "id": "fix_go_71_1", "commit": "68ac4cab5cda0afd8758ff5b5e2e57be6a22fcfa", "file_path": "client/pull.go", "start_line": 106, "end_line": 119, "snippet": "func (c *Client) httpGetRangeRequest(ctx context.Context, url string, start, end int64) (*http.Response, error) {\n\treq, err := http.Ne...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-23538
CVE-2023-28155
The Request package through 2.88.1 for Node.js allows a bypass of SSRF mitigations via an attacker-controller server that does a cross-protocol redirect (HTTP to HTTPS, or HTTPS to HTTP). NOTE: This vulnerability only affects products that are no longer supported by the maintainer.
{ "CWE-918": { "name": "Server-Side Request Forgery (SSRF)", "description": "The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination." } }
https://github.com/cypress-io/request
[ "https://github.com/cypress-io/request/commit/c5bcf21d40fb61feaff21a0e5a2b3934a440024f" ]
JavaScript
[ { "id": "vul_js_32_1", "commit": "0664780", "file_path": "lib/redirect.js", "start_line": 86, "end_line": 155, "snippet": " function processRedirect (shouldRedirect) {\n if (!shouldRedirect) return callback(null, false)\n if (typeof shouldRedirect === 'string') {\n // overridden ...
[ { "id": "fix_js_32_1", "commit": "c5bcf21", "file_path": "lib/redirect.js", "start_line": 90, "end_line": 159, "snippet": " function processRedirect (shouldRedirect) {\n if (!shouldRedirect) return callback(null, false)\n if (typeof shouldRedirect === 'string') {\n // overridden ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-28155
CVE-2022-28347
A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the **options argument, and placing the injection payload in an option name.
{ "CWE-89": { "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special element...
https://github.com/django/django
[ "https://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402", "https://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5", "https://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81", "https://github.com/django/django/commit/9e19accb6e0a00ba7...
Python
[ { "id": "vul_py_7_1", "commit": "8008288", "file_path": "django/db/backends/postgresql/operations.py", "start_line": 290, "end_line": 304, "snippet": " def explain_query_prefix(self, format=None, **options):\n prefix = super().explain_query_prefix(format)\n extra = {}\n ...
[ { "id": "fix_py_7_1", "commit": "00b0fc5", "file_path": "django/db/backends/postgresql/operations.py", "start_line": 302, "end_line": 319, "snippet": " def explain_query_prefix(self, format=None, **options):\n extra = {}\n # Normalize options.\n if options:\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-28347
CVE-2017-16042
Growl adds growl notification support to nodejs. Growl before 1.10.2 does not properly sanitize input before passing it to exec, allowing for arbitrary command execution.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/tj/node-growl
[ "https://github.com/tj/node-growl/commit/d71177d5331c9de4658aca62e0ac921f178b0669" ]
JavaScript
[ { "id": "vul_js_44_2", "commit": "dc8aae0", "file_path": "lib/growl.js", "start_line": 164, "end_line": 290, "snippet": "function growl(msg, options, fn) {\n var image\n , args\n , options = options || {}\n , fn = fn || function(){};\n\n if (options.exec) {\n cmd = {\n t...
[ { "id": "fix_js_44_2", "commit": "d71177d5331c9de4658aca62e0ac921f178b0669", "file_path": "lib/growl.js", "start_line": 163, "end_line": 289, "snippet": "function growl(msg, options, fn) {\n var image\n , args\n , options = options || {}\n , fn = fn || function(){};\n\n if (option...
ghcr.io/patcheval-cve/patcheval-cve:cve-2017-16042
CVE-2023-33967
EaseProbe's MySQL and PostgreSQL data-checking probes build SQL statements from configured data keys whose components identify the database, table, selected field, lookup key, and expected value. The identifier components of those data keys are attacker- or operator-controlled configuration input, but they are concaten...
{ "CWE-89": { "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special element...
https://github.com/megaease/easeprobe
[ "https://github.com/megaease/easeprobe/commit/caaf5860df2aaa76acd29bc40ec9a578d0b1d6e1" ]
Go
[ { "id": "vul_go_26_2", "commit": "0e148b8", "file_path": "probe/client/mysql/mysql.go", "start_line": 156, "end_line": 176, "snippet": "func (r *MySQL) getSQL(str string) (string, error) {\n\tif len(strings.TrimSpace(str)) == 0 {\n\t\treturn \"\", fmt.Errorf(\"Empty SQL data\")\n\t}\n\tfield...
[ { "id": "fix_go_26_1", "commit": "caaf586", "file_path": "probe/client/mysql/mysql.go", "start_line": 171, "end_line": 191, "snippet": "func (r *MySQL) getSQL(str string) (string, error) {\n\tif len(strings.TrimSpace(str)) == 0 {\n\t\treturn \"\", fmt.Errorf(\"Empty SQL data\")\n\t}\n\tfield...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-33967
CVE-2024-21542
Versions of the package luigi before 3.6.0 are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) due to improper destination file path validation in the _extract_packages_archive function.
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/spotify/luigi
[ "https://github.com/spotify/luigi/commit/b5d1b965ead7d9f777a3216369b5baf23ec08999" ]
Python
[ { "id": "vul_py_36_1", "commit": "c9a0d20", "file_path": "luigi/contrib/lsf_runner.py", "start_line": 47, "end_line": 62, "snippet": "def extract_packages_archive(work_dir):\n package_file = os.path.join(work_dir, \"packages.tar\")\n if not os.path.exists(package_file):\n return...
[ { "id": "fix_py_36_1", "commit": "b5d1b96", "file_path": "luigi/contrib/lsf_runner.py", "start_line": 31, "end_line": 31, "snippet": "from luigi.safe_extractor import SafeExtractor" }, { "id": "fix_py_36_2", "commit": "b5d1b96", "file_path": "luigi/contrib/lsf_runner.py", ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-21542
CVE-2022-1883
SQL Injection in GitHub repository camptocamp/terraboard prior to 2.2.0.
{ "CWE-89": { "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special element...
https://github.com/camptocamp/terraboard
[ "https://github.com/camptocamp/terraboard/commit/2a5dbaac015dc0714b41a59995e24f5767f89ddc" ]
Go
[ { "id": "vul_go_31_1", "commit": "608d9d5", "file_path": "db/db.go", "start_line": 323, "end_line": 411, "snippet": "func (db *Database) SearchAttribute(query url.Values) (results []types.SearchResult, page int, total int) {\n\tlog.WithFields(log.Fields{\n\t\t\"query\": query,\n\t}).Info(\"S...
[ { "id": "fix_go_31_1", "commit": "2a5dbaa", "file_path": "db/db.go", "start_line": 323, "end_line": 413, "snippet": "func (db *Database) SearchAttribute(query url.Values) (results []types.SearchResult, page int, total int) {\n\tlog.WithFields(log.Fields{\n\t\t\"query\": query,\n\t}).Info(\"S...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-1883
CVE-2024-27302
go-zero is a web and rpc framework. Go-zero allows user to specify a CORS Filter with a configurable allows param - which is an array of domains allowed in CORS policy. However, the `isOriginAllowed` uses `strings.HasSuffix` to check the origin, which leads to bypass via a malicious domain. This vulnerability is capabl...
{ "CWE-862": { "name": "Missing Authorization", "description": "The product does not perform an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-639": { "name": "Authorization Bypass Through User-Controlled Key", "description": "The system's authorizat...
https://github.com/zeromicro/go-zero
[ "https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db" ]
Go
[ { "id": "vul_go_11_1", "commit": "d953675", "file_path": "rest/internal/cors/handlers.go", "start_line": 79, "end_line": 91, "snippet": "func isOriginAllowed(allows []string, origin string) bool {\n\tfor _, o := range allows {\n\t\tif o == allOrigins {\n\t\t\treturn true\n\t\t}\n\n\t\tif str...
[ { "id": "fix_go_11_1", "commit": "d9d79e9", "file_path": "rest/internal/cors/handlers.go", "start_line": 79, "end_line": 97, "snippet": "func isOriginAllowed(allows []string, origin string) bool {\n\torigin = strings.ToLower(origin)\n\tfor _, allow := range allows {\n\t\tif allow == allOrigi...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-27302
CVE-2022-41672
In Apache Airflow, prior to version 2.4.1, deactivating a user wouldn't prevent an already authenticated user from being able to continue using the UI or API.
{ "CWE-285": { "name": "Improper Authorization", "description": "The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-250": { "name": "Execution with Unnecessary Privileges", "description": "The produ...
https://github.com/apache/airflow
[ "https://github.com/apache/airflow/commit/12bfb571a895a28a58d3189b0fc10cfc1b89e24c" ]
Python
[ { "id": "vul_py_27_1", "commit": "d81b297", "file_path": "airflow/www/app.py", "start_line": 72, "end_line": 155, "snippet": "def create_app(config=None, testing=False):\n \"\"\"Create a new instance of Airflow WWW app\"\"\"\n flask_app = Flask(__name__)\n flask_app.secret_key = con...
[ { "id": "fix_py_27_1", "commit": "12bfb57", "file_path": "airflow/www/app.py", "start_line": 76, "end_line": 160, "snippet": "def create_app(config=None, testing=False):\n \"\"\"Create a new instance of Airflow WWW app\"\"\"\n flask_app = Flask(__name__)\n flask_app.secret_key = con...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-41672
CVE-2021-23727
Celery's result backend exception deserialization trusts exception metadata read from the backend. In BaseBackend.exception_to_python, attacker-controlled backend fields such as exc_module, exc_type, and exc_message can cause Celery to resolve and instantiate an arbitrary Python object instead of a real exception class...
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/celery/celery
[ "https://github.com/celery/celery/commit/1f7ad7e6df1e02039b6ab9eec617d283598cad6b" ]
Python
[ { "id": "vul_py_41_1", "commit": "2d8dbc2", "file_path": "celery/backends/base.py", "start_line": 339, "end_line": 369, "snippet": " def exception_to_python(self, exc):\n \"\"\"Convert serialized exception to Python exception.\"\"\"\n if exc:\n if not isinstance(e...
[ { "id": "fix_py_41_1", "commit": "1f7ad7e", "file_path": "celery/backends/base.py", "start_line": 340, "end_line": 409, "snippet": " def exception_to_python(self, exc):\n \"\"\"Convert serialized exception to Python exception.\"\"\"\n if not exc:\n return None\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-23727
CVE-2018-14574
django.middleware.common.CommonMiddleware in Django 1.11.x before 1.11.15 and 2.0.x before 2.0.8 has an Open Redirect.
{ "CWE-601": { "name": "URL Redirection to Untrusted Site ('Open Redirect')", "description": "The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect." } }
https://github.com/django/django
[ "https://github.com/django/django/commit/d6eaee092709aad477a9894598496c6deec532ff", "https://github.com/django/django/commit/c4e5ff7fdb5fce447675e90291fd33fddd052b3c", "https://github.com/django/django/commit/6fffc3c6d420e44f4029d5643f38d00a39b08525" ]
Python
[ { "id": "vul_py_10_1", "commit": "af344691114e4a68334c30543bfb838996328212", "file_path": "django/middleware/common.py", "start_line": 83, "end_line": 102, "snippet": " def get_full_path_with_slash(self, request):\n \"\"\"\n Return the full path of the request with a trailin...
[ { "id": "fix_py_10_1", "commit": "6fffc3c6d420e44f4029d5643f38d00a39b08525", "file_path": "django/middleware/common.py", "start_line": 84, "end_line": 105, "snippet": " def get_full_path_with_slash(self, request):\n \"\"\"\n Return the full path of the request with a trailin...
ghcr.io/patcheval-cve/patcheval-cve:cve-2018-14574
CVE-2021-21291
OAuth2 Proxy is an open-source reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others) to validate accounts by email, domain or group. In OAuth2 Proxy before version 7.0.0, for users that use the whitelist domain feature, a domain that ended in a similar way to the...
{ "CWE-601": { "name": "URL Redirection to Untrusted Site ('Open Redirect')", "description": "The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect." } }
https://github.com/oauth2-proxy/oauth2-proxy
[ "https://github.com/oauth2-proxy/oauth2-proxy/commit/780ae4f3c99b579cb2ea9845121caebb6192f725" ]
Go
[ { "id": "vul_go_12_1", "commit": "48b1658", "file_path": "oauthproxy.go", "start_line": 425, "end_line": 466, "snippet": "func (p *OAuthProxy) IsValidRedirect(redirect string) bool {\n\tswitch {\n\tcase redirect == \"\":\n\t\t// The user didn't specify a redirect, should fallback to `/`\n\t\...
[ { "id": "fix_go_12_1", "commit": "780ae4f", "file_path": "oauthproxy.go", "start_line": 425, "end_line": 468, "snippet": "func (p *OAuthProxy) IsValidRedirect(redirect string) bool {\n\tswitch {\n\tcase redirect == \"\":\n\t\t// The user didn't specify a redirect, should fallback to `/`\n\t\...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-21291
CVE-2020-8559
The Kubernetes kube-apiserver's upgrade-aware proxy path can forward non-101 backend responses from proxied upgrade requests directly to the client. When the backend responds with redirect-like status codes or Location headers, this can expose an unvalidated redirect on an upgraded/proxied request path and may allow pr...
{ "CWE-601": { "name": "URL Redirection to Untrusted Site ('Open Redirect')", "description": "The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect." } }
https://github.com/kubernetes/kubernetes
[ "https://github.com/kubernetes/kubernetes/commit/dcf60e04ddd6c50c8bf9b0c9d913bf82bff44333" ]
Go
[ { "id": "vul_go_62_1", "commit": "165a221", "file_path": "staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go", "start_line": 257, "end_line": 391, "snippet": "func (h *UpgradeAwareHandler) tryUpgrade(w http.ResponseWriter, req *http.Request) bool {\n\tif !httpstream.IsUpgradeRequ...
[ { "id": "fix_go_62_1", "commit": "dcf60e0", "file_path": "staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go", "start_line": 257, "end_line": 401, "snippet": "func (h *UpgradeAwareHandler) tryUpgrade(w http.ResponseWriter, req *http.Request) bool {\n\tif !httpstream.IsUpgradeRequ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-8559
CVE-2020-7627
node-key-sender through 1.0.11 is vulnerable to Command Injection. It allows execution of arbitrary commands via the 'arrParams' argument in the 'execute()' function.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/garimpeiro-it/node-key-sender
[ "https://github.com/garimpeiro-it/node-key-sender/commit/bea7d317576efa981536a6bf4dd3ff2f5660be44" ]
JavaScript
[ { "id": "vul_js_14_1", "commit": "795eafe", "file_path": "key-sender.js", "start_line": 111, "end_line": 125, "snippet": " module.execute = function(arrParams) {\n return new Promise(function(resolve, reject) {\n var jarPath = path.join(__dirname, 'jar', 'key-sender.jar'...
[ { "id": "fix_js_14_1", "commit": "bea7d317576efa981536a6bf4dd3ff2f5660be44", "file_path": "key-sender.js", "start_line": 111, "end_line": 125, "snippet": " module.execute = function(arrParams) {\n return new Promise(function(resolve, reject) {\n var jarPath = path.join(_...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-7627
CVE-2021-21432
Vela's direct token authentication flow accepts a user-supplied GitHub token and uses it to authenticate the requester. Tokens issued for Vela's own configured GitHub OAuth application can be injected into build environments, such as through a generated ~/.netrc file, and must not be reusable as bearer credentials agai...
{ "CWE-862": { "name": "Missing Authorization", "description": "The product does not perform an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-639": { "name": "Authorization Bypass Through User-Controlled Key", "description": "The system's authorizat...
https://github.com/go-vela/server
[ "https://github.com/go-vela/server/commit/cb4352918b8ecace9fe969b90404d337b0744d46" ]
Go
[ { "id": "vul_go_3_2", "commit": "5a3ffe3", "file_path": "source/github/authentication.go", "start_line": 105, "end_line": 122, "snippet": "func (c *client) AuthenticateToken(r *http.Request) (*library.User, error) {\n\tlogrus.Trace(\"Authenticating user via token\")\n\n\ttoken := r.Header.Ge...
[ { "id": "fix_go_3_1", "commit": "cb43529", "file_path": "source/github/authentication.go", "start_line": 7, "end_line": 20, "snippet": "import (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"net/url\"\n\t\"strings\"\n\n\t\"github.com/go-vela/server/random\"\n\t\"github.com/go-...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-21432
CVE-2019-19499
Grafana's MySQL data source setup builds a go-sql-driver/mysql connection string from administrator-configurable data source fields without sufficiently separating untrusted field values from DSN syntax. An authenticated user who can create or modify MySQL data source configurations can place DSN delimiters or paramete...
{ "CWE-89": { "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special element...
https://github.com/grafana/grafana
[ "https://github.com/grafana/grafana/commit/19dbd27c5caa1a160bd5854b65a4e1fe2a8a4f00" ]
Go
[ { "id": "vul_go_30_1", "commit": "8cf75b4e75be0a3561c4ff1b1cfc884206b30745", "file_path": "pkg/tsdb/mysql/mysql.go", "start_line": 27, "end_line": 72, "snippet": "func newMysqlQueryEndpoint(datasource *models.DataSource) (tsdb.TsdbQueryEndpoint, error) {\n\tlogger := log.New(\"tsdb.mysql\")\...
[ { "id": "fix_go_30_1", "commit": "19dbd27c5caa1a160bd5854b65a4e1fe2a8a4f00", "file_path": "pkg/tsdb/mysql/mysql.go", "start_line": 31, "end_line": 77, "snippet": "func newMysqlQueryEndpoint(datasource *models.DataSource) (tsdb.TsdbQueryEndpoint, error) {\n\tlogger := log.New(\"tsdb.mysql\")\...
ghcr.io/patcheval-cve/patcheval-cve:cve-2019-19499
CVE-2021-3281
In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by "startapp --template" and "startproject --template") allows directory traversal via an archive with absolute paths or relative paths with dot segments.
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/django/django
[ "https://github.com/django/django/commit/52e409ed17287e9aabda847b6afe58be2fa9f86a", "https://github.com/django/django/commit/05413afa8c18cdb978fcdf470e09f7a12b234a23", "https://github.com/django/django/commit/02e6592835b4559909aa3aaaf67988fef435f624", "https://github.com/django/django/commit/21e7622dec1f8612c...
Python
[ { "id": "vul_py_9_1", "commit": "03a8678", "file_path": "django/utils/archive.py", "start_line": 151, "end_line": 179, "snippet": " def extract(self, to_path):\n members = self._archive.getmembers()\n leading = self.has_leading_dir(x.name for x in members)\n for membe...
[ { "id": "fix_py_9_1", "commit": "02e6592", "file_path": "django/utils/archive.py", "start_line": 160, "end_line": 188, "snippet": " def extract(self, to_path):\n members = self._archive.getmembers()\n leading = self.has_leading_dir(x.name for x in members)\n for membe...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-3281
CVE-2024-47616
Pomerium is an identity and context-aware access proxy. The Pomerium databroker service is responsible for managing all persistent Pomerium application state. Requests to the databroker service API are authorized by the presence of a JSON Web Token (JWT) signed by a key known by all Pomerium services in the same deploy...
{ "CWE-863": { "name": "Incorrect Authorization", "description": "The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check." } }
https://github.com/pomerium/pomerium
[ "https://github.com/pomerium/pomerium/commit/e018cf0fc0979d2abe25ff705db019feb7523444" ]
Go
[ { "id": "vul_go_72_1", "commit": "61847b1", "file_path": "pkg/grpcutil/options.go", "start_line": 88, "end_line": 113, "snippet": "func RequireSignedJWT(ctx context.Context, key []byte) error {\n\tif len(key) > 0 {\n\t\trawjwt, ok := JWTFromGRPCRequest(ctx)\n\t\tif !ok {\n\t\t\treturn status...
[ { "id": "fix_go_72_1", "commit": "e018cf0fc0979d2abe25ff705db019feb7523444", "file_path": "pkg/grpcutil/options.go", "start_line": 90, "end_line": 103, "snippet": "func RequireSignedJWT(ctx context.Context, key []byte) error {\n\tif len(key) > 0 {\n\t\trawjwt, ok := JWTFromGRPCRequest(ctx)\n...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-47616
CVE-2024-29041
Express.js minimalist web framework for node. Versions of Express.js prior to 4.19.0 and all pre-release alpha and beta versions of 5.0 are affected by an open redirect vulnerability using malformed URLs. When a user of Express performs a redirect using a user-provided URL Express performs an encode [using `encodeurl`]...
{ "CWE-601": { "name": "URL Redirection to Untrusted Site ('Open Redirect')", "description": "The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect." } }
https://github.com/expressjs/express
[ "https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94", "https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd" ]
JavaScript
[ { "id": "vul_js_49_1", "commit": "567c9c6", "file_path": "lib/response.js", "start_line": 906, "end_line": 914, "snippet": "res.location = function location(url) {\n var loc = url;\n\n // \"back\" is an alias for the referrer\n if (url === 'back') {\n loc = this.req.get('Referrer') || ...
[ { "id": "fix_js_49_1", "commit": "0867302ddbde0e9463d0564fea5861feb708c2dd", "file_path": "lib/response.js", "start_line": 907, "end_line": 934, "snippet": "res.location = function location(url) {\n var loc = url;\n\n // \"back\" is an alias for the referrer\n if (url === 'back') {\n l...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-29041
CVE-2021-22538
A privilege escalation vulnerability impacting the Google Exposure Notification Verification Server (versions prior to 0.23.1), allows an attacker who (1) has UserWrite permissions and (2) is using a carefully crafted request or malicious proxy, to create another user with higher privileges than their own. This occurs ...
{ "CWE-276": { "name": "Incorrect Default Permissions", "description": "During installation, installed file permissions are set to allow anyone to modify those files." } }
https://github.com/google/exposure-notifications-verification-server
[ "https://github.com/google/exposure-notifications-verification-server/commit/eb8cf40b12dbe79304f1133c06fb73419383cd95" ]
Go
[ { "id": "vul_go_50_1", "commit": "3d28d0ba00c12a9d54cd7737dd5000d04fbf6e4e", "file_path": "pkg/rbac/rbac.go", "start_line": 64, "end_line": 80, "snippet": "func CompileAndAuthorize(actorPermission Permission, toUpdate []Permission) (Permission, error) {\n\tvar permission Permission\n\tfor _,...
[ { "id": "fix_go_50_1", "commit": "eb8cf40b12dbe79304f1133c06fb73419383cd95", "file_path": "pkg/rbac/rbac.go", "start_line": 64, "end_line": 90, "snippet": "func CompileAndAuthorize(actorPermission Permission, toUpdate []Permission) (Permission, error) {\n\tvar permission Permission\n\tfor _,...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-22538
CVE-2017-16025
Nes is a websocket extension library for hapi. Hapi is a webserver framework. Versions below and including 6.4.0 have a denial of service vulnerability via an invalid Cookie header. This is only present when websocket authentication is set to `cookie`. Submitting an invalid cookie on the websocket upgrade request will ...
{ "CWE-287": { "name": "Improper Authentication", "description": "When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct." } }
https://github.com/hapijs/nes
[ "https://github.com/hapijs/nes/commit/249ba1755ed6977fbc208463c87364bf884ad655" ]
JavaScript
[ { "id": "vul_js_59_1", "commit": "71e9232", "file_path": "lib/socket.js", "start_line": 524, "end_line": 547, "snippet": "internals.Socket.prototype._authenticate = function () {\n\n const config = this._listener._settings.auth;\n if (!config) {\n return;\n }\n\n if (confi...
[ { "id": "fix_js_59_1", "commit": "249ba1755ed6977fbc208463c87364bf884ad655", "file_path": "lib/socket.js", "start_line": 524, "end_line": 562, "snippet": "internals.Socket.prototype._authenticate = function () {\n\n const config = this._listener._settings.auth;\n if (!config) {\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2017-16025
CVE-2022-2421
Socket.IO parser's binary attachment reconstruction trusts placeholder metadata supplied in encoded packets. When decoding a binary event or acknowledgement, a remote peer can provide a malformed placeholder object with a truthy non-boolean `_placeholder` value or a `num` value that is not a valid attachment index, suc...
{ "CWE-89": { "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special element...
https://github.com/socketio/socket.io-parser
[ "https://github.com/socketio/socket.io-parser/commit/b559f050ee02bd90bd853b9823f8de7fa94a80d4", "https://github.com/socketio/socket.io-parser/commit/04d23cecafe1b859fb03e0cbf6ba3b74dff56d14", "https://github.com/socketio/socket.io-parser/commit/b5d0cb7dc56a0601a09b056beaeeb0e43b160050", "https://github.com/so...
JavaScript
[ { "id": "vul_js_30_1", "commit": "6a59237ed03f91e507e954333d63d19f3db534c6", "file_path": "binary.js", "start_line": 70, "end_line": 86, "snippet": "function _reconstructPacket(data, buffers) {\n if (!data) return data;\n\n if (data && data._placeholder) {\n return buffers[data.num]; //...
[ { "id": "fix_js_30_1", "commit": "04d23cecafe1b859fb03e0cbf6ba3b74dff56d14", "file_path": "binary.js", "start_line": 70, "end_line": 94, "snippet": "function _reconstructPacket(data, buffers) {\n if (!data) return data;\n\n if (data && data._placeholder === true) {\n var isIndexValid =\...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-2421
CVE-2019-10856
Jupyter Notebook's login redirect handling is vulnerable to an open redirect when processing the attacker-controlled next parameter. The handler attempts to allow local redirects under the configured base_url, but URL parsing can treat certain absolute-looking inputs as having an empty netloc even though browsers may i...
{ "CWE-601": { "name": "URL Redirection to Untrusted Site ('Open Redirect')", "description": "The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect." } }
https://github.com/jupyter/notebook
[ "https://github.com/jupyter/notebook/commit/979e0bd15e794ceb00cc63737fcd5fd9addc4a99" ]
Python
[ { "id": "vul_py_46_1", "commit": "16cf97c", "file_path": "notebook/auth/login.py", "start_line": 33, "end_line": 63, "snippet": " def _redirect_safe(self, url, default=None):\n \"\"\"Redirect if url is on our PATH\n\n Full-domain redirects are allowed if they pass our CORS o...
[ { "id": "fix_py_46_1", "commit": "979e0bd15e794ceb00cc63737fcd5fd9addc4a99", "file_path": "notebook/auth/login.py", "start_line": 33, "end_line": 66, "snippet": " def _redirect_safe(self, url, default=None):\n \"\"\"Redirect if url is on our PATH\n\n Full-domain redirects ar...
ghcr.io/patcheval-cve/patcheval-cve:cve-2019-10856
CVE-2015-1326
python-dbusmock before version 0.15.1 AddTemplate() D-Bus method call or DBusTestCase.spawn_server_template() method could be tricked into executing malicious code if an attacker supplies a .pyc file.
{ "CWE-20": { "name": "Improper Input Validation", "description": "The product receives input or data, but it does\n not validate or incorrectly validates that the input has the\n properties that are required to process the data safely and\n correctly." } }
https://github.com/martinpitt/python-dbusmock
[ "https://github.com/martinpitt/python-dbusmock/commit/4e7d0df9093" ]
Python
[ { "id": "vul_py_68_1", "commit": "a4bd39f", "file_path": "dbusmock/mockobject.py", "start_line": 41, "end_line": 50, "snippet": "def load_module(name):\n if os.path.exists(name) and os.path.splitext(name)[1] == '.py':\n sys.path.insert(0, os.path.dirname(os.path.abspath(name)))\n ...
[ { "id": "fix_py_65_1", "commit": "4e7d0df9093", "file_path": "dbusmock/mockobject.py", "start_line": 42, "end_line": 49, "snippet": "def load_module(name):\n if os.path.exists(name) and os.path.splitext(name)[1] == '.py':\n mod = imp.new_module(os.path.splitext(os.path.basename(nam...
ghcr.io/patcheval-cve/patcheval-cve:cve-2015-1326
CVE-2024-39330
An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14. Derived classes of the django.core.files.storage.Storage base class, when they override generate_filename() without replicating the file-path validations from the parent class, potentially allow directory traversal via certain inputs during a sav...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/django/django
[ "https://github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b96703270", "https://github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e095e" ]
Python
[ { "id": "vul_py_4_1", "commit": "156d318", "file_path": "django/core/files/storage/base.py", "start_line": 24, "end_line": 41, "snippet": " def save(self, name, content, max_length=None):\n \"\"\"\n Save new content to the file specified by name. The content should be\n ...
[ { "id": "fix_py_4_1", "commit": "2b00edc0151a660d1eb86da4059904a0fc4e095e", "file_path": "django/core/files/storage/base.py", "start_line": 24, "end_line": 52, "snippet": " def save(self, name, content, max_length=None):\n \"\"\"\n Save new content to the file specified by n...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-39330
CVE-2022-21712
Twisted's HTTP redirect-following clients, including twisted.web.client.RedirectAgent and BrowserLikeRedirectAgent, can leak credential-bearing request headers when they automatically follow a redirect from one origin to another. An attacker who can cause a request carrying cookies or authorization credentials to recei...
{ "CWE-200": { "name": "Exposure of Sensitive Information to an Unauthorized Actor", "description": "The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information." } }
https://github.com/twisted/twisted
[ "https://github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2" ]
Python
[ { "id": "vul_py_53_1", "commit": "7039a20", "file_path": "src/twisted/web/client.py", "start_line": 2144, "end_line": 2146, "snippet": " def __init__(self, agent, redirectLimit=20):\n self._agent = agent\n self._redirectLimit = redirectLimit", "vul_localization": [ ...
[ { "id": "fix_py_53_1", "commit": "af8fe78", "file_path": "src/twisted/web/client.py", "start_line": 2114, "end_line": 2172, "snippet": "_canonicalHeaderName = Headers()._canonicalNameCaps\n_defaultSensitiveHeaders = frozenset(\n [\n b\"Authorization\",\n b\"Cookie\",\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-21712
CVE-2018-20834
A vulnerability was found in node-tar before version 4.4.2 (excluding version 2.2.2). An Arbitrary File Overwrite issue exists when extracting a tarball containing a hardlink to a file that already exists on the system, in conjunction with a later plain file with the same name as the hardlink. This plain file content r...
{ "CWE-59": { "name": "Improper Link Resolution Before File Access ('Link Following')", "description": "The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource." } }
https://github.com/npm/node-tar
[ "https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d" ]
JavaScript
[ { "id": "vul_js_63_1", "commit": "9fc84b9", "file_path": "lib/parse.js", "start_line": 140, "end_line": 285, "snippet": "Parse.prototype._startEntry = function (c) {\n var header = new TarHeader(c)\n , self = this\n , entry\n , ev\n , EntryType\n , onend\n , meta = false\n...
[ { "id": "fix_js_63_1", "commit": "7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d", "file_path": "lib/parse.js", "start_line": 140, "end_line": 281, "snippet": "Parse.prototype._startEntry = function (c) {\n var header = new TarHeader(c)\n , self = this\n , entry\n , ev\n , EntryType\n...
ghcr.io/patcheval-cve/patcheval-cve:cve-2018-20834
CVE-2018-3734
The stattic module's HTTP static file handler is vulnerable to path traversal. It derives a filesystem path from the attacker-controlled request URL pathname and joins it with the configured static root directory without reliably ensuring that the resulting target remains inside that root. An attacker who knows or can ...
{ "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", "description": "The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not pr...
https://github.com/jmjuanes/stattic
[ "https://github.com/jmjuanes/stattic/commit/1649daafa646b12d7311640690df967b0107d768" ]
JavaScript
[ { "id": "vul_js_41_1", "commit": "952c145", "file_path": "index.js", "start_line": 31, "end_line": 106, "snippet": "module.exports.listen = function (port, cb) {\n //Parse the arguments\n cb = (typeof port === \"function\") ? port : cb;\n port = (typeof port === \"number\") ? parseI...
[ { "id": "fix_js_41_1", "commit": "1649daafa646b12d7311640690df967b0107d768", "file_path": "index.js", "start_line": 31, "end_line": 107, "snippet": "module.exports.listen = function (port, cb) {\n //Parse the arguments\n cb = (typeof port === \"function\") ? port : cb;\n port = (typ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2018-3734
CVE-2021-4315
A vulnerability has been found in NYUCCL psiTurk up to 3.2.0 and classified as critical. This vulnerability affects unknown code of the file psiturk/experiment.py. The manipulation of the argument mode leads to improper neutralization of special elements used in a template engine. The exploit has been disclosed to the ...
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/NYUCCL/psiTurk
[ "https://github.com/NYUCCL/psiTurk/commit/47787e15cecd66f2aa87687bf852ae0194a4335f" ]
Python
[ { "id": "vul_py_34_1", "commit": "231d566", "file_path": "psiturk/experiment.py", "start_line": 287, "end_line": 391, "snippet": "def advertisement():\n \"\"\"\n This is the url we give for the ad for our 'external question'. The ad has\n to display two different things: This page ...
[ { "id": "fix_py_34_1", "commit": "47787e15cecd66f2aa87687bf852ae0194a4335f", "file_path": "psiturk/experiment.py", "start_line": 287, "end_line": 392, "snippet": "def advertisement():\n \"\"\"\n This is the url we give for the ad for our 'external question'. The ad has\n to display...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-4315
CVE-2020-26237
Highlight.js is a syntax highlighter written in JavaScript. Highlight.js versions before 9.18.2 and 10.1.2 are vulnerable to Prototype Pollution. A malicious HTML code block can be crafted that will result in prototype pollution of the base object's prototype during highlighting. If you allow users to insert custom HTM...
{ "CWE-471": { "name": "Modification of Assumed-Immutable Data (MAID)", "description": "The product does not properly protect an assumed-immutable element from being modified by an attacker." } }
https://github.com/highlightjs/highlight.js
[ "https://github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0" ]
JavaScript
[ { "id": "vul_js_76_1", "commit": "93fd0d73", "file_path": "src/highlight.js", "start_line": 25, "end_line": 869, "snippet": "const HLJS = function(hljs) {\n // Convenience variables for build-in objects\n /** @type {unknown[]} */\n var ArrayProto = [];\n\n // Global internal variables us...
[ { "id": "fix_js_76_1", "commit": "7241013ae011a585983e176ddc0489a7a52f6bb0", "file_path": "src/highlight.js", "start_line": 25, "end_line": 869, "snippet": "const HLJS = function(hljs) {\n // Convenience variables for build-in objects\n /** @type {unknown[]} */\n var ArrayProto = [];\n\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-26237
CVE-2024-22199
The Django/Pongo2 template engine adapter for Fiber renders template variables without HTML autoescaping by default. In applications that pass attacker-controlled data into template render bindings, including values reached through nested maps or other template-accessible data structures, malicious HTML or JavaScript m...
{ "CWE-116": { "name": "Improper Encoding or Escaping of Output", "description": "The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved....
https://github.com/gofiber/template
[ "https://github.com/gofiber/template/commit/28cff3ac4d4c117ab25b5396954676d624b6cb46" ]
Go
[ { "id": "vul_go_79_1", "commit": "fd5a1ab847ebbf537447561827f310ba70fd0998", "file_path": "django/django.go", "start_line": 211, "end_line": 245, "snippet": "func (e *Engine) Render(out io.Writer, name string, binding interface{}, layout ...string) error {\n\tif !e.Loaded || e.ShouldReload {...
[ { "id": "fix_go_79_1", "commit": "28cff3ac4d4c117ab25b5396954676d624b6cb46", "file_path": "django/django.go", "start_line": 222, "end_line": 265, "snippet": "func (e *Engine) Render(out io.Writer, name string, binding interface{}, layout ...string) error {\n\tif !e.Loaded || e.ShouldReload {...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-22199
CVE-2024-48911
OpenCanary can cross a privilege boundary when the daemon is started with elevated privileges but its configuration is discovered from locations writable by an unprivileged user, such as the current working directory or the user's home directory. An attacker who can control those configuration files, or the environment...
{ "CWE-863": { "name": "Incorrect Authorization", "description": "The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check." } }
https://github.com/thinkst/opencanary
[ "https://github.com/thinkst/opencanary/commit/2c11575b1a3dd8b0df26a879ba856c0aa350c049" ]
Python
[ { "id": "vul_py_63_1", "commit": "d3956bc", "file_path": "opencanary/config.py", "start_line": 52, "end_line": 84, "snippet": " def __init__(self, configfile=SETTINGS):\n self.__config = None\n self.__configfile = configfile\n\n files = [\n configfile,\n ...
[ { "id": "fix_py_63_1", "commit": "2c11575", "file_path": "opencanary/config.py", "start_line": 52, "end_line": 87, "snippet": " def __init__(self, configfile=SETTINGS):\n self.__config = None\n self.__configfile = configfile\n\n files = [\n \"/etc/opencanar...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-48911
CVE-2023-29159
Directory traversal vulnerability in Starlette versions 0.13.5 and later and prior to 0.27.0 allows a remote unauthenticated attacker to view files in a web service which was built using Starlette.
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/encode/starlette
[ "https://github.com/encode/starlette/commit/1797de464124b090f10cf570441e8292936d63e3" ]
Python
[ { "id": "vul_py_58_1", "commit": "24c1fac", "file_path": "starlette/staticfiles.py", "start_line": 162, "end_line": 180, "snippet": " def lookup_path(\n self, path: str\n ) -> typing.Tuple[str, typing.Optional[os.stat_result]]:\n for directory in self.all_directories:\n ...
[ { "id": "fix_py_58_1", "commit": "1797de4", "file_path": "starlette/staticfiles.py", "start_line": 162, "end_line": 180, "snippet": " def lookup_path(\n self, path: str\n ) -> typing.Tuple[str, typing.Optional[os.stat_result]]:\n for directory in self.all_directories:\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-29159
CVE-2023-25173
containerd's OCI spec generation can produce process credentials where the current primary GID is not included in the group list passed to the runtime when user or group settings are resolved from image, OCI, CRI, or client-library configuration. Because container startup may apply the generated supplementary group lis...
{ "CWE-285": { "name": "Improper Authorization", "description": "The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-863": { "name": "Incorrect Authorization", "description": "The product performs an...
https://github.com/containerd/containerd
[ "https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a" ]
Go
[ { "id": "vul_go_52_2", "commit": "0c314901076a74a7b797a545d2f462285fdbb8c4", "file_path": "oci/spec_opts.go", "start_line": 523, "end_line": 613, "snippet": "func WithUser(userstr string) SpecOpts {\n\treturn func(ctx context.Context, client Client, c *containers.Container, s *Spec) error {\...
[ { "id": "fix_go_52_1", "commit": "133f6bb6cd827ce35a5fb279c1ead12b9d21460a", "file_path": "oci/spec_opts.go", "start_line": 116, "end_line": 126, "snippet": "// ensureAdditionalGids ensures that the primary GID is also included in the additional GID list.\nfunc ensureAdditionalGids(s *Spec) ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-25173
CVE-2022-23542
OpenFGA's authorization check logic can incorrectly authorize access using relationship tuples that remain in storage but are no longer valid under the authorization model selected for the Check request. In particular, when an authorization model is changed or tightened, a tuple that was valid under an older model may ...
{ "CWE-285": { "name": "Improper Authorization", "description": "The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action." } }
https://github.com/openfga/openfga
[ "https://github.com/openfga/openfga/commit/cdf2c76ea34b33a9e37d6be516706ef8bf865782" ]
Go
[ { "id": "vul_go_59_2", "commit": "58dbe66", "file_path": "server/commands/check_utils.go", "start_line": 338, "end_line": 349, "snippet": "func (rc *resolutionContext) readUserTuple(ctx context.Context, backend storage.TupleBackend) (*openfgapb.TupleKey, error) {\n\ttk, ok := rc.contextualTu...
[ { "id": "fix_go_59_2", "commit": "cdf2c76", "file_path": "server/commands/check_utils.go", "start_line": 339, "end_line": 363, "snippet": "func (rc *resolutionContext) readUserTuple(ctx context.Context, backend storage.TupleBackend) (*openfgapb.TupleKey, error) {\n\n\ttypesys := typesystem.N...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-23542
CVE-2022-35949
undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forgery) when an application takes in **user input** into the `path/pathname` option of `undici.request`. If a user specifies a URL such as `http://127.0.0.1` or `//127.0.0.1` ```js const undici = require(...
{ "CWE-918": { "name": "Server-Side Request Forgery (SSRF)", "description": "The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination." } }
https://github.com/nodejs/undici
[ "https://github.com/nodejs/undici/commit/124f7ebf705366b2e1844dff721928d270f87895" ]
JavaScript
[ { "id": "vul_js_5_1", "commit": "aef314c", "file_path": "index.js", "start_line": 36, "end_line": 78, "snippet": "function makeDispatcher (fn) {\n return (url, opts, handler) => {\n if (typeof opts === 'function') {\n handler = opts\n opts = null\n }\n\n if (!url || (type...
[ { "id": "fix_js_5_1", "commit": "124f7ebf705366b2e1844dff721928d270f87895", "file_path": "index.js", "start_line": 36, "end_line": 83, "snippet": "function makeDispatcher (fn) {\n return (url, opts, handler) => {\n if (typeof opts === 'function') {\n handler = opts\n opts = nul...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-35949
CVE-2022-0512
Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.6.
{ "CWE-862": { "name": "Missing Authorization", "description": "The product does not perform an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-639": { "name": "Authorization Bypass Through User-Controlled Key", "description": "The system's authorizat...
https://github.com/unshiftio/url-parse
[ "https://github.com/unshiftio/url-parse/commit/9be7ee88afd2bb04e4d5a1a8da9a389ac13f8c40" ]
JavaScript
[ { "id": "vul_js_38_1", "commit": "82c4908", "file_path": "index.js", "start_line": 236, "end_line": 389, "snippet": "function Url(address, location, parser) {\n address = trimLeft(address);\n\n if (!(this instanceof Url)) {\n return new Url(address, location, parser);\n }\n\n var rela...
[ { "id": "fix_js_38_1", "commit": "9be7ee88afd2bb04e4d5a1a8da9a389ac13f8c40", "file_path": "index.js", "start_line": 236, "end_line": 404, "snippet": "function Url(address, location, parser) {\n address = trimLeft(address);\n\n if (!(this instanceof Url)) {\n return new Url(address, loca...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-0512
CVE-2022-39340
OpenFGA is an authorization/permission engine. Prior to version 0.2.4, the `streamed-list-objects` endpoint was not validating the authorization header, resulting in disclosure of objects in the store. Users `openfga/openfga` versions 0.2.3 and prior who are exposing the OpenFGA service to the internet are vulnerable. ...
{ "CWE-862": { "name": "Missing Authorization", "description": "The product does not perform an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-639": { "name": "Authorization Bypass Through User-Controlled Key", "description": "The system's authorizat...
https://github.com/openfga/openfga
[ "https://github.com/openfga/openfga/commit/779d73d4b6d067ee042ec9b59fec707eed71e42f" ]
Go
[ { "id": "vul_go_18_1", "commit": "c8db1ee", "file_path": "pkg/cmd/service/service.go", "start_line": 280, "end_line": 432, "snippet": "func BuildService(config *Config, logger logger.Logger) (*service, error) {\n\ttracer := telemetry.NewNoopTracer()\n\tmeter := telemetry.NewNoopMeter()\n\tto...
[ { "id": "fix_go_18_1", "commit": "779d73d", "file_path": "pkg/cmd/service/service.go", "start_line": 280, "end_line": 438, "snippet": "func BuildService(config *Config, logger logger.Logger) (*service, error) {\n\ttracer := telemetry.NewNoopTracer()\n\tmeter := telemetry.NewNoopMeter()\n\tto...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-39340
CVE-2024-6257
The Git getter in go-getter invokes the external git command with a repository URL supplied by the caller. If that URL is option-like, such as a repository operand that begins with a dash, git may parse the attacker-controlled repository string as command-line options instead of as a repository name. An attacker who ca...
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/hashicorp/go-getter
[ "https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9" ]
Go
[ { "id": "vul_go_20_1", "commit": "975961f", "file_path": "get_git.go", "start_line": 192, "end_line": 229, "snippet": "func (g *GitGetter) clone(ctx context.Context, dst, sshKeyFile string, u *url.URL, ref string, depth int) error {\n\targs := []string{\"clone\"}\n\n\toriginalRef := ref // w...
[ { "id": "fix_go_20_1", "commit": "268c11c", "file_path": "get_git.go", "start_line": 192, "end_line": 229, "snippet": "func (g *GitGetter) clone(ctx context.Context, dst, sshKeyFile string, u *url.URL, ref string, depth int) error {\n\targs := []string{\"clone\"}\n\n\toriginalRef := ref // w...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-6257
CVE-2024-24579
stereoscope is a go library for processing container images and simulating a squash filesystem. Prior to version 0.0.1, it is possible to craft an OCI tar archive that, when stereoscope attempts to unarchive the contents, will result in writing to paths outside of the unarchive temporary directory. Specifically, use o...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/anchore/stereoscope
[ "https://github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204" ]
Go
[ { "id": "vul_go_35_1", "commit": "eb656fc717935ad5abeb8e1379a5c4e11c957120", "file_path": "pkg/file/tarutil.go", "start_line": 128, "end_line": 163, "snippet": "func UntarToDirectory(reader io.Reader, dst string) error {\n\tvisitor := func(entry TarFileEntry) error {\n\t\ttarget := filepath....
[ { "id": "fix_go_35_1", "commit": "09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204", "file_path": "pkg/file/tarutil.go", "start_line": 131, "end_line": 139, "snippet": "func UntarToDirectory(reader io.Reader, dst string) error {\n\treturn IterateTar(\n\t\treader,\n\t\ttarVisitor{\n\t\t\tfs: ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-24579
CVE-2020-17479
jpv (aka Json Pattern Validator) before 2.2.2 does not properly validate input, as demonstrated by a corrupted array.
{ "CWE-20": { "name": "Improper Input Validation", "description": "The product receives input or data, but it does\n not validate or incorrectly validates that the input has the\n properties that are required to process the data safely and\n correctly." } }
https://github.com/manvel-khnkoyan/jpv
[ "https://github.com/manvel-khnkoyan/jpv/commit/e3eec1215caa8d5c560f5e88d0943422831927d6" ]
JavaScript
[ { "id": "vul_js_71_1", "commit": "8a3cb77", "file_path": "index.js", "start_line": 116, "end_line": 285, "snippet": "const compare = (value, pattern, options) => {\n /*\n * Special for debugging\n * */\n const res = (result) => {\n let val = '';\n if (!pattern || ((...
[ { "id": "fix_js_71_1", "commit": "e3eec1215caa8d5c560f5e88d0943422831927d6", "file_path": "index.js", "start_line": 137, "end_line": 309, "snippet": "const compare = (value, pattern, options) => {\n /*\n * Special for debugging\n * */\n const res = (result) => {\n let val ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-17479
CVE-2021-32804
The npm package "tar" (aka node-tar) before versions 6.1.1, 5.0.6, 4.4.14, and 3.3.2 has a arbitrary File Creation/Overwrite vulnerability due to insufficient absolute path sanitization. node-tar aims to prevent extraction of absolute file paths by turning absolute paths into relative paths when the `preservePaths` fla...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/npm/node-tar
[ "https://github.com/npm/node-tar/commit/1f036ca23f64a547bdd6c79c1a44bc62e8115da4" ]
JavaScript
[ { "id": "vul_js_58_1", "commit": "1b94260", "file_path": "lib/write-entry.js", "start_line": 30, "end_line": 85, "snippet": " constructor (p, opt) {\n opt = opt || {}\n super(opt)\n if (typeof p !== 'string')\n throw new TypeError('path is required')\n this.path = p\n //...
[ { "id": "fix_js_58_1", "commit": "1f036ca", "file_path": "lib/write-entry.js", "start_line": 31, "end_line": 62, "snippet": " constructor (p, opt) {\n opt = opt || {}\n super(opt)\n if (typeof p !== 'string')\n throw new TypeError('path is required')\n this.path = p\n //...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-32804
CVE-2020-26299
ftp-srv is an open-source FTP server designed to be simple yet configurable. In ftp-srv before version 4.4.0 there is a path-traversal vulnerability. Clients of FTP servers utilizing ftp-srv hosted on Windows machines can escape the FTP user's defined root folder using the expected FTP commands, for example, CWD and UP...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/autovance/ftp-srv
[ "https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3" ]
JavaScript
[ { "id": "vul_js_55_1", "commit": "722da60", "file_path": "src/fs.js", "start_line": 10, "end_line": 14, "snippet": " constructor(connection, {root, cwd} = {}) {\n this.connection = connection;\n this.cwd = nodePath.normalize(cwd ? nodePath.join(nodePath.sep, cwd) : nodePath.sep);\n ...
[ { "id": "fix_js_55_1", "commit": "457b859", "file_path": "src/fs.js", "start_line": 13, "end_line": 17, "snippet": " constructor(connection, {root, cwd} = {}) {\n this.connection = connection;\n this.cwd = nodePath.normalize((cwd || '/').replace(WIN_SEP_REGEX, '/'));\n this._root =...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-26299
CVE-2019-10795
undefsafe before 2.0.3 is vulnerable to Prototype Pollution. The 'a' function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.
{ "CWE-74": { "name": "Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')", "description": "The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or inc...
https://github.com/remy/undefsafe
[ "https://github.com/remy/undefsafe/commit/f272681b3a50e2c4cbb6a8533795e1453382c822" ]
JavaScript
[ { "id": "vul_js_73_1", "commit": "f495954", "file_path": "lib/undefsafe.js", "start_line": 3, "end_line": 117, "snippet": "function undefsafe(obj, path, value, __res) {\n // I'm not super keen on this private function, but it's because\n // it'll also be use in the browser and I wont *one*...
[ { "id": "fix_js_73_1", "commit": "f272681b3a50e2c4cbb6a8533795e1453382c822", "file_path": "lib/undefsafe.js", "start_line": 3, "end_line": 121, "snippet": "function undefsafe(obj, path, value, __res) {\n // I'm not super keen on this private function, but it's because\n // it'll also be us...
ghcr.io/patcheval-cve/patcheval-cve:cve-2019-10795
CVE-2025-23221
Fedify is a TypeScript library for building federated server apps powered by ActivityPub and other standards. This vulnerability allows a user to maneuver the Webfinger mechanism to perform a GET request to any internal resource on any Host, Port, URL combination regardless of present security mechanisms, and forcing t...
{ "CWE-918": { "name": "Server-Side Request Forgery (SSRF)", "description": "The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination." } }
https://github.com/dahlia/fedify
[ "https://github.com/dahlia/fedify/commit/e921134dd5097586e4563ea80b9e8d1b5460a645", "https://github.com/dahlia/fedify/commit/c505eb82fcd6b5b17174c6659c29721bc801ab9a", "https://github.com/dahlia/fedify/commit/8be3c2038eebf4ae12481683a1e809b314be3151" ]
JavaScript
[ { "id": "vul_js_37_1", "commit": "c505eb8", "file_path": "src/webfinger/lookup.ts", "start_line": 14, "end_line": 106, "snippet": "export async function lookupWebFinger(\n resource: URL | string,\n): Promise<ResourceDescriptor | null> {\n if (typeof resource === \"string\") resource = new ...
[ { "id": "fix_js_37_1", "commit": "8be3c2038eebf4ae12481683a1e809b314be3151", "file_path": "src/webfinger/lookup.ts", "start_line": 15, "end_line": 108, "snippet": "export async function lookupWebFinger(\n resource: URL | string,\n): Promise<ResourceDescriptor | null> {\n if (typeof resourc...
ghcr.io/patcheval-cve/patcheval-cve:cve-2025-23221
CVE-2022-36009
gomatrixserverlib is a Go library for matrix protocol federation. Dendrite is a Matrix homeserver written in Go, an alternative to Synapse. The power level parsing within gomatrixserverlib was failing to parse the `"events_default"` key of the `m.room.power_levels` event, defaulting the event default power level to zer...
{ "CWE-863": { "name": "Incorrect Authorization", "description": "The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check." } }
https://github.com/matrix-org/gomatrixserverlib
[ "https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575" ]
Go
[ { "id": "vul_go_55_1", "commit": "6a49c18", "file_path": "eventcontent.go", "start_line": 408, "end_line": 474, "snippet": "func NewPowerLevelContentFromEvent(event *Event) (c PowerLevelContent, err error) {\n\t// Set the levels to their default values.\n\tc.Defaults()\n\n\tvar strict bool\n...
[ { "id": "fix_go_55_1", "commit": "723fd49", "file_path": "eventcontent.go", "start_line": 408, "end_line": 474, "snippet": "func NewPowerLevelContentFromEvent(event *Event) (c PowerLevelContent, err error) {\n\t// Set the levels to their default values.\n\tc.Defaults()\n\n\tvar strict bool\n...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-36009
CVE-2021-33203
Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by applicat...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/django/django
[ "https://github.com/django/django/commit/20c67a0693c4ede2b09af02574823485e82e4c8f", "https://github.com/django/django/commit/dfaba12cda060b8b292ae1d271b44bf810b1c5b9", "https://github.com/django/django/commit/053cc9534d174dc89daba36724ed2dcb36755b90" ]
Python
[ { "id": "vul_py_6_1", "commit": "aa8781c", "file_path": "django/contrib/admindocs/views.py", "start_line": 321, "end_line": 347, "snippet": " def get_context_data(self, **kwargs):\n template = self.kwargs['template']\n templates = []\n try:\n default_engine...
[ { "id": "fix_py_6_1", "commit": "20c67a0", "file_path": "django/contrib/admindocs/views.py", "start_line": 322, "end_line": 348, "snippet": " def get_context_data(self, **kwargs):\n template = self.kwargs['template']\n templates = []\n try:\n default_engine...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-33203
CVE-2024-1724
In snapd versions prior to 2.62, when using AppArmor for enforcement of sandbox permissions, snapd failed to restrict writes to the $HOME/bin path. In Ubuntu, when this path exists, it is automatically added to the users PATH. An attacker who could convince a user to install a malicious snap which used the 'home' plug...
{ "CWE-732": { "name": "Incorrect Permission Assignment for Critical Resource", "description": "The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors." } }
https://github.com/snapcore/snapd
[ "https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6" ]
Go
[ { "id": "vul_go_60_1", "commit": "9dace38", "file_path": "interfaces/builtin/home.go", "start_line": 48, "end_line": 82, "snippet": "const homeConnectedPlugAppArmor = `\n# Description: Can access non-hidden files in user's $HOME. This is restricted\n# because it gives file access to all of t...
[ { "id": "fix_go_60_1", "commit": "aa191f9", "file_path": "interfaces/builtin/home.go", "start_line": 48, "end_line": 82, "snippet": "const homeConnectedPlugAppArmor = `\n# Description: Can access non-hidden files in user's $HOME. This is restricted\n# because it gives file access to all of t...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-1724
CVE-2021-26921
In util/session/sessionmanager.go in Argo CD before 1.8.4, tokens continue to work even when the user account is disabled.
{ "CWE-613": { "name": "Insufficient Session Expiration", "description": "According to WASC, \"Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.\"" } }
https://github.com/argoproj/argo-cd
[ "https://github.com/argoproj/argo-cd/commit/f5b0db240b4e3abf18e97f6fd99096b4f9e94dc5" ]
Go
[ { "id": "vul_go_66_1", "commit": "ce43b7a", "file_path": "util/session/sessionmanager.go", "start_line": 239, "end_line": 294, "snippet": "func (mgr *SessionManager) Parse(tokenString string) (jwt.Claims, error) {\n\t// Parse takes the token string and a function for looking up the key. The ...
[ { "id": "fix_go_66_1", "commit": "f5b0db2", "file_path": "util/session/sessionmanager.go", "start_line": 239, "end_line": 298, "snippet": "func (mgr *SessionManager) Parse(tokenString string) (jwt.Claims, error) {\n\t// Parse takes the token string and a function for looking up the key. The ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-26921
CVE-2019-16789
In Waitress through version 1.4.0, if a proxy server is used in front of waitress, an invalid request may be sent by an attacker that bypasses the front-end and is parsed differently by waitress leading to a potential for HTTP request smuggling. Specially crafted requests containing special whitespace characters in the...
{ "CWE-444": { "name": "Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')", "description": "The product acts as an intermediary HTTP agent\n (such as a proxy or firewall) in the data flow between two\n entities such as a client and server, but it does not\n ...
https://github.com/Pylons/waitress
[ "https://github.com/Pylons/waitress/commit/11d9e138125ad46e951027184b13242a3c1de017" ]
Python
[ { "id": "vul_py_72_1", "commit": "f11093a", "file_path": "waitress/parser.py", "start_line": 190, "end_line": 297, "snippet": " def parse_header(self, header_plus):\n \"\"\"\n Parses the header_plus block of text (the headers plus the\n first line of the request).\n ...
[ { "id": "fix_py_72_1", "commit": "11d9e138125ad46e951027184b13242a3c1de017", "file_path": "waitress/parser.py", "start_line": 190, "end_line": 298, "snippet": " def parse_header(self, header_plus):\n \"\"\"\n Parses the header_plus block of text (the headers plus the\n ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2019-16789
CVE-2020-15084
In express-jwt (NPM package) up and including version 5.3.3, the algorithms entry to be specified in the configuration is not being enforced. When algorithms is not specified in the configuration, with the combination of jwks-rsa, it may lead to authorization bypass. You are affected by this vulnerability if all of the...
{ "CWE-285": { "name": "Improper Authorization", "description": "The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-863": { "name": "Incorrect Authorization", "description": "The product performs an...
https://github.com/auth0/express-jwt
[ "https://github.com/auth0/express-jwt/commit/7ecab5f8f0cab5297c2b863596566eb0c019cdef" ]
JavaScript
[ { "id": "vul_js_29_1", "commit": "e9ed6d2", "file_path": "lib/index.js", "start_line": 19, "end_line": 136, "snippet": "module.exports = function(options) {\n if (!options || !options.secret) throw new Error('secret should be set');\n\n var secretCallback = options.secret;\n\n if (!isFunc...
[ { "id": "fix_js_29_1", "commit": "7ecab5f", "file_path": "lib/index.js", "start_line": 19, "end_line": 139, "snippet": "module.exports = function(options) {\n if (!options || !options.secret) throw new Error('secret should be set');\n\n if (!options.algorithms) throw new Error('algorithms ...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-15084
CVE-2023-41040
GitPython is a python library used to interact with Git repositories. In order to resolve some git references, GitPython reads files from the `.git` directory, in some places the name of the file being read is provided by the user, GitPython doesn't check if this file is located outside the `.git` directory. This allow...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/gitpython-developers/GitPython
[ "https://github.com/gitpython-developers/GitPython/commit/74e55ee4544867e1bd976b7df5a45869ee397b0b", "https://github.com/gitpython-developers/GitPython/commit/e98f57b81f792f0f5e18d33ee658ae395f9aa3c4" ]
Python
[ { "id": "vul_py_59_1", "commit": "1774f1e", "file_path": "git/refs/symbolic.py", "start_line": 165, "end_line": 205, "snippet": " def _get_ref_info_helper(\n cls, repo: \"Repo\", ref_path: Union[PathLike, None]\n ) -> Union[Tuple[str, None], Tuple[None, str]]:\n \"\"\"Ret...
[ { "id": "fix_py_59_1", "commit": "e98f57b81f792f0f5e18d33ee658ae395f9aa3c4", "file_path": "git/refs/symbolic.py", "start_line": 210, "end_line": 241, "snippet": " def _get_ref_info_helper(\n cls, repo: \"Repo\", ref_path: Union[PathLike, None]\n ) -> Union[Tuple[str, None], Tupl...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-41040
CVE-2025-46331
OpenFGA's CachedCheckResolver can incorrectly treat cycle-dependent Check results as reusable, context-independent authorization decisions. When an authorization model and relationship tuples create recursive or cyclic relationships, a Check or ListObjects evaluation may reach the same tuple subproblem under different ...
{ "CWE-284": { "name": "Improper Access Control", "description": "The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor." } }
https://github.com/openfga/openfga
[ "https://github.com/openfga/openfga/commit/244302e7a8b979d66cc1874a3899cdff7d47862f" ]
Go
[ { "id": "vul_go_67_1", "commit": "1486ac4", "file_path": "internal/graph/cached_resolver.go", "start_line": 145, "end_line": 194, "snippet": "func (c *CachedCheckResolver) ResolveCheck(\n\tctx context.Context,\n\treq *ResolveCheckRequest,\n) (*ResolveCheckResponse, error) {\n\tspan := trace....
[ { "id": "fix_go_67_1", "commit": "244302e", "file_path": "internal/graph/cached_resolver.go", "start_line": 145, "end_line": 206, "snippet": "func (c *CachedCheckResolver) ResolveCheck(\n\tctx context.Context,\n\treq *ResolveCheckRequest,\n) (*ResolveCheckResponse, error) {\n\tspan := trace....
ghcr.io/patcheval-cve/patcheval-cve:cve-2025-46331
CVE-2021-46561
controller/org.controller/org.controller.js in the CVE Services API 1.1.1 before 5c50baf3bda28133a3bc90b854765a64fb538304 allows an organizational administrator to transfer a user account to an arbitrary new organization, and thereby achieve unintended access within the context of that new organization.
{ "CWE-863": { "name": "Incorrect Authorization", "description": "The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check." } }
https://github.com/CVEProject/cve-services
[ "https://github.com/CVEProject/cve-services/commit/5c50baf3bda28133a3bc90b854765a64fb538304" ]
JavaScript
[ { "id": "vul_js_52_1", "commit": "7bd7989", "file_path": "src/controller/org.controller/org.controller.js", "start_line": 496, "end_line": 532, "snippet": " Object.keys(req.ctx.query).forEach(k => {\n const key = k.toLowerCase()\n\n if (key === 'new_username') {\n newUser...
[ { "id": "fix_js_52_2", "commit": "5c50baf", "file_path": "src/controller/org.controller/error.js", "start_line": 25, "end_line": 31, "snippet": " notAllowedToChangeOrganization () {\n const err = {}\n err.error = 'NOT_ALLOWED_TO_CHANGE_ORGANIZATION'\n err.message = 'Only the Secret...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-46561
CVE-2021-45452
Django's file storage save path is vulnerable to directory traversal when Storage.save() processes unsafe storage names without adequately confining them to the storage namespace. An attacker or application input that controls the filename passed to save operations may supply absolute paths, parent-directory components...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/django/django
[ "https://github.com/django/django/commit/e1592e0f26302e79856cc7f2218ae848ae19b0f6", "https://github.com/django/django/commit/4cb35b384ceef52123fc66411a73c36a706825e1", "https://github.com/django/django/commit/8d2f7cff76200cbd2337b2cf1707e383eb1fb54b" ]
Python
[ { "id": "vul_py_11_1", "commit": "c9f648c", "file_path": "django/core/files/storage.py", "start_line": 40, "end_line": 54, "snippet": " def save(self, name, content, max_length=None):\n \"\"\"\n Save new content to the file specified by name. The content should be\n a...
[ { "id": "fix_py_11_1", "commit": "4cb35b3", "file_path": "django/core/files/storage.py", "start_line": 40, "end_line": 57, "snippet": " def save(self, name, content, max_length=None):\n \"\"\"\n Save new content to the file specified by name. The content should be\n a...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-45452
CVE-2023-41039
RestrictedPython is a restricted execution environment for Python to run untrusted code. Python's "format" functionality allows someone controlling the format string to "read" all objects accessible through recursive attribute lookup and subscription from objects he can access. This can lead to critical information dis...
{ "CWE-74": { "name": "Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')", "description": "The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or inc...
https://github.com/zopefoundation/RestrictedPython
[ "https://github.com/zopefoundation/RestrictedPython/commit/4134aedcff17c977da7717693ed89ce56d54c120" ]
Python
[ { "id": "vul_py_64_1", "commit": "41a183d", "file_path": "src/RestrictedPython/Guards.py", "start_line": 242, "end_line": 257, "snippet": "def safer_getattr(object, name, default=None, getattr=getattr):\n \"\"\"Getattr implementation which prevents using format on string objects.\n\n f...
[ { "id": "fix_py_64_1", "commit": "4134aedcff17c977da7717693ed89ce56d54c120", "file_path": "src/RestrictedPython/Guards.py", "start_line": 242, "end_line": 259, "snippet": "def safer_getattr(object, name, default=None, getattr=getattr):\n \"\"\"Getattr implementation which prevents using f...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-41039
CVE-2024-45388
Hoverfly is a lightweight service virtualization/ API simulation / API mocking tool for developers and testers. The `/api/v2/simulation` POST handler allows users to create new simulation views from the contents of a user-specified file. This feature can be abused by an attacker to read arbitrary files from the Hoverfl...
{ "CWE-200": { "name": "Exposure of Sensitive Information to an Unauthorized Actor", "description": "The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Di...
https://github.com/SpectoLabs/hoverfly
[ "https://github.com/SpectoLabs/hoverfly/commit/40f9b44" ]
Go
[ { "id": "vul_go_48_1", "commit": "4b6fa36", "file_path": "core/hoverfly_funcs.go", "start_line": 186, "end_line": 197, "snippet": "func (hf *Hoverfly) readResponseBodyFile(filePath string) (string, error) {\n\tif filepath.IsAbs(filePath) {\n\t\treturn \"\", fmt.Errorf(\"bodyFile contains abs...
[ { "id": "fix_go_48_1", "commit": "40f9b44", "file_path": "core/hoverfly_funcs.go", "start_line": 186, "end_line": 202, "snippet": "func (hf *Hoverfly) readResponseBodyFile(filePath string) (string, error) {\n\tif filepath.IsAbs(filePath) {\n\t\treturn \"\", fmt.Errorf(\"bodyFile contains abs...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-45388
CVE-2021-31542
Django's uploaded-file name handling is vulnerable to directory traversal when attacker-controlled filenames from multipart uploads or file objects are later used to construct storage paths. Components in the upload chain, including MultiPartParser, UploadedFile, FieldFile/FileField, and storage filename generation, mu...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/django/django
[ "https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d", "https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48", "https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007" ]
Python
[ { "id": "vul_py_3_1", "commit": "7f1b088", "file_path": "django/core/files/storage.py", "start_line": 63, "end_line": 92, "snippet": " def get_available_name(self, name, max_length=None):\n \"\"\"\n Return a filename that's free on the target storage system and\n avai...
[ { "id": "fix_py_3_1", "commit": "04ac162", "file_path": "django/core/files/storage.py", "start_line": 65, "end_line": 97, "snippet": " def get_available_name(self, name, max_length=None):\n \"\"\"\n Return a filename that's free on the target storage system and\n avai...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-31542
CVE-2022-24450
NATS JetStream ordered consumers can stall when flow-control accounting does not request a new flow-control marker after a pending marker has already been created and subsequent queued messages exceed the outstanding flow-control window. Under this condition, a consumer may stop delivering all pending messages even tho...
{ "CWE-862": { "name": "Missing Authorization", "description": "The product does not perform an authorization check when an actor attempts to access a resource or perform an action." } }
https://github.com/nats-io/nats-server
[ "https://github.com/nats-io/nats-server/commit/55b7f11" ]
Go
[ { "id": "vul_go_45_1", "commit": "664e8b9", "file_path": "server/consumer.go", "start_line": 2915, "end_line": 2925, "snippet": "func (o *consumer) needFlowControl() bool {\n\tif o.maxpb == 0 {\n\t\treturn false\n\t}\n\t// Decide whether to send a flow control message which we will need the ...
[ { "id": "fix_go_45_1", "commit": "55b7f11", "file_path": "server/consumer.go", "start_line": 2917, "end_line": 2931, "snippet": "func (o *consumer) needFlowControl(sz int) bool {\n\tif o.maxpb == 0 {\n\t\treturn false\n\t}\n\t// Decide whether to send a flow control message which we will nee...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-24450
CVE-2020-28360
The private-ip package exposes an isPrivate(ip) classifier that callers may use to decide whether a server-side request target is unsafe. Its current regular-expression-based checks do not reliably classify IPv4 destinations in private, reserved, or special-use address space, especially when the same destination is sup...
{ "CWE-918": { "name": "Server-Side Request Forgery (SSRF)", "description": "The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination." } }
https://github.com/frenchbread/private-ip
[ "https://github.com/frenchbread/private-ip/commit/840664c4b9ba7888c41cfee9666e9a593db133e9" ]
JavaScript
[ { "id": "vul_js_1_1", "commit": "ce3d745", "file_path": "src/index.js", "start_line": 1, "end_line": 11, "snippet": "export default (ip) => (\n /^(::f{4}:)?10\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/i.test(ip) ||\n /^(::f{4}:)?192\\.168\\.([0-9]{1,3})\\.([0-9]{1,3})$/i.test(ip) ||\n ...
[ { "id": "fix_js_1_1", "commit": "840664c", "file_path": "src/index.js", "start_line": 1, "end_line": 33, "snippet": "var Netmask = require('netmask').Netmask\nfunction netmaskCheck (params) {\n let privateRanges = [\n '0.0.0.0/8',\n '10.0.0.0/8',\n '100.64.0.0/10',\n '127.0.0.0/...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-28360
CVE-2019-10787
im-resize through 2.3.2 allows remote attackers to execute arbitrary commands via the "exec" argument. The cmd argument used within index.js, can be controlled by user without any sanitization.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/Turistforeningen/node-im-resize
[ "https://github.com/Turistforeningen/node-im-resize/commit/de624dacf6a50e39fe3472af1414d44937ce1f03" ]
JavaScript
[ { "id": "vul_js_7_1", "commit": "499fe82", "file_path": "index.js", "start_line": 9, "end_line": 17, "snippet": "module.exports = function(image, output, cb) {\n var cmd = module.exports.cmd(image, output);\n exec(cmd, {timeout: 30000}, function(e, stdout, stderr) {\n if (e) { return cb...
[ { "id": "fix_js_7_1", "commit": "de624da", "file_path": "index.js", "start_line": 9, "end_line": 21, "snippet": "module.exports = function(image, output, cb) {\n if(/;|&|`|\\$|\\(|\\)|\\|\\||\\||!|>|<|\\?|\\${/g.test(JSON.stringify(image))) {\n console.log('Input Validation failed, Suspi...
ghcr.io/patcheval-cve/patcheval-cve:cve-2019-10787
CVE-2024-52010
Zoraxy is a general purpose HTTP reverse proxy and forwarding tool. A command injection vulnerability in the Web SSH feature allows an authenticated attacker to execute arbitrary commands as root on the host. Zoraxy has a Web SSH terminal feature that allows authenticated users to connect to SSH servers from their brow...
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/tobychui/zoraxy
[ "https://github.com/tobychui/zoraxy/commit/2e9bc77a5d832bff1093058d42ce7a61382e4bc6", "https://github.com/tobychui/zoraxy/commit/c07d5f85dfc37bd32819358ed7d4bc32c604e8f0" ]
Go
[ { "id": "vul_go_32_1", "commit": "e79a70b", "file_path": "src/mod/sshprox/sshprox.go", "start_line": 165, "end_line": 203, "snippet": "func (i *Instance) CreateNewConnection(listenPort int, username string, remoteIpAddr string, remotePort int) error {\n\t//Create a gotty instance\n\tconnAddr...
[ { "id": "fix_go_32_1", "commit": "2e9bc77", "file_path": "src/mod/sshprox/sshprox.go", "start_line": 150, "end_line": 199, "snippet": "func (i *Instance) CreateNewConnection(listenPort int, username string, remoteIpAddr string, remotePort int) error {\n\t//Create a gotty instance\n\tconnAddr...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-52010
CVE-2022-37109
patrickfuller camp up to and including commit bbd53a256ed70e79bd8758080936afbf6d738767 is vulnerable to Incorrect Access Control. Access to the password.txt file is not properly restricted as it is in the root directory served by StaticFileHandler and the Tornado rule to throw a 403 error when password.txt is accessed ...
{ "CWE-522": { "name": "Insufficiently Protected Credentials", "description": "The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval." } }
https://github.com/patrickfuller/camp
[ "https://github.com/patrickfuller/camp/commit/bf6af5c2e5cf713e4050c11c52dd4c55e89880b1" ]
JavaScript
[ { "id": "vul_py_18_1", "commit": "bbd53a2", "file_path": "server.py", "start_line": 43, "end_line": 50, "snippet": " def post(self):\n password = self.get_argument(\"password\", \"\")\n if hashlib.sha512(password).hexdigest() == PASSWORD:\n self.set_secure_cookie(...
[ { "id": "fix_py_18_1", "commit": "bf6af5c2e5cf713e4050c11c52dd4c55e89880b1", "file_path": "server.py", "start_line": 42, "end_line": 49, "snippet": " def post(self):\n password = self.get_argument(\"password\", \"\")\n if hashlib.sha512(password.encode()).hexdigest() == PASS...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-37109
CVE-2020-7649
This affects the package snyk-broker before 4.73.0. It allows arbitrary file reads for users with access to Snyk's internal network via directory traversal.
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/snyk/broker
[ "https://github.com/snyk/broker/commit/90e0bac07a800b7c4c6646097c9c89d6b878b429" ]
JavaScript
[ { "id": "vul_js_54_1", "commit": "57c8741", "file_path": "lib/filters/index.js", "start_line": 11, "end_line": 163, "snippet": "module.exports = ruleSource => {\n let rules = [];\n const config = require('../config');\n\n // polymorphic support\n if (Array.isArray(ruleSource)) {\n rul...
[ { "id": "fix_js_54_1", "commit": "90e0bac07a800b7c4c6646097c9c89d6b878b429", "file_path": "lib/filters/index.js", "start_line": 12, "end_line": 169, "snippet": "module.exports = ruleSource => {\n let rules = [];\n const config = require('../config');\n\n // polymorphic support\n if (Arra...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-7649
CVE-2020-11053
In OAuth2 Proxy before 5.1.1, there is an open redirect vulnerability. Users can provide a redirect address for the proxy to send the authenticated user to at the end of the authentication flow. This is expected to be the original URL that the user was trying to access. This redirect URL is checked within the proxy and...
{ "CWE-601": { "name": "URL Redirection to Untrusted Site ('Open Redirect')", "description": "The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect." } }
https://github.com/oauth2-proxy/oauth2-proxy
[ "https://github.com/oauth2-proxy/oauth2-proxy/commit/0d5fa211df8ef2449347a56b22c779eb8d894c43" ]
Go
[ { "id": "vul_go_14_2", "commit": "36da6e2", "file_path": "oauthproxy.go", "start_line": 579, "end_line": 617, "snippet": "func (p *OAuthProxy) IsValidRedirect(redirect string) bool {\n\tswitch {\n\tcase strings.HasPrefix(redirect, \"/\") && !strings.HasPrefix(redirect, \"//\") && !strings.Ha...
[ { "id": "fix_go_14_1", "commit": "0d5fa21", "file_path": "oauthproxy.go", "start_line": 57, "end_line": 64, "snippet": "var (\n\t// ErrNeedsLogin means the user should be redirected to the login page\n\tErrNeedsLogin = errors.New(\"redirect to login page\")\n\n\t// Used to check final redire...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-11053
CVE-2020-8132
Lack of input validation in pdf-image npm package version <= 2.0.0 may allow an attacker to run arbitrary code if PDF file path is constructed based on untrusted user input.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/mooz/node-pdf-image
[ "https://github.com/mooz/node-pdf-image/commit/15c13846a966c8513e30aff58471163a872b3b6d" ]
JavaScript
[ { "id": "vul_js_42_1", "commit": "5803471", "file_path": "index.js", "start_line": 25, "end_line": 30, "snippet": " constructGetInfoCommand: function () {\n return util.format(\n \"pdfinfo \\\"%s\\\"\",\n this.pdfFilePath\n );\n },", "vul_localization": [ { ...
[ { "id": "fix_js_42_1", "commit": "15c13846a966c8513e30aff58471163a872b3b6d", "file_path": "index.js", "start_line": 24, "end_line": 29, "snippet": " constructGetInfoCommand: function () {\n return {\n cmd: \"pdfinfo\",\n args: [this.pdfFilePath]\n };\n }," }, { "id"...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-8132
CVE-2017-1000189
nodejs ejs version older than 2.5.5 is vulnerable to a denial-of-service due to weak input validation in the ejs.renderFile()
{ "CWE-20": { "name": "Improper Input Validation", "description": "The product receives input or data, but it does\n not validate or incorrectly validates that the input has the\n properties that are required to process the data safely and\n correctly." } }
https://github.com/mde/ejs
[ "https://github.com/mde/ejs/commit/49264e0037e313a0a3e033450b5c184112516d8f" ]
JavaScript
[ { "id": "vul_js_67_1", "commit": "7eaba6ad", "file_path": "lib/ejs.js", "start_line": 268, "end_line": 281, "snippet": "function cpOptsInData(data, opts) {\n _OPTS.forEach(function (p) {\n if (typeof data[p] != 'undefined') {\n // Disallow setting the root opt for includes via a pas...
[ { "id": "fix_js_67_1", "commit": "49264e0037e313a0a3e033450b5c184112516d8f", "file_path": "lib/ejs.js", "start_line": 274, "end_line": 285, "snippet": "function cpOptsInData(data, opts) {\n _OPTS.forEach(function (p) {\n if (typeof data[p] != 'undefined') {\n // Disallow passing pot...
ghcr.io/patcheval-cve/patcheval-cve:cve-2017-1000189
CVE-2020-7640
pixl-class prior to 1.0.3 allows execution of arbitrary commands. The members argument of the create function can be controlled by users without any sanitization.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/jhuckaby/pixl-class
[ "https://github.com/jhuckaby/pixl-class/commit/47677a3638e3583e42f3a05cc7f0b30293d2acc8,", "https://github.com/jhuckaby/pixl-class/commit/47677a3638e3583e42f3a05cc7f0b30293d2acc8" ]
JavaScript
[ { "id": "vul_js_18_1", "commit": "cd79906", "file_path": "class.js", "start_line": 8, "end_line": 104, "snippet": "exports.create = function create(members) {\n\t// create new class using php-style syntax (sort of)\n\tif (!members) members = {};\n\t\n\t// setup constructor\n\tvar constructor...
[ { "id": "fix_js_18_1", "commit": "47677a3", "file_path": "class.js", "start_line": 8, "end_line": 105, "snippet": "exports.create = function create(members) {\n\t// create new class using php-style syntax (sort of)\n\tif (!members) members = {};\n\t\n\t// setup constructor\n\tvar constructor...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-7640
CVE-2022-46146
Prometheus Exporter Toolkit is a utility package to build exporters. Prior to versions 0.7.2 and 0.8.2, if someone has access to a Prometheus web.yml file and users' bcrypted passwords, they can bypass security by poisoning the built-in authentication cache. Versions 0.7.2 and 0.8.2 contain a fix for the issue. There i...
{ "CWE-287": { "name": "Improper Authentication", "description": "When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct." } }
https://github.com/prometheus/exporter-toolkit
[ "https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5" ]
Go
[ { "id": "vul_go_64_1", "commit": "c6a2415", "file_path": "web/handler.go", "start_line": 87, "end_line": 137, "snippet": "func (u *webHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tc, err := getConfig(u.tlsConfigPath)\n\tif err != nil {\n\t\tu.logger.Log(\"msg\", \"Unable to...
[ { "id": "fix_go_64_1", "commit": "5b1eab34484ddd353986bce736cd119d863e4ff5", "file_path": "web/handler.go", "start_line": 88, "end_line": 143, "snippet": "func (u *webHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tc, err := getConfig(u.tlsConfigPath)\n\tif err != nil {\n\t\t...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-46146
CVE-2023-30625
rudder-server is part of RudderStack, an open source Customer Data Platform (CDP). Versions of rudder-server prior to 1.3.0-rc.1 are vulnerable to SQL injection. This issue may lead to Remote Code Execution (RCE) due to the `rudder` role in PostgresSQL having superuser permissions by default. Version 1.3.0-rc.1 contain...
{ "CWE-89": { "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special element...
https://github.com/rudderlabs/rudder-server
[ "https://github.com/rudderlabs/rudder-server/commit/2f956b7eb3d5eb2de3e79d7df2c87405af25071e", "https://github.com/rudderlabs/rudder-server/commit/9c009d9775abc99e72fc470f4c4c8e8f1775e82a", "https://github.com/rudderlabs/rudder-server/commit/0d061ff2d8c16845179d215bf8012afceba12a30" ]
Go
[ { "id": "vul_go_28_1", "commit": "725e9e7", "file_path": "router/failed-events-manager.go", "start_line": 91, "end_line": 103, "snippet": "func (fem *FailedEventsManagerT) DropFailedRecordIDs(taskRunID string) {\n\tif !failedKeysEnabled {\n\t\treturn\n\t}\n\n\t// Drop table\n\ttable := fmt.S...
[ { "id": "fix_go_28_1", "commit": "0d061ff", "file_path": "router/failed-events-manager.go", "start_line": 53, "end_line": 89, "snippet": "func (*FailedEventsManagerT) SaveFailedRecordIDs(taskRunIDFailedEventsMap map[string][]*FailedEventRowT, txn *sql.Tx) {\n\tif !failedKeysEnabled {\n\t\tre...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-30625
CVE-2021-39163
Matrix is an ecosystem for open federated Instant Messaging and Voice over IP. In versions 1.41.0 and prior, unauthorised users can access the name, avatar, topic and number of members of a room if they know the ID of the room. This vulnerability is limited to homeservers where the vulnerable homeserver is in the room ...
{ "CWE-863": { "name": "Incorrect Authorization", "description": "The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check." } }
https://github.com/matrix-org/synapse
[ "https://github.com/matrix-org/synapse/commit/cb35df940a" ]
Python
[ { "id": "vul_py_48_1", "commit": "52c7a51", "file_path": "synapse/groups/groups_server.py", "start_line": 321, "end_line": 357, "snippet": " async def get_rooms_in_group(\n self, group_id: str, requester_user_id: str\n ) -> JsonDict:\n \"\"\"Get the rooms in group as seen...
[ { "id": "fix_py_48_1", "commit": "cb35df940a828bc40b96daed997b5ad4c7842fd3", "file_path": "synapse/groups/groups_server.py", "start_line": 321, "end_line": 371, "snippet": " async def get_rooms_in_group(\n self, group_id: str, requester_user_id: str\n ) -> JsonDict:\n \"\...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-39163
CVE-2018-3733
crud-file-server node module before 0.9.0 suffers from a Path Traversal vulnerability due to incorrect validation of url, which allows a malicious user to read content of any file with known path.
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/omphalos/crud-file-server
[ "https://github.com/omphalos/crud-file-server/commit/4fc3b404f718abb789f4ce4272c39c7a138c7a82" ]
JavaScript
[ { "id": "vul_js_27_1", "commit": "833e7fc", "file_path": "crud-file-server.js", "start_line": 4, "end_line": 8, "snippet": "var cleanUrl = function(url) { \n\turl = decodeURIComponent(url);\n\twhile(url.indexOf('..').length > 0) { url = url.replace('..', ''); }\n\treturn url;\n};", "vul_...
[ { "id": "fix_js_27_1", "commit": "4fc3b40", "file_path": "crud-file-server.js", "start_line": 4, "end_line": 8, "snippet": "var cleanUrl = function(url) { \n\turl = decodeURIComponent(url);\n\twhile(url.indexOf('..') >= 0) { url = url.replace('..', ''); }\n\treturn url;\n};" } ]
ghcr.io/patcheval-cve/patcheval-cve:cve-2018-3733
CVE-2022-31145
FlyteAdmin's external OAuth2/OIDC resource server validation accepts tokens issued by an external identity provider without correctly enforcing the JWT time-validity claims. An authenticated user or token holder can present a previously valid, externally issued Access Token or ID Token whose expiration time has already...
{ "CWE-613": { "name": "Insufficient Session Expiration", "description": "According to WASC, \"Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.\"" } }
https://github.com/flyteorg/flyteadmin
[ "https://github.com/flyteorg/flyteadmin/commit/a1ec282d02706e074bc4986fd0412e5da3b9d00a" ]
Go
[ { "id": "vul_go_65_1", "commit": "f18839d", "file_path": "auth/authzserver/resource_server.go", "start_line": 30, "end_line": 42, "snippet": "func (r ResourceServer) ValidateAccessToken(ctx context.Context, expectedAudience, tokenStr string) (interfaces.IdentityContext, error) {\n\traw, err ...
[ { "id": "fix_go_65_1", "commit": "a1ec282d02706e074bc4986fd0412e5da3b9d00a", "file_path": "auth/authzserver/resource_server.go", "start_line": 31, "end_line": 47, "snippet": "func (r ResourceServer) ValidateAccessToken(ctx context.Context, expectedAudience, tokenStr string) (interfaces.Ident...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-31145
CVE-2020-7674
access-policy through 3.1.0 is vulnerable to Arbitrary Code Execution. User input provided to the `template` function is executed by the `eval` function resulting in code execution.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/TupleAustin/access-policy
[ "https://github.com/TupleAustin/access-policy/commit/b5b12e22887a782d8b56a0464db7aaa22cc36d73" ]
JavaScript
[ { "id": "vul_js_20_1", "commit": "64d9bdb", "file_path": "lib/encode.js", "start_line": 3, "end_line": 7, "snippet": "function template(literal, data) {\n var tmpl = literal.replace(/(\\$\\{)/gm, '$1data.');\n\n return eval('`' + tmpl + '`');\n}", "vul_localization": [ { ...
[ { "id": "fix_js_20_1", "commit": "b5b12e22887a782d8b56a0464db7aaa22cc36d73", "file_path": "lib/encode.js", "start_line": 3, "end_line": 35, "snippet": "function template(literal, data) {\n var tmpl = literal.replace(/(\\$\\{)/gm, '$1data.');\n let blacklist = ['&', ';', '|', '-', '$', '`',...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-7674
CVE-2019-15597
A code injection exists in node-df v0.1.4 that can allow an attacker to remote code execution by unsanitized input.
{ "CWE-94": { "name": "Improper Control of Generation of Code ('Code Injection')", "description": "The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syn...
https://github.com/adriano-di-giovanni/node-df
[ "https://github.com/adriano-di-giovanni/node-df/commit/72bcceab653bc064583d438072eb20f2d73654be" ]
JavaScript
[ { "id": "vul_js_13_1", "commit": "c0b554a", "file_path": "lib/index.js", "start_line": 41, "end_line": 55, "snippet": " exec(command, function(err, stdout, stderr) {\n if (err) {\n callback(err)\n return\n }\n\n if (stderr) {\n callbac...
[ { "id": "fix_js_13_1", "commit": "72bcceab653bc064583d438072eb20f2d73654be", "file_path": "lib/index.js", "start_line": 46, "end_line": 60, "snippet": " exec(escapeShell(command), function(err, stdout, stderr) {\n if (err) {\n callback(err)\n return\n }...
ghcr.io/patcheval-cve/patcheval-cve:cve-2019-15597
CVE-2023-34457
MechanicalSoup is a Python library for automating interaction with websites. Starting in version 0.2.0 and prior to version 1.3.0, a malicious web server can read arbitrary files on the client using a `<input type="file" ...>` inside HTML form. All users of MechanicalSoup's form submission are affected, unless they too...
{ "CWE-20": { "name": "Improper Input Validation", "description": "The product receives input or data, but it does\n not validate or incorrectly validates that the input has the\n properties that are required to process the data safely and\n correctly." } }
https://github.com/MechanicalSoup/MechanicalSoup
[ "https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e" ]
Python
[ { "id": "vul_py_66_1", "commit": "b9c8a0c", "file_path": "mechanicalsoup/browser.py", "start_line": 187, "end_line": 293, "snippet": " @classmethod\n def get_request_kwargs(cls, form, url=None, **kwargs):\n \"\"\"Extract input data from the form.\"\"\"\n method = str(form...
[ { "id": "fix_py_66_1", "commit": "d57c4a269bba3b9a0c5bfa20292955b849006d9e", "file_path": "mechanicalsoup/browser.py", "start_line": 188, "end_line": 296, "snippet": " @classmethod\n def get_request_kwargs(cls, form, url=None, **kwargs):\n \"\"\"Extract input data from the form....
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-34457
CVE-2022-0686
The url-parse package incorrectly handles special URL authority parsing when a URL contains an empty port separator or an ambiguous repeated colon after the host. Crafted URLs such as http://example.com: and http://example.com:: can produce inconsistent protocol, host, hostname, port, pathname, origin, or href values. ...
{ "CWE-862": { "name": "Missing Authorization", "description": "The product does not perform an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-639": { "name": "Authorization Bypass Through User-Controlled Key", "description": "The system's authorizat...
https://github.com/unshiftio/url-parse
[ "https://github.com/unshiftio/url-parse/commit/d5c64791ef496ca5459ae7f2176a31ea53b127e5" ]
JavaScript
[ { "id": "vul_js_35_1", "commit": "4f2ae67", "file_path": "index.js", "start_line": 33, "end_line": 44, "snippet": "var rules = [\n ['#', 'hash'], // Extract from the back.\n ['?', 'query'], // Extract from the back.\n function sanitize(address,...
[ { "id": "fix_js_35_1", "commit": "d5c6479", "file_path": "index.js", "start_line": 33, "end_line": 44, "snippet": "var rules = [\n ['#', 'hash'], // Extract from the back.\n ['?', 'query'], // Extract from the back.\n function sanitize(address,...
ghcr.io/patcheval-cve/patcheval-cve:cve-2022-0686
CVE-2020-29529
HashiCorp go-slug's archive unpacking logic is vulnerable to directory traversal when extracting attacker-controlled gzip-compressed tar slug archives. A malicious archive can create symlinks inside the destination directory and then include later file or directory entries whose paths traverse through those symlinks, i...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/hashicorp/go-slug
[ "https://github.com/hashicorp/go-slug/commit/764785bc4cbb9e600ad1cf1a6bd21b535c182983", "https://github.com/hashicorp/go-slug/commit/28cafc59c8da6126a3ae94dfa84181df4073454f" ]
Go
[ { "id": "vul_go_24_1", "commit": "dbc66eb", "file_path": "slug.go", "start_line": 206, "end_line": 303, "snippet": "func Unpack(r io.Reader, dst string) error {\n\t// Decompress as we read.\n\tuncompressed, err := gzip.NewReader(r)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Failed to uncomp...
[ { "id": "fix_go_24_1", "commit": "28cafc5", "file_path": "slug.go", "start_line": 206, "end_line": 341, "snippet": "func Unpack(r io.Reader, dst string) error {\n\t// Decompress as we read.\n\tuncompressed, err := gzip.NewReader(r)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Failed to uncomp...
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-29529
CVE-2021-41246
Express OpenID Connect is vulnerable to session fixation during the OpenID Connect callback login flow. Before authentication completes, an attacker may be able to make a victim use an application session cookie or server-side session identifier that the attacker knows or controls, such as an anonymous pre-login sessio...
{ "CWE-384": { "name": "Session Fixation", "description": "Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions." } }
https://github.com/auth0/express-openid-connect
[ "https://github.com/auth0/express-openid-connect/commit/5ab67ff2bd84f76674066b5e129b43ab5f2f430f" ]
JavaScript
[ { "id": "vul_js_60_1", "commit": "1a0c328921f875720b6268e94747025b3fcd1478", "file_path": "middleware/auth.js", "start_line": 70, "end_line": 144, "snippet": " async (req, res, next) => {\n next = cb(next).once();\n\n client =\n client ||\n (await getClie...
[ { "id": "fix_js_60_1", "commit": "5ab67ff2bd84f76674066b5e129b43ab5f2f430f", "file_path": "middleware/auth.js", "start_line": 71, "end_line": 164, "snippet": " async (req, res, next) => {\n next = cb(next).once();\n\n client =\n client ||\n (await getClie...
ghcr.io/patcheval-cve/patcheval-cve:cve-2021-41246
CVE-2023-22480
KubeOperator is an open source Kubernetes distribution focused on helping enterprises plan, deploy and operate production-level K8s clusters. In KubeOperator versions 3.16.3 and below, API interfaces with unauthorized entities and can leak sensitive information. This vulnerability could be used to take over the cluster...
{ "CWE-285": { "name": "Improper Authorization", "description": "The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action." }, "CWE-863": { "name": "Incorrect Authorization", "description": "The product performs an...
https://github.com/KubeOperator/KubeOperator
[ "https://github.com/KubeOperator/KubeOperator/commit/7ef42bf1c16900d13e6376f8be5ecdbfdfb44aaf" ]
Go
[ { "id": "vul_go_54_1", "commit": "8205703", "file_path": "pkg/router/v1/v1api.go", "start_line": 20, "end_line": 74, "snippet": "func V1(parent iris.Party) {\n\tv1 := parent.Party(\"/v1\")\n\tauthParty := v1.Party(\"/auth\")\n\tmvc.New(authParty.Party(\"/session\")).HandleError(ErrorHandler)...
[ { "id": "fix_go_54_1", "commit": "7ef42bf1c16900d13e6376f8be5ecdbfdfb44aaf", "file_path": "pkg/router/v1/v1api.go", "start_line": 20, "end_line": 74, "snippet": "func V1(parent iris.Party) {\n\tv1 := parent.Party(\"/v1\")\n\tauthParty := v1.Party(\"/auth\")\n\tmvc.New(authParty.Party(\"/sess...
ghcr.io/patcheval-cve/patcheval-cve:cve-2023-22480
CVE-2025-29778
Kyverno is a policy engine designed for cloud native platform engineering teams. Prior to version 1.14.0-alpha.1, Kyverno ignores subjectRegExp and IssuerRegExp while verifying artifact's sign with keyless mode. It allows the attacker to deploy kubernetes resources with the artifacts that were signed by unexpected cert...
{ "CWE-285": { "name": "Improper Authorization", "description": "The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action." } }
https://github.com/kyverno/kyverno
[ "https://github.com/kyverno/kyverno/commit/8777672" ]
Go
[ { "id": "vul_go_44_1", "commit": "5f42a0b", "file_path": "pkg/cosign/cosign.go", "start_line": 536, "end_line": 566, "snippet": "func matchSignatures(signatures []oci.Signature, subject, subjectRegExp, issuer, issuerRegExp string, extensions map[string]string) error {\n\tif subject == \"\" &...
[ { "id": "fix_go_44_1", "commit": "8777672", "file_path": "pkg/cosign/cosign.go", "start_line": 536, "end_line": 539, "snippet": "func matchSignatures(signatures []oci.Signature, subject, subjectRegExp, issuer, issuerRegExp string, extensions map[string]string) error {\n\tif subject == \"\" &...
ghcr.io/patcheval-cve/patcheval-cve:cve-2025-29778
CVE-2020-4053
In Helm greater than or equal to 3.0.0 and less than 3.2.4, a path traversal attack is possible when installing Helm plugins from a tar archive over HTTP. It is possible for a malicious plugin author to inject a relative path into a plugin archive, and copy a file outside of the intended directory. This has been fixed ...
{ "CWE-73": { "name": "External Control of File Name or Path", "description": "The product allows user input to control or influence paths or file names that are used in filesystem operations." }, "CWE-22": { "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", ...
https://github.com/helm/helm
[ "https://github.com/helm/helm/commit/0ad800ef43d3b826f31a5ad8dfbb4fe05d143688", "https://github.com/helm/helm/commit/b6bbe4f08bbb98eadd6c9cd726b08a5c639908b3" ]
Go
[ { "id": "vul_go_36_1", "commit": "8f83204", "file_path": "pkg/plugin/installer/http_installer.go", "start_line": 154, "end_line": 198, "snippet": "func (g *TarGzExtractor) Extract(buffer *bytes.Buffer, targetDir string) error {\n\tuncompressedStream, err := gzip.NewReader(buffer)\n\tif err !...
[ { "id": "fix_go_36_1", "commit": "0ad800e", "file_path": "pkg/plugin/installer/http_installer.go", "start_line": 171, "end_line": 255, "snippet": "func cleanJoin(root, dest string) (string, error) {\n\n\t// On Windows, this is a drive separator. On UNIX-like, this is the path list separator....
ghcr.io/patcheval-cve/patcheval-cve:cve-2020-4053
CVE-2018-18074
The Requests package before 2.20.0 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.
{ "CWE-522": { "name": "Insufficiently Protected Credentials", "description": "The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval." } }
https://github.com/requests/requests
[ "https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff" ]
Python
[ { "id": "vul_py_38_1", "commit": "dd754d1", "file_path": "requests/sessions.py", "start_line": 231, "end_line": 253, "snippet": " def rebuild_auth(self, prepared_request, response):\n \"\"\"When being redirected we may want to strip authentication from the\n request to avoid...
[ { "id": "fix_py_38_1", "commit": "c45d7c49ea75133e52ab22a8e9e13173938e36ff", "file_path": "requests/sessions.py", "start_line": 247, "end_line": 265, "snippet": " def rebuild_auth(self, prepared_request, response):\n \"\"\"When being redirected we may want to strip authentication f...
ghcr.io/patcheval-cve/patcheval-cve:cve-2018-18074
CVE-2024-52309
SFTPGo's EventManager allows administrators to configure command actions that run operating system commands when events occur. In the vulnerable behavior, an authenticated administrator who can access the WebAdmin or management API can configure arbitrary system commands as EventManager actions, even when those command...
{ "CWE-20": { "name": "Improper Input Validation", "description": "The product receives input or data, but it does\n not validate or incorrectly validates that the input has the\n properties that are required to process the data safely and\n correctly." } }
https://github.com/drakkan/sftpgo
[ "https://github.com/drakkan/sftpgo/commit/88b1850b5806eee81150873d4e565144b21021fb" ]
Go
[ { "id": "vul_go_78_1", "commit": "60558de72847f4af473028f11340c0a96f162da2", "file_path": "internal/common/common.go", "start_line": 179, "end_line": 252, "snippet": "func Initialize(c Configuration, isShared int) error {\n\tisShuttingDown.Store(false)\n\tutil.SetUmask(c.Umask)\n\tversion.Se...
[ { "id": "fix_go_78_1", "commit": "88b1850b5806eee81150873d4e565144b21021fb", "file_path": "internal/common/common.go", "start_line": 179, "end_line": 256, "snippet": "func Initialize(c Configuration, isShared int) error {\n\tisShuttingDown.Store(false)\n\tutil.SetUmask(c.Umask)\n\tversion.Se...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-52309
CVE-2024-56362
Navidrome is an open source web-based music collection server and streamer. Navidrome stores the JWT secret in plaintext in the navidrome.db database file under the property table. This practice introduces a security risk because anyone with access to the database file can retrieve the secret. This vulnerability is fix...
{ "CWE-312": { "name": "Cleartext Storage of Sensitive Information", "description": "The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere." } }
https://github.com/navidrome/navidrome
[ "https://github.com/navidrome/navidrome/commit/7f030b0859653593fd2ac0df69f4a313f9caf9ff" ]
Go
[ { "id": "vul_go_77_1", "commit": "177a1f853f1e1fe55f2b951873a12c634fa851ce", "file_path": "core/auth/auth.go", "start_line": 24, "end_line": 35, "snippet": "func Init(ds model.DataStore) {\n\tonce.Do(func() {\n\t\tlog.Info(\"Setting Session Timeout\", \"value\", conf.Server.SessionTimeout)\n...
[ { "id": "fix_go_77_1", "commit": "7f030b0859653593fd2ac0df69f4a313f9caf9ff", "file_path": "core/auth/auth.go", "start_line": 28, "end_line": 45, "snippet": "func Init(ds model.DataStore) {\n\tonce.Do(func() {\n\t\tctx := context.TODO()\n\t\tlog.Info(\"Setting Session Timeout\", \"value\", co...
ghcr.io/patcheval-cve/patcheval-cve:cve-2024-56362