Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
We should block external resource before fop is called
PDFTranscoder transcoder = new PDFTranscoder();
TranscoderInput xIn = new TranscoderInput(new FileInputStream("test.svg"));
TranscoderOutput xOut = new TranscoderOutput(new ByteArrayOutputStream());
transcoder.addTranscodingHint(PDFTranscoder.KEY_AUTO_FONTS, false);
transcoder.addTranscodingHint(ImageTranscoder.KEY_ALLOW_EXTERNAL_RESOURCES, false);
transcoder.transcode(xIn, xOut);
CVE-2022-38648