# CVE-2023-41054: LibreY Server-Side Request Forgery (SSRF) vulnerability in image_proxy.php

> Remote attackers can exploit LibreY to send arbitrary HTTP requests, enabling internal network data retrieval and denial-of-service attacks.

- **Severity:** High 8.2 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 4 Sep 2023
- **Updated:** 30 Sep 2024
- **Also known as:** GHSA-p4f9-h8x8-mpwf

## What is CVE-2023-41054?

CVE-2023-41054 is a high-severity server-side request forgery vulnerability in Ahwxorg LibreY, published on 4 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

LibreY is a fork of LibreX, a framework-less and javascript-free privacy respecting meta search engine. LibreY is subject to a Server-Side Request Forgery (SSRF) vulnerability in the `image_proxy.php` file of LibreY before commit 8f9b9803f231e2954e5b49987a532d28fe50a627. This vulnerability allows remote attackers to use the server as a proxy to send HTTP GET requests to arbitrary targets and retrieve information in the internal network or conduct Denial-of-Service (DoS) attacks via the `url` parameter. Remote attackers can use the server as a proxy to send HTTP GET requests and retrieve information in the internal network. Remote attackers can also request the server to download large files or chain requests among multiple instances to reduce the performance of the server or even deny access from legitimate users. This issue has been addressed in https://github.com/Ahwxorg/LibreY/pull/31. LibreY hosters are advised to use the latest commit. There are no known workarounds for this vulnerability.

Weakness: CWE-918 (Server-Side Request Forgery)

## Which versions are affected by CVE-2023-41054?

It affects 1 product.


Products: Ahwx Librey.

## How do I fix CVE-2023-41054?

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

## Is CVE-2023-41054 being exploited?

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

## Other vulnerabilities in Ahwxorg LibreY

- [CVE-2023-41055](https://insights.sbomify.com/CVE-2023-41055/): LibreY Server-Side Request Forgery (SSRF) vulnerability via wikipedia_language cookie (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-41054 and fix it if it is affected.

What it is: CVE-2023-41054 is a high-severity server-side request forgery vulnerability in Ahwxorg LibreY, published on 4 Sep 2023. 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-2023-41054 exists.

Affected product: Ahwxorg LibreY. 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-2023-41054/ (Markdown: https://insights.sbomify.com/CVE-2023-41054/index.md)
```

## Sources

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

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