Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1333

Block external resource before calling fop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.15
    • 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

      Attachments

        1. test.svg
          0.2 kB
          Simon Steiner

        Activity

          People

            ssteiner Simon Steiner
            ssteiner Simon Steiner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: