UBUNTU-CVE-2019-16776

See a problem?
Source
https://ubuntu.com/security/notices/UBUNTU-CVE-2019-16776
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16776.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2019-16776
Related
Published
2019-12-13T01:15:00Z
Modified
2019-12-13T01:15:00Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
[none]
Details

Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It fails to prevent access to folders outside of the intended node_modules folder through the bin field. A properly constructed entry in the package.json bin field would allow a package publisher to modify and/or gain access to arbitrary files on a user's system when the package is installed. This behavior is still possible through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.

References

Affected packages

Ubuntu:Pro:14.04:LTS / npm

Package

Name
npm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2.18~dfsg-3
1.3.10~dfsg-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / npm

Package

Name
npm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.4.21+ds-2

3.*

3.5.2-0ubuntu4
3.5.2-0ubuntu4.1.16.04.1~esm1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / npm

Package

Name
npm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.5.2-0ubuntu4
3.5.2-0ubuntu4.1.18.04.1~esm1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / npm

Package

Name
npm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

5.*

5.8.0+ds6-4

6.*

6.14.4+ds-1ubuntu2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / npm

Package

Name
npm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

7.*

7.5.2+ds-2
7.24.2+ds-1
7.24.2+ds-2

8.*

8.3.0~ds-1
8.3.0~ds-2
8.3.2~ds-1
8.5.0~ds-1
8.5.1~ds-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / npm

Package

Name
npm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

9.*

9.2.0~ds1-1
9.2.0~ds1-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}