Classic Buffer OverflowWeakness · CWE-120

CVE-2024-57513

MEDIUM · 6.5 CVSS v3.1 Published 2025-01-29
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
72/100
Remediation priority · Elevated
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
A floating-point exception (FPE) vulnerability exists in the AP4_TfraAtom::AP4_TfraAtom function in Bento4.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

A floating-point exception (FPE) vulnerability exists in Bento4's AP4_TfraAtom::AP4_TfraAtom function when parsing the tfra (track fragment reference) atom in MP4 container files. This suggests the parser fails to validate certain numerical values before performing arithmetic operations, allowing crafted MP4 files to trigger division-by-zero or other arithmetic faults.

MitigationApply the vendor patch when available; in the interim, implement input validation in the AP4_TfraAtom constructor to ensure values used in division or array indexing operations are checked before use, and sanitize or reject malformed tfra atoms.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Bento4 library version in use
    Search for Bento4 libraries in your application dependencies (check package.json, requirements.txt, CMakeLists.txt, or binary/dll files). Run 'strings' or 'grep' on compiled binaries for 'Bento4' or 'AP4' identifiers and look for version strings like 'Bento4 version X.X.X' or 'libap4 version X.X.X'.
    Affected if The installed Bento4 version falls within any unpatched version range (compare your version against the vendor's security advisory once released).
  2. Confirm MP4 parsing functionality is active
    Review application code or configuration to determine if the Bento4 library is used to parse MP4 container files. Search for AP4_File::Parse, AP4_Movie, or similar MP4 parsing API calls in the codebase.
    Affected if The application parses MP4 files using Bento4, which loads and processes atoms including the tfra (track fragment reference) atom.
  3. Identify tfra atom parsing path
    Search codebase for references to AP4_TfraAtom, 'tfra', or track fragment reference handling. Check if MP4 files being processed are from untrusted sources (user uploads, network streams, or external inputs).
    Affected if The application processes MP4 files from untrusted sources and the Bento4 parser reaches the tfra atom parsing code path without additional validation.
  4. Check for input validation on MP4 files
    Inspect any pre-processing, validation, or sanitization logic applied to MP4 files before they are passed to Bento4's AP4_TfraAtom constructor. Look for file format validation, size checks, or schema validation routines.
    Affected if No input validation is performed on MP4 files before parsing, allowing potentially malformed tfra atoms to reach the vulnerable code.

You are affected if your application uses Bento4 to parse MP4 files from untrusted sources and the library version has not been patched to address the division-by-zero vulnerability in AP4_TfraAtom::AP4_TfraAtom.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Apply the vendor patch when available; in the interim, implement input validation in the AP4_TfraAtom constructor to ensure values used in division or array indexing operations are checked before use, and sanitize or reject malformed tfra atoms.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
11.0 hours of engineering $1,930
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-57513 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-57513 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data