CVE-2021-23345 Server-side Request Forgery (SSRF)
An attacker can exploit SSRF in the HTML conversion endpoint to read internal system files via crafted src attributes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-23345?
CVE-2021-23345 is a medium-severity server-side request forgery vulnerability in github.com/thecodingmachine/gotenberg, published on 26 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of package github.com/thecodingmachine/gotenberg are vulnerable to Server-side Request Forgery (SSRF) via the /convert/html endpoint when the src attribute of an HTML element refers to an internal system file, such as <iframe src='file:///etc/passwd'>.
Weakness: CWE-918
Which versions are affected by CVE-2021-23345?
It affects 1 product.
Products include Thecodingmachine Gotenberg.
How do I fix CVE-2021-23345?
No fix has been published for CVE-2021-23345 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2021-23345 being exploited?
There is no known exploitation of CVE-2021-23345 in the wild and no public exploit code.
Other vulnerabilities in github.com/thecodingmachine/gotenberg
Sources
Also known as GHSA-r97h-mg64-mcjr.