GHSA-9h6h-9g78-86f7: Github.com/fkie cad/yapscan Path Traversal Vulnerability

HIGH
CVSS 7.5
CWE-73 CWE-117 CWE-22
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-9h6h-9g78-86f7
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-73: External Control of File Name or Path
Affected Product Github.com/fkie cad/yapscan
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

github.com/fkie-cad/yapscan fixed: 0.19.1
Upgrade github.com/fkie-cad/yapscan to 0.19.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/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

### Impact If 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. ### Patches Vulnerable versions: - v0.18.0 - v0.19.0 (unreleased) This problem is patched in version v0.19.1 ### Workarounds Update to the newer version is highly encouraged! Measures to reduce the risk of this include authenticating clients (see `--client-ca` flag) and containerization of the yapscan server. ### References The tracking issue is #35. There you can find the commits, fixing the issue.

GHSA-9h6h-9g78-86f7 Affected Github.com/fkie cad/yapscan Versions

1 component(s)
Fixed Versions:
0.19.1
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?
GHSA-9h6h-9g78-86f7 is a security vulnerability in Github.com/fkie cad/yapscan involving Yapscan's report receiver server vulnerable to path traversal and log injection under CWE-73: External Control of File Name or Path.
Which Github.com/fkie cad/yapscan versions are affected?
Affected versions include releases prior to 0.19.1 across affected packages: github.com/fkie-cad/yapscan.
What version fixes GHSA-9h6h-9g78-86f7?
Upgrading to 0.19.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/fkie-cad/yapscan affected?
Yes, github.com/fkie-cad/yapscan is affected in releases prior to 0.19.1. Upgrade your dependency to 0.19.1 or later.
What is the CVSS score of GHSA-9h6h-9g78-86f7?
GHSA-9h6h-9g78-86f7 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-9h6h-9g78-86f7?
GHSA-9h6h-9g78-86f7 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check Go dependencies for GHSA-9h6h-9g78-86f7?
Run the dependency tree command: 'inspect dependencies for github.com/fkie-cad/yapscan'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-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
  }
}