{"schemaVersion":3,"id":"CVE-2025-59729","aliases":["UBUNTU-CVE-2025-59729","DEBIAN-CVE-2025-59729","CGA-2vv4-h359-8mc2","CGA-65pg-h2mm-jchf","CGA-q5xh-5h3j-qmqf","CGA-w6cj-x4qg-433f","CGA-253g-gh8p-j39q","CGA-2v98-j7g6-2hmq","CGA-4rp4-wfp8-p35g","CGA-6646-5mc4-x7v8","CGA-6rjc-fwx2-85hm","CGA-7gmm-c9rv-p3xx","CGA-8wp3-9q6g-xpvx","CGA-9rgv-r4m2-7gq9","CGA-9xjw-w4hc-2pgj","CGA-cgh5-pw7c-jgv8","CGA-cj4f-x2wp-3p35","CGA-gc66-m593-jhw4","CGA-hx9x-3fg9-8jrx","CGA-jgfp-9q8r-8fmq","CGA-mrvq-mf7x-3822","CGA-p26h-qjp9-87fm","CGA-ph3r-7r6h-cgw5","CGA-pvrm-2pmq-3m3h","CGA-r3mm-36gr-7pw3","CGA-rw28-5j3r-fp5h","CGA-wcc7-r2fq-fmrw","CGA-x458-5r5p-72v6"],"status":"published","duplicateOf":null,"title":null,"description":"When parsing the header for a DHAV file, there's an integer underflow in offset calculation that leads to reading the duration from before the start of the allocated buffer.\n\nIf we load a DHAV file that is larger than MAX_DURATION_BUFFER_SIZE bytes (0x100000) for example 0x101000 bytes, then at [0] we have size = 0x101000. At [1] we have end_buffer_size = 0x100000, and at [2] we have end_buffer_pos = 0x1000.\n\nThe loop then scans backwards through the buffer looking for the dhav tag; when it is found, we'll calculate end_pos based on a 32-bit offset read from the buffer.\n\nThere is subsequently a check [3] that end_pos is within the section of the file that has been copied into end_buffer, but it only correctly handles the cases where end_pos is before the start of the file or after the section copied into end_buffer, and not the case where end_pos is within the the file, but before the section copied into end_buffer. If we provide such an offset, (end_pos - end_buffer_pos) can underflow, resulting in the subsequent access at [4] occurring before the beginning of the allocation.\n\nWe recommend upgrading to version 8.0 or beyond.","dates":{"published":"2025-10-06T08:08:46.060Z","modified":"2025-10-06T16:28:37.534Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.7,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.7,"severity":"medium","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":5.7,"severity":"medium","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":5.7,"severity":"medium","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":5.7,"severity":"medium","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.7,"severity":"medium","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0016,"percentile":0.04735,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0016},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0016,"percentile":0.04735}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0016,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0016,"percentile":0.04735}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"chainguard","product":"eco-python-ffmpeg-6-minimal","name":"eco-python-ffmpeg-6-minimal","label":"eco-python-ffmpeg-6-minimal","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/eco-python-ffmpeg-6-minimal","purlType":"apk","versions":[{"text":"< 6.1.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.1.6-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"eco-python-ffmpeg-6-minimal-dev","name":"eco-python-ffmpeg-6-minimal-dev","label":"eco-python-ffmpeg-6-minimal-dev","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/eco-python-ffmpeg-6-minimal-dev","purlType":"apk","versions":[{"text":"< 6.1.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.1.6-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"eco-python-ffmpeg-6-minimal-static","name":"eco-python-ffmpeg-6-minimal-static","label":"eco-python-ffmpeg-6-minimal-static","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/eco-python-ffmpeg-6-minimal-static","purlType":"apk","versions":[{"text":"< 6.1.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.1.6-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"eco-python-ffmpeg-7-minimal","name":"eco-python-ffmpeg-7-minimal","label":"eco-python-ffmpeg-7-minimal","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/eco-python-ffmpeg-7-minimal","purlType":"apk","versions":[{"text":"< 7.1.5-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.1.5-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"eco-python-ffmpeg-7-minimal-dev","name":"eco-python-ffmpeg-7-minimal-dev","label":"eco-python-ffmpeg-7-minimal-dev","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/eco-python-ffmpeg-7-minimal-dev","purlType":"apk","versions":[{"text":"< 7.1.5-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.1.5-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"eco-python-ffmpeg-7-minimal-static","name":"eco-python-ffmpeg-7-minimal-static","label":"eco-python-ffmpeg-7-minimal-static","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/eco-python-ffmpeg-7-minimal-static","purlType":"apk","versions":[{"text":"< 7.1.5-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.1.5-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ffmpeg-6","name":"ffmpeg-6","label":"ffmpeg-6","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ffmpeg-6","purlType":"apk","versions":[{"text":"< 6.1.6-r5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.1.6-r5","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ffmpeg-7","name":"ffmpeg-7","label":"ffmpeg-7","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ffmpeg-7","purlType":"apk","versions":[{"text":"< 7.1.5-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.1.5-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ffmpeg-7.1","name":"ffmpeg-7.1","label":"ffmpeg-7.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ffmpeg-7.1","purlType":"apk","versions":[{"text":"< 7.1.5-r4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.1.5-r4","eol":null,"hubHref":null},{"vendor":"chainguard","product":"torchaudio-ffmpeg-tarballs","name":"torchaudio-ffmpeg-tarballs","label":"torchaudio-ffmpeg-tarballs","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/torchaudio-ffmpeg-tarballs","purlType":"apk","versions":[{"text":"< 1-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"torchaudio-ffmpeg-tarballs-4.4.4","name":"torchaudio-ffmpeg-tarballs-4.4.4","label":"torchaudio-ffmpeg-tarballs-4.4.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/torchaudio-ffmpeg-tarballs-4.4.4","purlType":"apk","versions":[{"text":"< 1-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"torchaudio-ffmpeg-tarballs-5.0.3","name":"torchaudio-ffmpeg-tarballs-5.0.3","label":"torchaudio-ffmpeg-tarballs-5.0.3","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/torchaudio-ffmpeg-tarballs-5.0.3","purlType":"apk","versions":[{"text":"< 1-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"torchaudio-ffmpeg-tarballs-6.0","name":"torchaudio-ffmpeg-tarballs-6.0","label":"torchaudio-ffmpeg-tarballs-6.0","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/torchaudio-ffmpeg-tarballs-6.0","purlType":"apk","versions":[{"text":"< 1-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1-r2","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ffmpeg-7","name":"ffmpeg-7","label":"ffmpeg-7","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ffmpeg-7","purlType":"apk","versions":[{"text":"< 7.1.5-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.1.5-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ffmpeg-7.1","name":"ffmpeg-7.1","label":"ffmpeg-7.1","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ffmpeg-7.1","purlType":"apk","versions":[{"text":"< 7.1.5-r4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.1.5-r4","eol":null,"hubHref":null},{"vendor":"debian","product":"ffmpeg","name":"ffmpeg","label":"ffmpeg","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ffmpeg","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libav","name":"libav","label":"libav","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libav","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ffmpeg","product":"ffmpeg","name":"ffmpeg","label":"ffmpeg","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"ffmpeg","label":"FFmpeg","category":"framework"}},"hubHref":"/vendor/ffmpeg/ffmpeg"}],"affectedCount":18,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://issuetracker.google.com/433513232","label":"issuetracker.google.com/433513232","hostname":"issuetracker.google.com","tags":["REPORT","WEB"]},{"url":"https://ubuntu.com/security/CVE-2025-59729","label":"ubuntu.com/security/CVE-2025-59729","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-59729","label":"www.cve.org/CVERecord?id=CVE-2025-59729","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-59729","label":"security-tracker.debian.org/tracker/CVE-2025-59729","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59729.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59729.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59729","label":"nvd.nist.gov/vuln/detail/CVE-2025-59729","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://git.ffmpeg.org/ffmpeg.git","label":"git.ffmpeg.org/ffmpeg.git","hostname":"git.ffmpeg.org","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-2C34-RR36-MP24"]},"timeline":[{"kind":"published","date":"2025-10-06T08:08:46.060Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-06T16:28:37.534Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":23,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:18:27.639Z","stale":false,"partial":false}}