# CVE-2023-41055: LibreY Server-Side Request Forgery (SSRF) vulnerability via wikipedia_language cookie

> Remote attackers can trigger SSRF via the wikipedia_language cookie, causing Denial of Service or data exfiltration in LibreY.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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-xfj6-4vp9-8rgc

## What is CVE-2023-41055?

CVE-2023-41055 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 `engines/google/text.php` and `engines/duckduckgo/text.php` files in versions before commit be59098abd119cda70b15bf3faac596dfd39a744. This vulnerability allows remote attackers to request the server to send HTTP GET requests to arbitrary targets and conduct Denial-of-Service (DoS) attacks via the `wikipedia_language` cookie. Remote attackers can request the server to download large files to reduce the performance of the server or even deny access from legitimate users. This issue has been patched in https://github.com/Ahwxorg/LibreY/pull/9. 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-41055?

It affects 1 product.


Products: Ahwx Librey.

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

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

## Is CVE-2023-41055 being exploited?

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

## Other vulnerabilities in Ahwxorg LibreY

- [CVE-2023-41054](https://insights.sbomify.com/CVE-2023-41054/): LibreY Server-Side Request Forgery (SSRF) vulnerability in image_proxy.php (high 8.2)

## Fix prompt for AI coding agents

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

What it is: CVE-2023-41055 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-41055 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-41055/ (Markdown: https://insights.sbomify.com/CVE-2023-41055/index.md)
```

## Sources

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

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