GHSA-727h-hrw8-jg8q

    Dashboard / Vulnerabilities / GHSA-727h-hrw8-jg8q

    GHSA-727h-hrw8-jg8q

    Published: 11 Mar 2022Last Modified: 10 Sept 2026

    Summary: Path traversal in org.postgresql:postgresql

    Details: In pgjdbc before 42.3.3, an attacker (who controls the jdbc URL or properties) can call java.util.logging.FileHandler to write to arbitrary files through the loggerFile and loggerLevel connection properties. An example situation is that an attacker could create an executable JSP file under a Tomcat web root. NOTE: the vendor's position is that there is no pgjdbc vulnerability; instead, it is a vulnerability for any application to use the pgjdbc driver with untrusted connection properties.

    Affected packages

    Package

    Name: org.postgresql:postgresql

    Purl: pkg:maven/org.postgresql/postgresql

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 42.1.0
    Fixed -42.3.3

    Affected versions

    42.1.0
    42.1.0.jre7
    42.1.1
    42.1.1.jre6
    42.1.1.jre7
    42.1.2
    42.1.2.jre6
    42.1.2.jre7
    42.1.3
    42.1.3.jre6
    42.1.3.jre7
    42.1.4
    42.1.4.jre6
    42.1.4.jre7

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High