OSEC-2017-01

See a problem?
Import Source
https://github.com/ocaml/security-advisories/blob/generated-osv/2017/OSEC-2017-01.json
JSON Data
https://api.osv.dev/v1/vulns/OSEC-2017-01
Aliases
Published
2017-06-23T15:19:47Z
Modified
2026-11-17T19:16:02Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Local privilege escalation issue with ocaml binaries
Details

Description

Insufficient sanitisation in the OCaml compiler versions 4.04.0 and 4.04.1 allows external code to be executed with raised privilege in binaries marked as setuid, by setting the CAML_CPLUGINS, CAML_NATIVE_CPLUGINS, or CAML_BYTE_CPLUGINS environment variable.

Database specific
{
    "cwe":  [
        "CWE-269"
    ],
    "human_link":  "https://github.com/ocaml/security-advisories/tree/main/advisories/2017/OSEC-2017-01.md",
    "osv":  "https://github.com/ocaml/security-advisories/tree/generated-osv/2017/OSEC-2017-01.json"
}
References
Credits
    • Eric Milliken - REPORTER
    • Damien Doligez - REMEDIATION_DEVELOPER
    • Xavier Leroy - REMEDIATION_REVIEWER

Affected packages

opam / ocaml

Package

Name
ocaml
Purl
pkg:opam/ocaml

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.04.0
Fixed
4.04.2

Affected versions

4.*
4.04.0
4.04.1

Ecosystem specific

{
    "opam_constraint":  "ocaml {>= \"4.04\" & < \"4.04.2\"}"
}

Database specific

source
"https://github.com/ocaml/security-advisories/blob/generated-osv/2017/OSEC-2017-01.json"

Git / github.com/ocaml/ocaml

Affected ranges

Type
GIT
Repo
https://github.com/ocaml/ocaml
Events

Database specific

source
"https://github.com/ocaml/security-advisories/blob/generated-osv/2017/OSEC-2017-01.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "199063709925722417503213062916581845151",
                "303742787415093095456581284957113243972",
                "277347726455273581667979709825996599761",
                "266302796264564387971372259159729085557",
                "43863945542319898635795312228220508644",
                "179618928536682946670285453344542813659",
                "228450500482318659694134166563187923516",
                "176978014620057391255403825329039197846"
            ],
            "threshold":  0.9
        },
        "id":  "OSEC-2017-01-046eaf6a",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ocaml/ocaml/commit/850021c200c7507f2a928a66fa1291ff4ae3a622",
        "target":  {
            "file":  "byterun/misc.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "289340513879839321580435784437414292305",
                "32661521033580847124706030203612266620",
                "72802806260221007497432857440181219507",
                "188564390659182527814133166084040923053",
                "43387285763793118661177940889164325227",
                "163053915132264424980354489320222946530",
                "246867832473410928747127322393073176850",
                "189696263275137302637244770851308646735"
            ],
            "threshold":  0.9
        },
        "id":  "OSEC-2017-01-1709796a",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ocaml/ocaml/commit/850021c200c7507f2a928a66fa1291ff4ae3a622",
        "target":  {
            "file":  "byterun/debugger.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "187287495618138934294807555322106085480",
                "138071309086481813696575864913190847813",
                "253171408921045945487798320361795940099",
                "113063297160326271394461440955051646588"
            ],
            "threshold":  0.9
        },
        "id":  "OSEC-2017-01-4acbb3bd",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ocaml/ocaml/commit/850021c200c7507f2a928a66fa1291ff4ae3a622",
        "target":  {
            "file":  "byterun/sys.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "161028962222034798170010569050530010109",
                "51579100523880747414859419856488283435",
                "132345746027940590431866510896559943188",
                "239868201689658575814909628358141366722"
            ],
            "threshold":  0.9
        },
        "id":  "OSEC-2017-01-4eb941fa",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ocaml/ocaml/commit/850021c200c7507f2a928a66fa1291ff4ae3a622",
        "target":  {
            "file":  "byterun/win32.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "68008910246215242555550691168577797582",
                "55378249704068061938199593105794009843",
                "209859611895392862923353933573335808623",
                "162458719514659691937056619700975787648",
                "241454883554555528773395034698005547864",
                "50455659762924092957107454385834163276",
                "215582688673109325459710437317743339287",
                "25566419224593796860835826233701653226"
            ],
            "threshold":  0.9
        },
        "id":  "OSEC-2017-01-ab775800",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ocaml/ocaml/commit/850021c200c7507f2a928a66fa1291ff4ae3a622",
        "target":  {
            "file":  "asmrun/spacetime.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "36846059247331964971950878105397036920",
                "122439531113116248472311034792674945377",
                "320770318714104118297250521724182700773",
                "69864603945006909061040045623476295339",
                "93784605395778414954971869443064678404",
                "119308129414764292891232111065218680147",
                "28523142293671841286557354250356489329",
                "42047320316715810557534055747887339173",
                "146976061107608012457818096671154499890"
            ],
            "threshold":  0.9
        },
        "id":  "OSEC-2017-01-e2dcb26f",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ocaml/ocaml/commit/850021c200c7507f2a928a66fa1291ff4ae3a622",
        "target":  {
            "file":  "byterun/dynlink.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "204105175462124213721560539055024545070",
                "188268866131659674853359894805725596206",
                "141568604999864407928376545072454539800",
                "214747637668777170226239435329885237297",
                "91532013350651591755409473477011620710",
                "158662229340439515446838474220231306530",
                "267138184832251862836143478575351386287",
                "75915384107666831216509375183135728009",
                "93789921408589979895946087070516117530"
            ],
            "threshold":  0.9
        },
        "id":  "OSEC-2017-01-e53abfda",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ocaml/ocaml/commit/850021c200c7507f2a928a66fa1291ff4ae3a622",
        "target":  {
            "file":  "byterun/startup_aux.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "193759381574989966210060087775069701215",
                "31105945191421348874358675874750658377",
                "60374621728237118994153495058348319474",
                "105857307265597300574845601019657203614",
                "8804527820490142009669649140529136160",
                "112729015664437330507832082921251243599",
                "166501393911408200898437025203715818026",
                "54918544971582647411348366618613398649"
            ],
            "threshold":  0.9
        },
        "id":  "OSEC-2017-01-f16c2996",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ocaml/ocaml/commit/850021c200c7507f2a928a66fa1291ff4ae3a622",
        "target":  {
            "file":  "byterun/startup.c"
        }
    }
]
vanir_signatures_modified
"2026-11-17T19:16:02Z"