CVE-2021-3758
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-3758 is a Server-Side Request Forgery (SSRF) vulnerability identified by CWE-918. The vulnerability was discovered in BookStack's export functionality, where untrusted server fetching could be performed to potentially unknown and user-provided locations, primarily affecting the export feature when loading externally referenced assets (GitHub Commit).

Technical details

The vulnerability exists in the PDF export functionality where WKHTMLtoPDF and DOMPDF components could perform server-side fetches to untrusted locations. The issue was addressed by implementing a new configuration option 'ALLOWUNTRUSTEDSERVER_FETCHING' which controls external resource fetching behavior. When set to false (default), it prevents both WKHTMLtoPDF and DOMPDF from fetching external resources (GitHub Commit).

Impact

The vulnerability could allow an attacker to perform server-side requests to arbitrary locations through the application's export functionality, potentially leading to unauthorized access to internal resources or execution of server-side requests to external systems (GitHub Commit).

Mitigation and workarounds

The issue was addressed by introducing the 'ALLOWUNTRUSTEDSERVERFETCHING' configuration option. By default, this option is set to false, preventing untrusted server fetching. Organizations can explicitly enable this feature by setting ALLOWUNTRUSTEDSERVERFETCHING=true if required for their use case (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management