rhsa-2024_4402
Vulnerability from csaf_redhat
Published
2024-07-09 08:54
Modified
2024-09-18 08:49
Summary
Red Hat Security Advisory: postgresql-jdbc security update

Notes

Topic
An update for postgresql-jdbc is now available for Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions, and Red Hat Enterprise Linux 8.6 Telecommunications Update Service. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.
Details
PostgreSQL is an advanced object-relational database management system. The postgresql-jdbc package includes the .jar files needed for Java programs to access a PostgreSQL database. Security Fix(es): * pgjdbc: PostgreSQL JDBC Driver allows attacker to inject SQL if using PreferQueryMode=SIMPLE (CVE-2024-1597) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Terms of Use
This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.



{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Important"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright \u00a9 Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "summary",
        "text": "An update for postgresql-jdbc is now available for Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions, and Red Hat Enterprise Linux 8.6 Telecommunications Update Service.\n\nRed Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.",
        "title": "Topic"
      },
      {
        "category": "general",
        "text": "PostgreSQL is an advanced object-relational database management system. The postgresql-jdbc package includes the .jar files needed for Java programs to access a PostgreSQL database.\n\nSecurity Fix(es):\n\n* pgjdbc: PostgreSQL JDBC Driver allows attacker to inject SQL if using PreferQueryMode=SIMPLE (CVE-2024-1597)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.",
        "title": "Details"
      },
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat offerings.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "https://access.redhat.com/errata/RHSA-2024:4402",
        "url": "https://access.redhat.com/errata/RHSA-2024:4402"
      },
      {
        "category": "external",
        "summary": "https://access.redhat.com/security/updates/classification/#important",
        "url": "https://access.redhat.com/security/updates/classification/#important"
      },
      {
        "category": "external",
        "summary": "2266523",
        "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2266523"
      },
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://access.redhat.com/security/data/csaf/v2/advisories/2024/rhsa-2024_4402.json"
      }
    ],
    "title": "Red Hat Security Advisory: postgresql-jdbc security update",
    "tracking": {
      "current_release_date": "2024-09-18T08:49:10+00:00",
      "generator": {
        "date": "2024-09-18T08:49:10+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "3.33.3"
        }
      },
      "id": "RHSA-2024:4402",
      "initial_release_date": "2024-07-09T08:54:01+00:00",
      "revision_history": [
        {
          "date": "2024-07-09T08:54:01+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2024-07-09T08:54:02+00:00",
          "number": "2",
          "summary": "Last updated version"
        },
        {
          "date": "2024-09-18T08:49:10+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux AppStream AUS (v.8.6)",
                "product": {
                  "name": "Red Hat Enterprise Linux AppStream AUS (v.8.6)",
                  "product_id": "AppStream-8.6.0.Z.AUS",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:rhel_aus:8.6::appstream"
                  }
                }
              },
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux AppStream E4S (v.8.6)",
                "product": {
                  "name": "Red Hat Enterprise Linux AppStream E4S (v.8.6)",
                  "product_id": "AppStream-8.6.0.Z.E4S",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:rhel_e4s:8.6::appstream"
                  }
                }
              },
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux AppStream TUS (v.8.6)",
                "product": {
                  "name": "Red Hat Enterprise Linux AppStream TUS (v.8.6)",
                  "product_id": "AppStream-8.6.0.Z.TUS",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:rhel_tus:8.6::appstream"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "postgresql-jdbc-0:42.2.3-5.el8_6.src",
                "product": {
                  "name": "postgresql-jdbc-0:42.2.3-5.el8_6.src",
                  "product_id": "postgresql-jdbc-0:42.2.3-5.el8_6.src",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/postgresql-jdbc@42.2.3-5.el8_6?arch=src"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "src"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
                "product": {
                  "name": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
                  "product_id": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/postgresql-jdbc@42.2.3-5.el8_6?arch=noarch"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
                "product": {
                  "name": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
                  "product_id": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/postgresql-jdbc-javadoc@42.2.3-5.el8_6?arch=noarch"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "noarch"
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch as a component of Red Hat Enterprise Linux AppStream AUS (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch"
        },
        "product_reference": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
        "relates_to_product_reference": "AppStream-8.6.0.Z.AUS"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-0:42.2.3-5.el8_6.src as a component of Red Hat Enterprise Linux AppStream AUS (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.src"
        },
        "product_reference": "postgresql-jdbc-0:42.2.3-5.el8_6.src",
        "relates_to_product_reference": "AppStream-8.6.0.Z.AUS"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch as a component of Red Hat Enterprise Linux AppStream AUS (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.AUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch"
        },
        "product_reference": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
        "relates_to_product_reference": "AppStream-8.6.0.Z.AUS"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.noarch"
        },
        "product_reference": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
        "relates_to_product_reference": "AppStream-8.6.0.Z.E4S"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-0:42.2.3-5.el8_6.src as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.src"
        },
        "product_reference": "postgresql-jdbc-0:42.2.3-5.el8_6.src",
        "relates_to_product_reference": "AppStream-8.6.0.Z.E4S"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch as a component of Red Hat Enterprise Linux AppStream E4S (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.E4S:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch"
        },
        "product_reference": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
        "relates_to_product_reference": "AppStream-8.6.0.Z.E4S"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch as a component of Red Hat Enterprise Linux AppStream TUS (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch"
        },
        "product_reference": "postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
        "relates_to_product_reference": "AppStream-8.6.0.Z.TUS"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-0:42.2.3-5.el8_6.src as a component of Red Hat Enterprise Linux AppStream TUS (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.src"
        },
        "product_reference": "postgresql-jdbc-0:42.2.3-5.el8_6.src",
        "relates_to_product_reference": "AppStream-8.6.0.Z.TUS"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch as a component of Red Hat Enterprise Linux AppStream TUS (v.8.6)",
          "product_id": "AppStream-8.6.0.Z.TUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch"
        },
        "product_reference": "postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
        "relates_to_product_reference": "AppStream-8.6.0.Z.TUS"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2024-1597",
      "cwe": {
        "id": "CWE-89",
        "name": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"
      },
      "discovery_date": "2024-02-28T00:00:00+00:00",
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "2266523"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "A flaw was found in the PostgreSQL JDBC Driver. A SQL injection is possible when using the non-default connection property preferQueryMode=simple in combination with application code that has a vulnerable SQL that negates a parameter value.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "pgjdbc: PostgreSQL JDBC Driver allows attacker to inject SQL if using PreferQueryMode=SIMPLE",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "The PostgreSQL JDBC Driver is not affected in the default query mode. Users that do not override the query mode are not impacted.\n\nThe described SQL injection vulnerability, while significant, is categorized as important rather than critical due to several factors. Firstly, the exploitation relies on specific conditions, including the use of a non-default query mode (preferQueryMode=simple) and the precise arrangement of user-controlled parameters within the SQL query. This limits the potential attack surface and reduces the likelihood of widespread exploitation across systems. Additionally, the vulnerability does not pose an immediate and severe risk of system compromise or data breach; rather, it enables attackers to manipulate SQL queries and potentially execute arbitrary commands within the context of the application\u0027s database. Furthermore, the vulnerability can be effectively mitigated by applying the provided patch or by avoiding the use of the vulnerable query mode, thus reducing the risk of exploitation.\n\nRed Hat Satellite ships a PostgreSQL JDBC Driver which embeds into Candlepin. However, Candlepin doesn\u0027t directly utilize the PostgreSQL JDBC Driver and doesn\u0027t set PreferQueryMode. Therefore, although the affected component is shipped, the product impact is considered Low. This issue may be addressed in a future Satellite release.",
          "title": "Statement"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product\u0027s status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
          "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.src",
          "AppStream-8.6.0.Z.AUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
          "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
          "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.src",
          "AppStream-8.6.0.Z.E4S:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
          "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
          "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.src",
          "AppStream-8.6.0.Z.TUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2024-1597"
        },
        {
          "category": "external",
          "summary": "RHBZ#2266523",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2266523"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2024-1597",
          "url": "https://www.cve.org/CVERecord?id=CVE-2024-1597"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2024-1597",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-1597"
        },
        {
          "category": "external",
          "summary": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56",
          "url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56"
        },
        {
          "category": "external",
          "summary": "https://www.enterprisedb.com/docs/jdbc_connector/latest/01_jdbc_rel_notes/",
          "url": "https://www.enterprisedb.com/docs/jdbc_connector/latest/01_jdbc_rel_notes/"
        },
        {
          "category": "external",
          "summary": "https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597/",
          "url": "https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597/"
        }
      ],
      "release_date": "2024-02-19T00:00:00+00:00",
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "For details on how to apply this update, which includes the changes described in this advisory, refer to:\n\nhttps://access.redhat.com/articles/11258",
          "product_ids": [
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch"
          ],
          "restart_required": {
            "category": "none"
          },
          "url": "https://access.redhat.com/errata/RHSA-2024:4402"
        },
        {
          "category": "workaround",
          "details": "Do not use the connection propertypreferQueryMode=simple. If you do not explicitly specify a query mode, then you are using the default of extended and are not impacted by this issue.",
          "product_ids": [
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.AUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.E4S:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.noarch",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-0:42.2.3-5.el8_6.src",
            "AppStream-8.6.0.Z.TUS:postgresql-jdbc-javadoc-0:42.2.3-5.el8_6.noarch"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Important"
        }
      ],
      "title": "pgjdbc: PostgreSQL JDBC Driver allows attacker to inject SQL if using PreferQueryMode=SIMPLE"
    }
  ]
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...