Security Advisories
NRPE/nagios metacharacter filtering omission
- CVE-ID CVE-2013-1362
- CVSS Base Score 7.5
- CVSS2 Vector AV:N/AC:L/Au:N/C:P/I:P/A:P/E:U/RL:OF/RC:UC/CDP:N/TD:N/CR:L/IR:L/AR:L
- Vendor Nagios
- Affected Products NRPE (Configured with --enable-command-args).
- Affected Platforms All
- Affected versions < 2.14
- Remote Exploitable Yes
- Local Exploitable No
- Patch Status Vendor released a patch (See Solution)
Summary
Description
nrpe 2.13 has, in src/nrpc.c, line 52:
#define NASTY_METACHARS "|`&><'\"\\[]{};"
When NRPE is compiled with --enable-command-args (the default for most
Linux distributions), the above code allows the passing of $(
Solution
Upgrade to NRPE 2.14 or later, available at http://sourceforge.net/projects/nagios/files/nrpe-2.x/