{"id":"UBUNTU-CVE-2025-48172","details":"CHMLib through 2bef8d0, as used in SumatraPDF and other products, has a chm_lib.c _chm_decompress_block integer overflow. There is a resultant heap-based buffer overflow in _chm_fetch_bytes.","modified":"2026-05-20T16:23:31.207077728Z","published":"2025-07-04T13:15:00Z","upstream":["CVE-2025-48172"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-48172"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-48172"},{"type":"REPORT","url":"https://drive.google.com/file/d/1wq51px42eoJz2VQ1Qu9ObPVQVom9T9H_/view?usp=sharing"},{"type":"REPORT","url":"https://drive.google.com/file/d/1XpulFyCGlq7Szzg5RsH-eRwZ6OyuSozl/view?usp=sharing"},{"type":"REPORT","url":"https://github.com/jedwing/CHMLib/blob/2bef8d063ec7d88a8de6fd9f0513ea42ac0fa21f/src/chm_lib.c#L1386"},{"type":"REPORT","url":"https://github.com/sumatrapdfreader/sumatrapdf/commit/08179946a745cf1605e4b9670942ec1a6e1f4c5d"}],"affected":[{"package":{"name":"chmlib","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/chmlib?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:0.40a-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libchm-bin","binary_version":"2:0.40a-3"},{"binary_name":"libchm1","binary_version":"2:0.40a-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-48172.json"}},{"package":{"name":"chmlib","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/chmlib?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:0.40a-3","2:0.40a-4"],"ecosystem_specific":{"binaries":[{"binary_version":"2:0.40a-4","binary_name":"libchm-bin"},{"binary_version":"2:0.40a-4","binary_name":"libchm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-48172.json"}},{"package":{"name":"chmlib","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/chmlib?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:0.40a-5"],"ecosystem_specific":{"binaries":[{"binary_name":"libchm-bin","binary_version":"2:0.40a-5"},{"binary_version":"2:0.40a-5","binary_name":"libchm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-48172.json"}},{"package":{"name":"chmlib","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/chmlib?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:0.40a-7"],"ecosystem_specific":{"binaries":[{"binary_name":"libchm-bin","binary_version":"2:0.40a-7"},{"binary_name":"libchm1","binary_version":"2:0.40a-7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-48172.json"}},{"package":{"name":"chmlib","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/chmlib?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:0.40a-8"],"ecosystem_specific":{"binaries":[{"binary_version":"2:0.40a-8","binary_name":"libchm-bin"},{"binary_name":"libchm1","binary_version":"2:0.40a-8"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-48172.json"}},{"package":{"name":"chmlib","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/chmlib?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:0.40a-8.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libchm-bin","binary_version":"2:0.40a-8.1"},{"binary_version":"2:0.40a-8.1","binary_name":"libchm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-48172.json"}},{"package":{"name":"chmlib","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/chmlib?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:0.40a-8.1","2:0.40a-9"],"ecosystem_specific":{"binaries":[{"binary_version":"2:0.40a-9","binary_name":"libchm-bin"},{"binary_name":"libchm1","binary_version":"2:0.40a-9"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-48172.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L"},{"type":"Ubuntu","score":"medium"}]}