CVE-2026-119342

Source
https://cve.org/CVERecord?id=CVE-2026-119342
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119342.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-119342
Aliases
  • GHSA-pr4g-9qp2-g8j8
Published
2026-10-30T20:28:30Z
Modified
2026-11-06T01:05:59Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Stirling-PDF: SVG→PDF local file read (LFI) via SVG-sanitizer and Batik same-origin bypass
Details

Stirling-PDF is a locally hosted web application that facilitates various operations on PDF files. From 2.13.1 until 2.13.2, the POST /api/v1/convert/svg/pdf endpoint renders attacker-supplied SVG through Apache Batik, and a scheme-less root-relative image reference bypasses SvgSanitizer.isExternalUrl() before Batik resolves it against the file:///input.svg document base as a same-origin local file. The convert() and addSvgAsPage() paths in app/core/src/main/java/stirling/software/SPDF/utils/SvgToPdf.java can then render image-decodable server files into the returned PDF when sanitization is enabled, including without authentication on login-disabled deployments or with non-admin access when login is enabled. The issue discloses PNG, JPG, GIF, or SVG content and provides an existence oracle only for image-decodable paths; plain text, binary files, directories, XInclude text, external entities, explicit file URLs, and tested HTTP references are not disclosed through this mechanism. This issue is fixed in version 2.13.2.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-20",
        "CWE-22",
        "CWE-610",
        "CWE-918"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119342.json"
}
References

Affected packages

Git / github.com/stirling-tools/stirling-pdf

Affected ranges

Type
GIT
Repo
https://github.com/stirling-tools/stirling-pdf
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "2.13.1"
                },
                {
                    "fixed":  "2.13.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v2.13.2",
            "range":  [
                {
                    "fixed":  "d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "2.13.2"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

v2.*
v2.13.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119342.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "309162000603170340746890382291978914232",
            "length":  924
        },
        "id":  "CVE-2026-119342-0c090c27",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/proprietary/src/main/java/stirling/software/proprietary/security/service/DatabaseService.java",
            "function":  "validateSqlContent"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "92143123202947394883146864914779214957",
            "length":  376
        },
        "id":  "CVE-2026-119342-219c148b",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/common/src/main/java/stirling/software/common/util/SvgSanitizer.java",
            "function":  "isExternalUrl"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "207367343661809505023125410188296492850",
            "length":  987
        },
        "id":  "CVE-2026-119342-612d0397",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/core/src/main/java/stirling/software/SPDF/utils/SvgToPdf.java",
            "function":  "addSvgAsPage"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "124422116649744783345457499634537948587",
            "length":  140
        },
        "id":  "CVE-2026-119342-61b97300",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/core/src/main/java/stirling/software/SPDF/utils/SvgOverlayUtil.java",
            "function":  "checkLoadExternalResource"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "30242061117942341298519385665094025774",
                "174294285869338888228066796852044073570",
                "318495374915696516764668937782013244753",
                "94411665259848590847469864769000413069",
                "107223597976591505942335355998334547232",
                "70065243327012360261982705625644119356",
                "105981659012000046556700625116200200765",
                "7722118260528729206435591168275142185",
                "53053023600263557878268281286993898505"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-119342-757fea61",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/proprietary/src/main/java/stirling/software/proprietary/security/service/DatabaseService.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "97724088240929415824351877662323870189",
            "length":  1263
        },
        "id":  "CVE-2026-119342-94dd1bfe",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/core/src/main/java/stirling/software/SPDF/utils/SvgToPdf.java",
            "function":  "convert"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "190517548589230623832984534515649398441",
            "length":  1574
        },
        "id":  "CVE-2026-119342-9d806978",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/core/src/main/java/stirling/software/SPDF/utils/SvgOverlayUtil.java",
            "function":  "overlaySvgOnPage"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "300627243227328931424008820115055632994",
                "300436237725249841078450216921717847309",
                "165652740520048473030222507560990380612",
                "201823079461072234446699983194744691338",
                "140628279215195545413950186017851946207",
                "71671177827773546031310361754740458512",
                "110000025072491531115882539802290483222",
                "19091382788684860181542733879767989868",
                "156375103635146239989300574464476704450",
                "209465651921955703630984466793432865333",
                "123179586900214325684113046644722779613",
                "140628279215195545413950186017851946207",
                "71671177827773546031310361754740458512",
                "110000025072491531115882539802290483222",
                "19091382788684860181542733879767989868"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-119342-b72d4b8f",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/core/src/main/java/stirling/software/SPDF/utils/SvgToPdf.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "83838203533600907495087549606532571683",
                "282031169847129214431324017072672307376",
                "127587764915748622413580116486309937696",
                "220622316609268262042734370760954644633",
                "188697488330779215623662116887221593965",
                "236619522259551046268161306910586693152",
                "181495017332133750254837449482978219060",
                "110162060228542682380156444412018828771",
                "238237027036366976482284221140291620098"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-119342-bee38861",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/core/src/test/java/stirling/software/SPDF/utils/SvgToPdfTest.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "187706187691064683720993675221150927207",
                "264754070195891291687172528668119131331"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-119342-d45e7dee",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/proprietary/src/test/java/stirling/software/proprietary/security/service/DatabaseServiceMoreTest.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "38203475750940553312558354710544920666",
                "93602416673313859951836719138441323387",
                "150378574372605191297531544083708096707",
                "108519963291568029694666966260321268755"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-119342-d7d1ba75",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/core/src/main/java/stirling/software/SPDF/utils/SvgOverlayUtil.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "80630543279289569363716506825886819190",
                "213572352079119322734494455193741187278",
                "141762665186884031084814281442092878540",
                "286998919495413387494333043062051967436",
                "10360558776263140473903623215286663982",
                "79766920844836587584807029189727499784",
                "121874441840746836924902525901388143644"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-119342-dc0ec99a",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/common/src/main/java/stirling/software/common/util/SvgSanitizer.java"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "128038626080175627708162630606944654632",
                "59841925587601815977054085524629878135"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-119342-e3674b83",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/stirling-tools/stirling-pdf/commit/d06d3cabaf5b8a7dcd0dbfc584828d8e687e5dd5",
        "target":  {
            "file":  "app/common/src/test/java/stirling/software/common/util/SvgSanitizerTest.java"
        }
    }
]
vanir_signatures_modified
"2026-11-06T01:05:59Z"