{"id":"UBUNTU-CVE-2025-14935","details":"NSF Unidata NetCDF-C Dimension Name Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of NSF Unidata NetCDF-C. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of dimension names. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-27168.","modified":"2026-05-20T16:20:23.524267903Z","published":"2025-12-23T21:15:00Z","upstream":["CVE-2025-14935"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-14935"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-14935"},{"type":"REPORT","url":"https://www.zerodayinitiative.com/advisories/ZDI-25-1154/"}],"affected":[{"package":{"name":"netcdf","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/netcdf?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.1.3-6build1","1:4.1.3-7","1:4.1.3-7ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"libcf0","binary_version":"1:4.1.3-7ubuntu2"},{"binary_name":"libnetcdfc++4","binary_version":"1:4.1.3-7ubuntu2"},{"binary_name":"libnetcdfc7","binary_version":"1:4.1.3-7ubuntu2"},{"binary_name":"libnetcdff5","binary_version":"1:4.1.3-7ubuntu2"},{"binary_name":"netcdf-bin","binary_version":"1:4.1.3-7ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/netcdf?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.4.0~rc2-1build1","1:4.4.0~rc3-1","1:4.4.0-1","1:4.4.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetcdf11","binary_version":"1:4.4.0-2"},{"binary_name":"netcdf-bin","binary_version":"1:4.4.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/netcdf?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.4.1.1-2ubuntu1","1:4.5.0-1","1:4.5.0-2","1:4.6.0-2","1:4.6.0-2build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.6.0-2build1","binary_name":"libnetcdf13"},{"binary_name":"netcdf-bin","binary_version":"1:4.6.0-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/netcdf?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.6.2-1build1","1:4.7.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetcdf15","binary_version":"1:4.7.3-1"},{"binary_name":"netcdf-bin","binary_version":"1:4.7.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf-parallel","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/netcdf-parallel?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.6.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetcdf-mpi-13","binary_version":"1:4.6.2-1"},{"binary_version":"1:4.6.2-1","binary_name":"libnetcdf-pnetcdf-13"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/netcdf?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.7.4-1build1","1:4.8.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetcdf19","binary_version":"1:4.8.1-1"},{"binary_name":"netcdf-bin","binary_version":"1:4.8.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf-parallel","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/netcdf-parallel?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.7.4-1","1:4.8.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetcdf-mpi-19","binary_version":"1:4.8.1-2"},{"binary_name":"libnetcdf-pnetcdf-19","binary_version":"1:4.8.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/netcdf?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.9.2-2ubuntu1","1:4.9.2-3ubuntu1","1:4.9.2-5ubuntu3","1:4.9.2-5ubuntu4"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetcdf19t64","binary_version":"1:4.9.2-5ubuntu4"},{"binary_name":"netcdf-bin","binary_version":"1:4.9.2-5ubuntu4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf-parallel","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/netcdf-parallel?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.9.0-1ubuntu1","1:4.9.0-1ubuntu3","1:4.9.0-1ubuntu4"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.9.0-1ubuntu4","binary_name":"libnetcdf-mpi-19"},{"binary_version":"1:4.9.0-1ubuntu4","binary_name":"libnetcdf-pnetcdf-19"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/netcdf?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.9.3-1","1:4.9.3-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetcdf22","binary_version":"1:4.9.3-1build1"},{"binary_name":"netcdf-bin","binary_version":"1:4.9.3-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf-parallel","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/netcdf-parallel?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.9.0-6build1","1:4.9.3-2","1:4.9.3-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetcdf-mpi-22","binary_version":"1:4.9.3-2build1"},{"binary_name":"libnetcdf-pnetcdf-22","binary_version":"1:4.9.3-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/netcdf?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.9.3-1build1","1:4.9.3-1build2"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.9.3-1build2","binary_name":"libnetcdf22"},{"binary_name":"netcdf-bin","binary_version":"1:4.9.3-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}},{"package":{"name":"netcdf-parallel","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/netcdf-parallel?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:4.9.3-2build1","1:4.9.3-2build2"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.9.3-2build2","binary_name":"libnetcdf-mpi-22"},{"binary_name":"libnetcdf-pnetcdf-22","binary_version":"1:4.9.3-2build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-14935.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}