Librarian PDF Save Endpoint SSRF Vulnerability (CVE-2024-54819)
An authenticated Server-Side Request Forgery (SSRF) vulnerability in the Librarian PDF save endpoint allows attackers to perform unauthorized requests against internal network resources.
CVE search metadata
CVE search record: CVE-2024-54819. Severity: critical. CVSS: 9.1. EPSS: 18.03%. KEV: no. Product: Librarian (3.1). Brief: Librarian PDF Save Endpoint SSRF Vulnerability (CVE-2024-54819). Brief link: https://feed.craftedsignal.io/briefs/2026-09-librarian-ssrf/
CVE-2024-54819 is a high-severity vulnerability (CVSS 9.1) affecting the Librarian application, specifically within the PDF generation module. The flaw exists due to insufficient validation of the 'remote_url' parameter when the application processes PDF save requests. An attacker with valid credentials can manipulate this parameter to force the server to initiate arbitrary HTTP requests to internal network segments, effectively acting as an SSRF vector.
This vulnerability was disclosed with proof-of-concept exploit code demonstrating how to leverage the 'remote_url' field in conjunction with valid authentication cookies and a CSRF token. By bypassing input validation, attackers can probe internal services or interact with locally hosted applications that are otherwise inaccessible from the public internet. Organizations using Librarian should audit their access logs for unusual POST requests to the PDF save endpoint, particularly those containing non-standard or internal URLs in the 'remote_url' field.
Attack Chain
- Attacker performs credential harvesting or utilizes valid account access to gain an authenticated session for the Librarian application.
- Attacker obtains a valid session cookie (e.g., IL=[COOKIE]) and current CSRF token from the application's authenticated session.
- Attacker targets the
/librarian/index.php/pdf/saveendpoint to initiate a PDF generation request. - Attacker crafts a malicious HTTP POST request, supplying an internal IP address or internal hostname within the 'remote_url' parameter.
- The Librarian server receives the POST request and fails to sanitize the 'remote_url' input.
- The server-side service initiates an outbound request to the target URI specified by the attacker, effectively performing SSRF.
- Attacker receives information or state changes from the internal resource, facilitating further lateral movement or data exfiltration.
Impact
Successful exploitation of this SSRF vulnerability grants an authenticated attacker the ability to bypass network segmentation and interact with internal-only services or APIs. This could lead to the exposure of sensitive internal data, exploitation of secondary internal vulnerabilities, or administrative access to other internal systems.
Recommendation
- Monitor web server logs for HTTP POST requests to
/librarian/index.php/pdf/savethat exhibit suspicious 'remote_url' parameters, such as internal IP addresses (e.g., 127.0.0.1, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). - Deploy the provided Sigma rule to detect attempts at exploiting the endpoint.
- Implement strict allow-listing for the 'remote_url' parameter on the server side to ensure only trusted, external domains are reachable.
- Ensure that the web server running Librarian is appropriately firewalled to minimize the impact of SSRF if this vulnerability is present.
Immediate actions
Review web server logs for indicators of SSRF against /librarian/index.php/pdf/save
Threat Hunt
Search for HTTP POST requests to Librarian PDF save endpoint with private IP address ranges in the remote_url parameter
Data: Web server logs containing query strings
Mitigations
Restrict outbound network access for the server hosting the Librarian application to only required external endpoints
CVE-2024-54819
Gaps
- Lack of vendor-provided patch information
Detection coverage 1
Detects CVE-2024-54819 Exploitation - SSRF via remote_url parameter
highDetects HTTP POST requests to the Librarian PDF save endpoint with internal IP addresses in the remote_url parameter, indicative of SSRF exploitation.
Detection queries are available on the platform. Get full rules →