Medium severity5.5NVD Advisory· Published Nov 29, 2017· Updated May 13, 2026
CVE-2017-17054
CVE-2017-17054
Description
In aubio 0.4.6, a divide-by-zero error exists in the function new_aubio_source_wavread() in source_wavread.c, which may lead to DoS when playing a crafted audio file.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
aubioPyPI | < 0.4.7 | 0.4.7 |
Affected products
1Patches
125ecb7338cebsrc/io/source_wavread.c: add some input validation (closes: #158)
1 file changed · +20 −0
src/io/source_wavread.c+20 −0 modified@@ -189,6 +189,26 @@ aubio_source_wavread_t * new_aubio_source_wavread(const char_t * path, uint_t sa // BitsPerSample bytes_read += fread(buf, 1, 2, s->fid); bitspersample = read_little_endian(buf, 2); + + if ( channels == 0 ) { + AUBIO_ERR("source_wavread: Failed opening %s (number of channels can not be 0)\n", s->path); + goto beach; + } + + if ( sr == 0 ) { + AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be 0)\n", s->path); + goto beach; + } + + if ( byterate == 0 ) { + AUBIO_ERR("source_wavread: Failed opening %s (byterate can not be 0)\n", s->path); + goto beach; + } + + if ( bitspersample == 0 ) { + AUBIO_ERR("source_wavread: Failed opening %s (bitspersample can not be 0)\n", s->path); + goto beach; + } #if 0 if ( bitspersample != 16 ) { AUBIO_ERR("source_wavread: can not process %dbit file %s\n",
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-vcwx-8mqh-2557ghsaADVISORY
- github.com/aubio/aubio/issues/148nvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2017-17054ghsaADVISORY
- bugs.debian.org/cgi-bin/bugreport.cgighsaWEB
- github.com/aubio/aubio/commit/25ecb7338cebc5b8c79092347839c78349ec33f1ghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/aubio/PYSEC-2017-75.yamlghsaWEB
News mentions
0No linked articles in our index yet.