caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Allsopp <dra-news@metastack.com>
To: Evgeny Roubinchtein <zhenya1007@gmail.com>,
	OCaml Mailing List <caml-list@inria.fr>
Subject: RE: [Caml-list] OCaml vs CVE-2017-9779
Date: Wed, 31 Jan 2018 14:18:02 +0000	[thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D90189A5A8CE@Remus.metastack.local> (raw)
In-Reply-To: <CAGYXaSbWu_6j5qkuEs=M-1ycs5-3SB6OhihC8Di6dwZLDbeOQA@mail.gmail.com>

Evgeny Roubinchtein wrote:
> Dear OCaml users and developers,
> My current employer ships an executable whose source code is written in OCaml,
> and is trying to understand the security implications and mitigating actions
> (if any) of CVE-2017-9779.   For the purposes of this discussion, only the
> native code compiler (ocamlopt) is relevant.
> 
> The questions I would hope to get answers to are:
>
> 1. Which versions of the OCaml compiler produce executables which are affected
> by the vulnerability/ies described in CVE-2017-9779?

All versions prior to 4.04.2 (that's "All" as in "since 1.00", not just "4.04.0 and 4.04.1").

> 2. What mitigation/s (if any) are suggested?

The issue only affects bytecode executables linked in custom runtime mode where there is a limited attack possible on CAML_DEBUG_SOCKET. Since you're using ocamlopt, you're fine.

Note that we updated the manual for 4.05.0 in GPR#1213 (https://github.com/ocaml/ocaml/pull/1213/files#diff-d79da36dce83d24f7fd0cadefe8c97a1R319) to note that custom runtime bytecode executables should never be setuid or setgid.

Sorry for the delay with the reply - it turns out several of us developers involved in the discussion had taken out non-disclosure agreements with our own memories. The CVE was reserved when it was thought that attack allowed arbitrary privilege escalation, but when we determined it wasn't that serious, we released with just CVE-2017-9772 (which affects ocamlc and ocamlopt but in 4.04.0 and 4.04.1 *only*). We've forgotten to update the CVE text itself, which we're now in the process of dealing with.

All best,


David (on behalf of the OCaml devs)

      parent reply	other threads:[~2018-01-31 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31  1:43 Evgeny Roubinchtein
2018-01-31  9:55 ` Daniel Bünzli
2018-01-31 10:23   ` David Allsopp
2018-01-31 14:18 ` David Allsopp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E51C5B015DBD1348A1D85763337FB6D90189A5A8CE@Remus.metastack.local \
    --to=dra-news@metastack.com \
    --cc=caml-list@inria.fr \
    --cc=zhenya1007@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).