# CVE-2021-3522: Memory corruption in GStreamer

> An out-of-bounds read in GStreamer's ID3v2 tag handling can cause crashes or leak memory, affecting applications using the library.

- **Severity:** Medium 5.5 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 2 Jun 2021
- **Updated:** 28 May 2026
- **Also known as:** ALPINE-CVE-2021-3522, DEBIAN-CVE-2021-3522, DLA-2641-1, DSA-4903-1, GHSA-x3cx-v22q-v4cr, MGASA-2021-0334, OESA-2021-1237, OESA-2022-1601, SUSE-SU-2022:3907-1, SUSE-SU-2022:3911-1, SUSE-SU-2022:3916-1, UBUNTU-CVE-2021-3522, USN-4959-1

## What is CVE-2021-3522?

CVE-2021-3522 is a medium-severity memory corruption vulnerability in Gstreamer Gstreamer, published on 2 Jun 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

GStreamer before 1.18.4 may perform an out-of-bounds read when handling certain ID3v2 tags.

Weakness: CWE-125 (Out-of-bounds Read)

## Which versions are affected by CVE-2021-3522?

It affects 12 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `gstreamer-plugins-base` | SUSE:Linux Enterprise Micro 5.2 | All versions | 1.16.3-150200.4.6.2 |
| `gstreamer-plugins-base` | SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 1.16.3-150200.4.6.2 |
| `gstreamer-plugins-base` | SUSE:Linux Enterprise Module for Package Hub 15 SP3 | All versions | 1.16.3-150200.4.6.2 |
| `gstreamer-plugins-base` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 1.8.3-13.6.1 |
| `gstreamer-plugins-base` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 1.8.3-13.6.1 |
| `gstreamer-0_10-plugins-base` | SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 0.10.36-18.6.1 |
| `gstreamer-plugins-base` | SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 1.8.3-13.6.1 |
| `gstreamer-0_10-plugins-base` | SUSE:Linux Enterprise Workstation Extension 12 SP5 | All versions | 0.10.36-18.6.1 |
| `gstreamer-plugins-base` | SUSE:Linux Enterprise Workstation Extension 12 SP5 | All versions | 1.8.3-13.6.1 |
| `gstreamer-plugins-base` | openSUSE:Leap 15.3 | All versions | 1.16.3-150200.4.6.2 |
| `gstreamer-plugins-base` | openSUSE:Leap 15.4 | All versions | 1.16.3-150200.4.6.2 |
| `gstreamer-plugins-base` | openSUSE:Leap Micro 5.2 | All versions | 1.16.3-150200.4.6.2 |

Products: Gstreamer Gstreamer, Netapp Active Iq Unified Manager, Netapp E-Series Santricity Os Controller, Netapp E-Series Santricity Storage Manager, Netapp E-Series Santricity Web Services, Netapp Hci Management Node, Netapp Oncommand Insight, Netapp Oncommand Workflow Automation, Netapp Santricity Unified Manager, Netapp Snapmanager, Netapp Solidfire, Oracle Openjdk.

## How do I fix CVE-2021-3522?

Upgrade to a fixed version.

## Is CVE-2021-3522 being exploited?

There is no known exploitation of CVE-2021-3522 in the wild and no public exploit code.

## Other vulnerabilities in Gstreamer Gstreamer

- [CVE-2026-3083](https://insights.sbomify.com/CVE-2026-3083/): GStreamer rtpqdm2depay Out-Of-Bounds Write Remote Code Execution Vulnerability (high 8.8)
- [CVE-2026-3085](https://insights.sbomify.com/CVE-2026-3085/): GStreamer rtpqdm2depay Heap-based Buffer Overflow Remote Code Execution Vulnerability (high 8.8)
- [CVE-2023-37328](https://insights.sbomify.com/CVE-2023-37328/): GStreamer PGS File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability (high 8.8)
- [CVE-2023-37329](https://insights.sbomify.com/CVE-2023-37329/): GStreamer SRT File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability (high 8.8)
- [CVE-2023-38103](https://insights.sbomify.com/CVE-2023-38103/): GStreamer RealMedia File Parsing Integer Overflow Remote Code Execution Vulnerability (high 8.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-3522 and fix it if it is affected.

What it is: CVE-2021-3522 is a medium-severity memory corruption vulnerability in Gstreamer Gstreamer, published on 2 Jun 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2021-3522 in the wild and no public exploit code.

Affected product: Gstreamer Gstreamer. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-3522/ (Markdown: https://insights.sbomify.com/CVE-2021-3522/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-3522
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-3522
- OSV: https://osv.dev/vulnerability/CVE-2021-3522

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-3522/
Summaries are generated and may contain mistakes; the official description above is the record.
