Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-5627

An issue was discovered in Artifex Software, Inc. MuJS before 4006739a28367c708dea19aeb19b8a1a9326ce08. The jsR_setproperty function in jsrun.c lacks a check for a negative array length. This leads to an integer overflow in the js_pushstring function in jsrun.c when parsing a specially crafted JS file.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-5627
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 09:00 UTC · Revision 1

Source evidence

CVE-2017-5627

core-osv · Original source

Published 30 Jan 2017, 04:59 UTC

An issue was discovered in Artifex Software, Inc. MuJS before 4006739a28367c708dea19aeb19b8a1a9326ce08. The jsR_setproperty function in jsrun.c lacks a check for a negative array length. This leads to an integer overflow in the js_pushstring function in jsrun.c when parsing a specially crafted JS file.

osv:CVE-2017-5627
Complete source record
{
  "id": "49a3123fbd6aa54179a23d0038f3e4ae83653d4ac225e60f67c5f56dea4fc295",
  "url": "https://osv.dev/vulnerability/CVE-2017-5627",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-5627",
    "summary": "An issue was discovered in Artifex Software, Inc. MuJS before 4006739a28367c708dea19aeb19b8a1a9326ce08. The jsR_setproperty function in jsrun.c lacks a check for a negative array length. This leads to an integer overflow in the js_pushstring function in jsrun.c when parsing a specially crafted JS file.",
    "evidence": "osv:CVE-2017-5627",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-5627",
      "aliases": [
        "CVE-2017-5627"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ccxvii/mujs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4006739a28367c708dea19aeb19b8a1a9326ce08"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-5627.json",
            "vanir_signatures": [
              {
                "id": "CVE-2017-5627-036d8818",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "98204507827475878758503411203823921052",
                    "219837275049235295249417233581478269132",
                    "221034644089316709210878260085049884179",
                    "12574604242465483557562251697909691732"
                  ]
                },
                "source": "https://github.com/ccxvii/mujs/commit/4006739a28367c708dea19aeb19b8a1a9326ce08",
                "target": {
                  "file": "jsrun.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-5627-175b8eb6",
                "digest": {
                  "length": 1769,
                  "function_hash": "39265153859424327921086893734680931786"
                },
                "source": "https://github.com/ccxvii/mujs/commit/4006739a28367c708dea19aeb19b8a1a9326ce08",
                "target": {
                  "file": "jsrun.c",
                  "function": "jsR_setproperty"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-08T07:07:46Z"
          }
        }
      ],
      "modified": "2026-10-08T07:07:46.113119322Z",
      "provider": "osv",
      "references": [
        "https://bugs.ghostscript.com/show_bug.cgi?id=697497"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:artifex:mujs:*:*:*:*:*:*:*:*"
            ],
            "source": "CPE_RANGE",
            "vendor_product": "artifex:mujs",
            "extracted_events": [
              {
                "fixed": "2017-01-24"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2017-5627",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 98627,
  "published_at": "2017-01-30T04:59:00.673+00:00"
}