Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-10540

An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.c does not validate the sizes of unknown chunks before attempting memory allocation, related to a lack of integer-overflow protection within a bytes_to_copy calculation and subsequent malloc call, leading to insufficient memory allocation.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-10540
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:26 UTC · Revision 1

Source evidence

CVE-2018-10540

core-osv · Original source

Published 29 Apr 2018, 15:29 UTC

An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.c does not validate the sizes of unknown chunks before attempting memory allocation, related to a lack of integer-overflow protection within a bytes_to_copy calculation and subsequent malloc call, leading to insufficient memory allocation.

osv:CVE-2018-10540
Complete source record
{
  "id": "1ffbf2451029d72669b83942635104cf5e6b4acdc8b1c6e91fa8bbc99636fd0a",
  "url": "https://osv.dev/vulnerability/CVE-2018-10540",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-10540",
    "summary": "An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.c does not validate the sizes of unknown chunks before attempting memory allocation, related to a lack of integer-overflow protection within a bytes_to_copy calculation and subsequent malloc call, leading to insufficient memory allocation.",
    "evidence": "osv:CVE-2018-10540",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-10540",
      "aliases": [
        "CVE-2018-10540"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/dbry/wavpack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "9ccc3fe4a37d069137ceabe513a4dd9b0a09c1c2"
                },
                {
                  "fixed": "6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:wavpack:wavpack:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "5.1.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.1.0",
            "5.0.0",
            "5.0.0-alpha5",
            "5.0.0-alpha4",
            "5.0.0-alpha3",
            "5.0.0-alpha2",
            "5.0.0-alpha",
            "4.80.0",
            "4.80.0-rc",
            "4.75.2",
            "4.75.0",
            "4.75.0-rc",
            "4.70.0",
            "4.70.0-rc"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10540.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-10540-294a3284",
                "digest": {
                  "length": 7859,
                  "function_hash": "184729569822965087301669000513246286331"
                },
                "source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
                "target": {
                  "file": "cli/riff.c",
                  "function": "ParseRiffHeaderConfig"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-10540-2fa9a354",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "232057494164455220144767172649489583477",
                    "110611123730469900830689342829752355457",
                    "81420611912405984134380139041615867790",
                    "93188358815698090562778273243671871941"
                  ]
                },
                "source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
                "target": {
                  "file": "cli/dsdiff.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-10540-b6880098",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "111297851007108909387284957869522922221",
                    "7400751062271159508161043106211857359",
                    "89150272844446672438462142820231743482",
                    "322445074363613205102206904284568707515"
                  ]
                },
                "source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
                "target": {
                  "file": "cli/wave64.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-10540-c836fca3",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "213820010221483680803095728996233934287",
                    "333107393162424743504898156762320146440",
                    "336250158133138648718424887759520376101",
                    "322445074363613205102206904284568707515"
                  ]
                },
                "source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
                "target": {
                  "file": "cli/riff.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-10540-c87123eb",
                "digest": {
                  "length": 6500,
                  "function_hash": "288370877697744344414771569440210308840"
                },
                "source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
                "target": {
                  "file": "cli/wave64.c",
                  "function": "ParseWave64HeaderConfig"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-10540-d33b0fd3",
                "digest": {
                  "length": 6569,
                  "function_hash": "63525521758563211822843282193964747098"
                },
                "source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
                "target": {
                  "file": "cli/dsdiff.c",
                  "function": "ParseDsdiffHeaderConfig"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:32:58Z"
          }
        }
      ],
      "modified": "2026-10-20T13:32:58.174492021Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6CFFFWIWALGQPKINRDW3PRGRD5LOLGZA/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRWQNE3TH5UF64IKHKKHVCHJHUOVKJUH/",
        "https://seclists.org/bugtraq/2019/Dec/37",
        "https://usn.ubuntu.com/3637-1/",
        "https://www.debian.org/security/2018/dsa-4197",
        "https://github.com/dbry/WavPack/issues/33",
        "https://github.com/dbry/WavPack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-10540",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387821,
  "published_at": "2018-04-29T15:29:00.647+00:00"
}