CVE-2017-18367: Github.com/seccomp/libseccomp golang Improper Input Validation Vulnerability

HIGH
Advisory Identifier: GHSA-58v3-j75h-xr49
CVSS 4.8
CWE-284
Published
Advisory Summary

CVE-2017-18367 is a HIGH (CVSS 4.8) improper input validation vulnerability (CWE-284: Improper Access Control) affecting Github.com/seccomp/libseccomp golang libraries in the Go ecosystem. The issue involves improper input validation in libseccomp-golang. Remediation is available by upgrading affected packages to version 0.9.1.

CVE-2017-18367 at a Glance

CVE Identifier CVE-2017-18367
GHSA Identifier GHSA-58v3-j75h-xr49
Severity HIGH
CVSS v3.1 Base Score 4.8
CWE Classification CWE-284: Improper Access Control
Affected Product Github.com/seccomp/libseccomp golang
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2017-18367

To remediate this vulnerability, upgrade all affected Github.com/seccomp/libseccomp golang 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/seccomp/libseccomp-golang fixed: 0.9.1
Upgrade github.com/seccomp/libseccomp-golang to 0.9.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/seccomp/libseccomp-golang

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-18367, inspect your project dependencies for Github.com/seccomp/libseccomp golang:

inspect dependencies for github.com/seccomp/libseccomp-golang

Analyze the terminal output to locate any version of Github.com/seccomp/libseccomp golang in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Github.com/seccomp/libseccomp golang, 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

libseccomp-golang 0.9.0 and earlier incorrectly generates BPFs that OR multiple arguments rather than ANDing them. A process running under a restrictive seccomp filter that specified multiple syscall arguments could bypass intended access restrictions by specifying a single matching argument.

CVE-2017-18367 Affected Github.com/seccomp/libseccomp golang Versions

1 component(s)
Fixed Versions:
0.9.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/seccomp/libseccomp-golang
Go
< 0.9.1
0.9.1

References

Frequently Asked Questions

What is CVE-2017-18367?
CVE-2017-18367 is a security vulnerability in Github.com/seccomp/libseccomp golang involving Improper Input Validation in libseccomp-golang under CWE-284: Improper Access Control.
Which Github.com/seccomp/libseccomp golang versions are affected?
Affected versions include releases prior to 0.9.1 across affected packages: github.com/seccomp/libseccomp-golang.
What version fixes CVE-2017-18367?
Upgrading to 0.9.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/seccomp/libseccomp-golang affected?
Yes, github.com/seccomp/libseccomp-golang is affected in releases prior to 0.9.1. Upgrade your dependency to 0.9.1 or later.
What is the CVSS score of CVE-2017-18367?
CVE-2017-18367 has a CVSS v3.1 base score of 4.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2017-18367?
CVE-2017-18367 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Go dependencies for CVE-2017-18367?
Run the dependency tree command: 'inspect dependencies for github.com/seccomp/libseccomp-golang'. 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-58v3-j75h-xr49",
  "modified" : "2021-05-17T15:26:35Z",
  "published" : "2021-05-18T15:44:30Z",
  "aliases" : [ "CVE-2017-18367" ],
  "summary" : "Improper Input Validation in libseccomp-golang",
  "details" : "libseccomp-golang 0.9.0 and earlier incorrectly generates BPFs that OR multiple arguments rather than ANDing them. A process running under a restrictive seccomp filter that specified multiple syscall arguments could bypass intended access restrictions by specifying a single matching argument.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/seccomp/libseccomp-golang"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-18367"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/seccomp/libseccomp-golang/issues/22"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/seccomp/libseccomp-golang/commit/06e7a29f36a34b8cf419aeb87b979ee508e58f9e"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:4087"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:4090"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2020/08/msg00016.html"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/4574-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2019/04/25/6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-17T15:26:35Z",
    "nvd_published_at" : null
  }
}