GHSA-9h6h-9g78-86f7: Github.com/fkie cad/yapscan Path Traversal Vulnerability
HIGHGHSA-9h6h-9g78-86f7 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-73: External Control of File Name or Path) affecting Github.com/fkie cad/yapscan libraries in the Go ecosystem. The issue involves yapscan's report receiver server vulnerable to path traversal and log injection. Remediation is available by upgrading affected packages to version 0.19.1.
GHSA-9h6h-9g78-86f7 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix GHSA-9h6h-9g78-86f7
To remediate this vulnerability, upgrade all affected Github.com/fkie cad/yapscan dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/fkie-cad/yapscan to 0.19.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/fkie-cad/yapscan
How to Check if You Are Affected
To determine whether your application is affected by GHSA-9h6h-9g78-86f7, inspect your project dependencies for Github.com/fkie cad/yapscan:
inspect dependencies for github.com/fkie-cad/yapscan
Analyze the terminal output to locate any version of Github.com/fkie cad/yapscan in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.19.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. In Github.com/fkie cad/yapscan, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-9h6h-9g78-86f7 Affected Github.com/fkie cad/yapscan Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/fkie-cad/yapscan
|
Go |
≥ 0.18.0
< 0.19.1
|
0.19.1
|
References
Frequently Asked Questions
What is GHSA-9h6h-9g78-86f7?
Which Github.com/fkie cad/yapscan versions are affected?
What version fixes GHSA-9h6h-9g78-86f7?
Is github.com/fkie-cad/yapscan affected?
What is the CVSS score of GHSA-9h6h-9g78-86f7?
What CWE is associated with GHSA-9h6h-9g78-86f7?
How can I check Go dependencies for GHSA-9h6h-9g78-86f7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9h6h-9g78-86f7",
"modified" : "2022-12-29T01:50:20Z",
"published" : "2022-12-29T01:50:20Z",
"aliases" : [ ],
"summary" : "Yapscan's report receiver server vulnerable to path traversal and log injection",
"details" : "### Impact\n\nIf you make use of the **report receiver server** (experimental), a client may be able to forge requests such that arbitrary files on the host can be overwritten (subject to permissions of the yapscan server), leading to loss of data. This is particularly problematic if you do not authenticate clients and/or run the server with elevated permissions.\n\n### Patches\n\nVulnerable versions:\n\n- v0.18.0\n- v0.19.0 (unreleased)\n\nThis problem is patched in version v0.19.1\n\n### Workarounds\n\nUpdate to the newer version is highly encouraged!\n\nMeasures to reduce the risk of this include authenticating clients (see `--client-ca` flag) and containerization of the yapscan server.\n\n### References\n\nThe tracking issue is #35. There you can find the commits, fixing the issue.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/fkie-cad/yapscan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.18.0"
}, {
"fixed" : "0.19.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fkie-cad/yapscan/security/advisories/GHSA-9h6h-9g78-86f7"
}, {
"type" : "WEB",
"url" : "https://github.com/fkie-cad/yapscan/issues/35"
}, {
"type" : "WEB",
"url" : "https://github.com/fkie-cad/yapscan/commit/a75a20b50be673b96b1d42187b97f8cfe60728df"
}, {
"type" : "WEB",
"url" : "https://github.com/fkie-cad/yapscan/commit/fef9a33ceb66f6b929839f7eaf393b629681bc5d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fkie-cad/yapscan"
}, {
"type" : "WEB",
"url" : "https://github.com/fkie-cad/yapscan/releases/tag/v0.19.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-117", "CWE-22", "CWE-73" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-29T01:50:20Z",
"nvd_published_at" : null
}
}