{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:ufrisk:memprocfs:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.17"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8304ca9ab9f87fff2986fe1fa2fbd0dbb4b83cd9"
            },
            {
              "fixed": "df80e6e83641f5004025ce661e6dd8139028d7b5"
            }
          ],
          "repo": "https://github.com/ufrisk/memprocfs",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-427"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40031.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "last_affected": "5.16.12"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "MemProcFS before 5.17 contains multiple unsafe library-loading patterns that enable DLL and shared-library hijacking across six attack surfaces, including bare-name LoadLibraryU and dlopen calls without path qualification for vmmpyc, libMSCompression, and plugin DLLs. An attacker who places a malicious DLL or shared library in the working directory or manipulates LD_LIBRARY_PATH can achieve arbitrary code execution when MemProcFS loads.",
  "id": "CVE-2026-40031",
  "modified": "2026-07-08T05:38:08.385419410Z",
  "published": "2026-04-08T21:35:26.293Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/ufrisk/MemProcFS/releases/tag/v5.17"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40031.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://mobasi.ai/sentinel"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40031"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/memprocfs-dll-shared-library-hijacking"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ufrisk/MemProcFS/commit/df80e6e83641f5004025ce661e6dd8139028d7b5"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "MemProcFS \u003c 5.17 DLL/Shared Library Hijacking"
}