CVE-2019-11328: Github.com/sylabs/singularity Remote Code Execution Vulnerability
HIGHCVE-2019-11328 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Github.com/sylabs/singularity libraries in the Go ecosystem. The issue involves incorrect permission assignment for critical resource in singularity. Remediation is available by upgrading affected packages to version 3.2.0.
CVE-2019-11328 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-11328
To remediate this vulnerability, upgrade all affected Github.com/sylabs/singularity 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/sylabs/singularity to 3.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/sylabs/singularity
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-11328, inspect your project dependencies for Github.com/sylabs/singularity:
inspect dependencies for github.com/sylabs/singularity
Analyze the terminal output to locate any version of Github.com/sylabs/singularity in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.0), 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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Github.com/sylabs/singularity, 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-2019-11328 Affected Github.com/sylabs/singularity Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/sylabs/singularity
|
Go |
≥ 3.1.0
< 3.2.0
|
3.2.0
|
References
Frequently Asked Questions
What is CVE-2019-11328?
Which Github.com/sylabs/singularity versions are affected?
What version fixes CVE-2019-11328?
Is github.com/sylabs/singularity affected?
What is the CVSS score of CVE-2019-11328?
What CWE is associated with CVE-2019-11328?
How can I check Go dependencies for CVE-2019-11328?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-557g-r22w-9wvx",
"modified" : "2023-02-28T16:47:09Z",
"published" : "2021-12-20T18:25:33Z",
"aliases" : [ "CVE-2019-11328" ],
"summary" : "Incorrect Permission Assignment for Critical Resource in Singularity",
"details" : "An issue was discovered in Singularity 3.1.0 to 3.2.0-rc2, a malicious user with local/network access to the host system (e.g. ssh) could exploit this vulnerability due to insecure permissions allowing a user to edit files within `/run/singularity/instances/sing/<user>/<instance>`. The manipulation of those files can change the behavior of the starter-suid program when instances are joined resulting in potential privilege escalation on the host.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/sylabs/singularity"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11328"
}, {
"type" : "WEB",
"url" : "https://github.com/sylabs/singularity/commit/618c9d56802399adb329c23ea2b70598eaff4a31"
}, {
"type" : "WEB",
"url" : "https://github.com/sylabs/singularity/releases/tag/v3.2.0"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5O3TPL5OOTIZEI4H6IQBCCISBARJ6WL3"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LIHV7DSEVTB5SUPEZ2UXGS3Q6WMEQSO2"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LNU5BUHFOTYUZVHFUSX2VG4S3RCPUEMA"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00028.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00059.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2019/05/16/1"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/108360"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269", "CWE-732" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-17T15:50:05Z",
"nvd_published_at" : "2019-05-14T21:29:00Z"
}
}