mytrile/node-libnotify · Security
Potential Command Injection in libnotify
- GHSA ID
- GHSA-6898-wx94-8jq8
- CVE ID
- CVE-2013-7381
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
Versions 1.0.3 and earlier of libnotify are affected by a shell command injection vulnerability. This may result in execution of arbitrary shell commands, if user input is passed into libnotify.notify.
Untrusted input passed in the call to libnotify.notify could result in execution of shell commands. Callers may be unaware of this.
Example
var libnotify = require('libnotify')
libnotify.notify('UNTRUSTED INPUT', { title: \"\" }, function () {
console.log(arguments);
})
Special thanks to Neal Poole for submitting the pull request to fix this issue.
Recommendation
Update to version 1.0.4 or greater
CWEs
- CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-7381 ↗
- https://github.com/mytrile/node-libnotify/commit/dfe7801d73a0dda10663a0ff3d0ec8b4d5f0d448 ↗
- https://www.npmjs.com/advisories/20 ↗
- http://www.openwall.com/lists/oss-security/2014/05/13/1 ↗
- http://www.openwall.com/lists/oss-security/2014/05/15/2 ↗
- https://github.com/advisories/GHSA-6898-wx94-8jq8 ↗