CVE-2017-18367: Github.com/seccomp/libseccomp golang Improper Input Validation Vulnerability
HIGHCVE-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
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).
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.
Upgrade github.com/seccomp/libseccomp-golang to 0.9.1
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
CVE-2017-18367 Affected Github.com/seccomp/libseccomp golang Versions
1 component(s)| 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?
Which Github.com/seccomp/libseccomp golang versions are affected?
What version fixes CVE-2017-18367?
Is github.com/seccomp/libseccomp-golang affected?
What is the CVSS score of CVE-2017-18367?
What CWE is associated with CVE-2017-18367?
How can I check Go dependencies for CVE-2017-18367?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}