JLSEC-2026-647

Source
https://github.com/JuliaLang/SecurityAdvisories.jl/blob/main/advisories/published/2026/JLSEC-2026-647.md
Import Source
https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-647.json
JSON Data
https://api.osv.dev/v1/vulns/JLSEC-2026-647
Upstream
  • CVE-2025-59734
  • EUVD-2025-32184
  • GHSA-g9mr-r3g9-6594
Published
2026-06-26T20:24:16.337Z
Modified
2026-07-02T05:46:08.666812767Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:A/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N CVSS Calculator
Summary
It is possible to cause an use-after-free write in SANM decoding with a carefully crafted...
Details

It is possible to cause an use-after-free write in SANM decoding with a carefully crafted animation using subversion <2.

When a STOR chunk is present, a subsequent FOBJ chunk will be saved in ctx->storedframe. Stored frames can later be referenced by FTCH chunks. For files using subversion < 2, the undecoded frame is stored, and decoded again when the FTCH chunks are parsed. However, in processframe_obj if the frame has an invalid size, there’s an early return, with a value of 0.

This causes the code in decodeframe to still store the raw frame buffer into ctx->storedframe. Leaving ctx->has_dimensions set to false.

A subsequent chunk with type FTCH would call processftch and decode that frame obj again, adding to the top/left values and calling processframeobj again. Given that we never set ctx->havedimensions before, this time we set the dimensions, calling initbuffers, which can reallocate the buffer in ctx->storedframe, freeing the previous one. However, the GetByteContext object gb still holds a reference to the old buffer.

Finally, when the code tries to decode the frame, codecs that accept a GetByteContext as a parameter will trigger a use-after-free read when using gb.

GetByteContext is only used for reading bytes, so at most one could read invalid data. There are no heap allocations between the free and when the object is accessed. However, upon returning to processftch, the code restores the original values for top/left in storedframe, writing 4 bytes to the freed data at offset 6, potentially corrupting the allocator’s metadata.

This issue can be triggered just by probing whether a file has the sanm format.

We recommend upgrading to version 8.0 or beyond.

Database specific
{
    "sources": [
        {
            "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2025-59734",
            "html_url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59734",
            "database_specific": {
                "status": "Deferred"
            },
            "imported": "2026-06-26T19:19:47.112Z",
            "published": "2025-10-06T08:15:35.227Z",
            "id": "CVE-2025-59734",
            "modified": "2026-06-17T09:46:36.900Z"
        },
        {
            "modified": "2025-10-19T15:31:16Z",
            "url": "https://api.github.com/advisories/GHSA-g9mr-r3g9-6594",
            "imported": "2026-06-26T19:19:47.367Z",
            "published": "2025-10-06T09:30:20Z",
            "id": "GHSA-g9mr-r3g9-6594",
            "html_url": "https://github.com/advisories/GHSA-g9mr-r3g9-6594"
        },
        {
            "html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-32184",
            "modified": "2026-02-26T17:48:16Z",
            "published": "2025-10-06T08:09:44Z",
            "imported": "2026-06-26T19:19:09.607Z",
            "id": "EUVD-2025-32184",
            "url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2025-32184"
        }
    ],
    "license": "CC-BY-4.0"
}
References

Affected packages

Julia / FFMPEG_jll

Package

Name
FFMPEG_jll
Purl
pkg:julia/FFMPEG_jll?uuid=b22a6f82-2f65-5046-a5b2-351ab43fb4e5

Affected ranges

Type
SEMVER
Events
Introduced
6.1.1+0
Fixed
8.0.0+0

Database specific

source
"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-647.json"

Julia / FFplay_jll

Package

Name
FFplay_jll
Purl
pkg:julia/FFplay_jll?uuid=c4dce911-e170-5107-8314-c7bdc6785395

Affected ranges

Type
SEMVER
Events
Introduced
7.1.0+0
Fixed
8.1.2+0

Database specific

source
"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-647.json"