CVE-2019-19724: Github.com/sylabs/singularity Singularity Insecure Permissions Vulnerability

HIGH
Advisory Identifier: GHSA-mj73-5x75-9phh
CVSS 7.5
CWE-276
Published
Advisory Summary

CVE-2019-19724 is a HIGH (CVSS 7.5) singularity insecure permissions vulnerability (CWE-276: Incorrect Default Permissions) affecting Github.com/sylabs/singularity libraries in the Go ecosystem. The issue involves singularity insecure permissions. Remediation is available by upgrading affected packages to version 3.5.2.

CVE-2019-19724 at a Glance

CVE Identifier CVE-2019-19724
GHSA Identifier GHSA-mj73-5x75-9phh
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-276: Incorrect Default Permissions
Affected Product Github.com/sylabs/singularity
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:H/I:N/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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-19724

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.

github.com/sylabs/singularity fixed: 3.5.2
Upgrade github.com/sylabs/singularity to 3.5.2
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/sylabs/singularity

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-19724, 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.5.2), 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-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. 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

Insecure permissions (777) are set on `$HOME/.singularity` when it is newly created by Singularity (version from 3.3.0 to 3.5.1), which could lead to an information leak, and malicious redirection of operations performed against Sylabs cloud services.

CVE-2019-19724 Affected Github.com/sylabs/singularity Versions

1 component(s)
Fixed Versions:
3.5.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/sylabs/singularity
Go
≥ 3.3.0
< 3.5.2
3.5.2

References

Frequently Asked Questions

What is CVE-2019-19724?
CVE-2019-19724 is a security vulnerability in Github.com/sylabs/singularity involving Singularity insecure permissions under CWE-276: Incorrect Default Permissions.
Which Github.com/sylabs/singularity versions are affected?
Affected versions include releases prior to 3.5.2 across affected packages: github.com/sylabs/singularity.
What version fixes CVE-2019-19724?
Upgrading to 3.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/sylabs/singularity affected?
Yes, github.com/sylabs/singularity is affected in releases prior to 3.5.2. Upgrade your dependency to 3.5.2 or later.
What is the CVSS score of CVE-2019-19724?
CVE-2019-19724 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:H/I:N/A:N.
What CWE is associated with CVE-2019-19724?
CVE-2019-19724 is classified under CWE-276: Incorrect Default Permissions (During installation, installed file permissions are set to allow anyone to modify those files.).
How can I check Go dependencies for CVE-2019-19724?
Run the dependency tree command: 'inspect dependencies for github.com/sylabs/singularity'. 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-mj73-5x75-9phh",
  "modified" : "2023-09-26T20:03:52Z",
  "published" : "2022-05-24T17:04:02Z",
  "aliases" : [ "CVE-2019-19724" ],
  "summary" : "Singularity insecure permissions",
  "details" : "Insecure permissions (777) are set on `$HOME/.singularity` when it is newly created by Singularity (version from 3.3.0 to 3.5.1), which could lead to an information leak, and malicious redirection of operations performed against Sylabs cloud services.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/sylabs/singularity"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.5.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.5.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-19724"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sylabs/singularity/commit/2cda4981812c29f0fb11d3ea6aaf6139f665a631"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sylabs/singularity"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sylabs/singularity/releases/tag/v3.5.2"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00025.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00059.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-276" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-18T21:02:11Z",
    "nvd_published_at" : "2019-12-18T21:15:00Z"
  }
}