{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.0"
                  },
                  {
                    "last_affected": "1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.1"
                  },
                  {
                    "last_affected": "1.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.2"
                  },
                  {
                    "last_affected": "1.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.3"
                  },
                  {
                    "last_affected": "1.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.4"
                  },
                  {
                    "last_affected": "1.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.5"
                  },
                  {
                    "last_affected": "1.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.7"
                  },
                  {
                    "last_affected": "1.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.8"
                  },
                  {
                    "last_affected": "1.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.9"
                  },
                  {
                    "last_affected": "1.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.10"
                  },
                  {
                    "last_affected": "1.10"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "1.11"
                  },
                  {
                    "last_affected": "1.11"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "fixed": "fdfe82c6a72420dca7f8e63492a2373399f1b464"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.12alpha",
                "range": [
                  {
                    "fixed": "6bb29c71d689e30a6f9c2ab9a84db8bb3877830b"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "6337365ec9f4645a561c7bd429db2f3875f2ee7d"
            },
            {
              "last_affected": "305907723a4e7ab2018e58040059ffb5e77db837"
            },
            {
              "fixed": "fdfe82c6a72420dca7f8e63492a2373399f1b464"
            },
            {
              "fixed": "6bb29c71d689e30a6f9c2ab9a84db8bb3877830b"
            }
          ],
          "repo": "https://github.com/kyz/libmspack",
          "type": "GIT"
        }
      ],
      "versions": [
        "1.0",
        "1.1",
        "1.10",
        "1.11",
        "1.2",
        "1.3",
        "1.4",
        "1.5",
        "1.7",
        "1.8",
        "1.9"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-119",
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138216.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "1.6"
              },
              {
                "last_affected": "1.6"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
          }
        ]
      }
    ]
  },
  "details": "A flaw has been found in kyz libmspack up to 1.11. This affects the function print_dir of the file test/chminfo.c of the component CHM File Handler. Executing a manipulation can lead to out-of-bounds read. The attack may be launched remotely. The exploit has been published and may be used. Upgrading to version 0.12alpha is able to mitigate this issue. This patch is called fdfe82c6a72420dca7f8e63492a2373399f1b464. The affected component should be upgraded.",
  "id": "CVE-2026-138216",
  "modified": "2026-11-29T11:45:44.509341688Z",
  "published": "2026-11-29T10:30:21.979Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138216.json"
    },
    {
      "type": "WEB",
      "url": "https://github.com/kyz/libmspack/"
    },
    {
      "type": "FIX",
      "url": "https://github.com/kyz/libmspack/commit/fdfe82c6a72420dca7f8e63492a2373399f1b464"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/kyz/libmspack/issues/61"
    },
    {
      "type": "FIX",
      "url": "https://github.com/kyz/libmspack/releases/tag/v0.12alpha"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/user-attachments/files/34297048/poc.zip"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138216"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/cve/CVE-2026-138216"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/1071169"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/445085"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/445085/cti"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P",
      "type": "CVSS_V4"
    }
  ],
  "summary": "kyz libmspack CHM File chminfo.c print_dir out-of-bounds"
}