GLSA-201710-07 : OCaml: Privilege escalation

critical Nessus Plugin ID 103725

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201710-07 (OCaml: Privilege escalation)

A bad sanitization of environment variables: CAML_CPLUGINS, CAML_NATIVE_CPLUGINS and CAML_BYTE_CPLUGINS in the OCaml compiler allows the execution of raised privileges via external code.
Impact :

A local attacker, by using specially crafted environment variables, could possibly escalate privileges to the root group.
Workaround :

There is no known workaround at this time.

Solution

All OCaml users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-lang/ocaml-4.04.2'

See Also

https://security.gentoo.org/glsa/201710-07

Plugin Details

Severity: Critical

ID: 103725

File Name: gentoo_GLSA-201710-07.nasl

Version: 3.3

Type: local

Published: 10/9/2017

Updated: 1/11/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Critical

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:ocaml, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 10/8/2017

Reference Information

CVE: CVE-2017-9772

GLSA: 201710-07