# CVE-2024-5522: HTML5 Video Player < 2.5.27 - Unauthenticated SQLi

> Unauthenticated attackers can perform SQL injection via a REST route in the HTML5 Video Player WordPress plugin, potentially accessing or modifying database content.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 20 Jun 2024
- **Updated:** 1 Aug 2024
- **Also known as:** GHSA-3vf3-j8cr-x4g6

## What is CVE-2024-5522?

CVE-2024-5522 is a medium-severity SQL injection vulnerability in Unknown HTML5 Video Player , published on 20 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The HTML5 Video Player  WordPress plugin before 2.5.27 does not sanitize and escape a parameter from a REST route before using it in a SQL statement, allowing unauthenticated users to perform SQL injection attacks

Weakness: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command)

## Which versions are affected by CVE-2024-5522?

It affects 1 product.


Products: Bplugins Html5 Video Player.

## How do I fix CVE-2024-5522?

No fix has been published for CVE-2024-5522 yet. Limit exposure of the affected software until one is available.

## Is CVE-2024-5522 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5522 exists.

Public exploit code:

- A PoC exploit scanner for CVE-2024-5522 vulnerability in WordPress websites (github_poc): https://github.com/geniuszly/CVE-2024-5522
- https://github.com/kryptonproject/CVE-2024-5522-PoC (github_poc): https://github.com/kryptonproject/CVE-2024-5522-PoC
- WordPress HTML5 Video Player < 2.5.27 - SQL Injection (nuclei): http/cves/2024/CVE-2024-5522.yaml

## Other vulnerabilities in Unknown HTML5 Video Player 

- [CVE-2024-1061](https://insights.sbomify.com/CVE-2024-1061/): SQL injection in bplugins:html5 video player (high 8.6)
- [CVE-2023-6485](https://insights.sbomify.com/CVE-2023-6485/): Html5 Video Player < 2.5.19 - Subscriber+ Stored XSS (medium 5.4)
- [CVE-2024-7727](https://insights.sbomify.com/CVE-2024-7727/): Missing authorization in HTML5 Video Player – Embed and Play Videos in Custom Player (medium 5.3)
- [CVE-2024-43296](https://insights.sbomify.com/CVE-2024-43296/): WordPress HTML5 Video Player plugin <= 2.5.30 - Broken Access Control vulnerability (medium 4.3)
- [CVE-2024-7721](https://insights.sbomify.com/CVE-2024-7721/): Missing authorization in HTML5 Video Player – Embed and Play Videos in Custom Player (medium 4.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-5522 and fix it if it is affected.

What it is: CVE-2024-5522 is a medium-severity SQL injection vulnerability in Unknown HTML5 Video Player , published on 20 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5522 exists.

Affected product: Unknown HTML5 Video Player . 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-2024-5522/ (Markdown: https://insights.sbomify.com/CVE-2024-5522/index.md)
```

## Sources

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

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