OESA-2023-1623 (CVE-2023-3247)

Vulnerability from osv_openeuler – Published: 2023-09-09 11:06 – Updated: 2026-08-06 11:06 – Source website
VLAI
Summary
php security update
Details

PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated web pages. PHP also offers built-in database integration for several commercial and non-commercial database management systems, so writing a database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts. The php package contains the module (often referred to as mod_php) which adds support for the PHP language to Apache HTTP Server.

Security Fix(es):

In PHP versions 8.0. before 8.0.29, 8.1. before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generator failure, it could lead to a disclosure of 31 bits of uninitialized memory from the client to the server, and it also made easier to a malicious server to guess the client's nonce. 

(CVE-2023-3247)

In PHP versions 8.0. before 8.0.30, 8.1. before 8.1.22, and 8.2.* before 8.2.8 various XML functions rely on libxml global state to track configuration variables, like whether external entities are loaded. This state is assumed to be unchanged unless the user explicitly changes it by calling appropriate function. However, since the state is process-global, other modules - such as ImageMagick - may also use this library within the same process, and change that global state for their internal purposes, and leave it in a state where external entities loading is enabled. This can lead to the situation where external XML is parsed with external entities loaded, which can lead to disclosure of any local files accessible to PHP. This vulnerable state may persist in the same process across many requests, until the process is shut down. 

(CVE-2023-3823)

In PHP version 8.0. before 8.0.30,  8.1. before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE. 

(CVE-2023-3824)


{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "php-dba-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-bcmath-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-cli-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-devel-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-dbg-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-snmp-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-sodium-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-ldap-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-fpm-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-pgsql-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-common-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-opcache-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-tidy-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-gmp-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-help-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-enchant-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-intl-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-gd-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-mbstring-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-embedded-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-debugsource-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-mysqlnd-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-odbc-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-pdo-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-xml-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-soap-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-debuginfo-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-process-8.0.30-1.oe2203sp2.aarch64.rpm",
          "php-ffi-8.0.30-1.oe2203sp2.aarch64.rpm"
        ],
        "src": [
          "php-8.0.30-1.oe2203sp2.src.rpm"
        ],
        "x86_64": [
          "php-intl-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-dbg-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-enchant-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-common-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-gmp-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-help-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-xml-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-mysqlnd-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-sodium-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-bcmath-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-snmp-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-debuginfo-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-pdo-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-embedded-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-pgsql-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-ldap-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-gd-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-odbc-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-devel-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-mbstring-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-tidy-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-opcache-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-fpm-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-debugsource-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-process-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-dba-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-cli-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-soap-8.0.30-1.oe2203sp2.x86_64.rpm",
          "php-ffi-8.0.30-1.oe2203sp2.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP2",
        "name": "php",
        "purl": "pkg:rpm/openEuler/php\u0026distro=openEuler-22.03-LTS-SP2"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8.0.30-1.oe2203sp2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "Medium"
  },
  "details": "PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated web pages. PHP also offers built-in database integration for several commercial and non-commercial database management systems, so writing a database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts. The php package contains the module (often referred to as mod_php) which adds support for the PHP language to Apache HTTP Server.\r\n\r\nSecurity Fix(es):\r\n\r\nIn PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generator failure, it could lead to a disclosure of 31 bits of uninitialized memory from the client to the server, and it also made easier to a malicious server to guess the client\u0026apos;s nonce.\u00a0\r\n\r\n(CVE-2023-3247)\r\n\r\nIn PHP versions 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8 various XML functions rely on libxml global state to track configuration variables, like whether external entities are loaded. This state is assumed to be unchanged unless the user explicitly changes it by calling appropriate function. However, since the state is process-global, other modules - such as\u00a0ImageMagick - may also use this library within the same process, and change that global state for their internal purposes, and leave it in a state where external entities loading is enabled. This can lead to the situation where external XML is parsed with external entities loaded, which can lead to disclosure of any local files accessible to PHP. This vulnerable state may persist in the same process across many requests, until the process is shut down.\u00a0\r\n\r\n(CVE-2023-3823)\r\n\r\nIn PHP version 8.0.* before 8.0.30,\u00a0 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.\u00a0\r\n\r\n(CVE-2023-3824)",
  "id": "OESA-2023-1623",
  "modified": "2026-08-06T11:06:04Z",
  "published": "2023-09-09T11:06:04Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1623"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-3247"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-3823"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-3824"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "php security update",
  "upstream": [
    "CVE-2023-3247",
    "CVE-2023-3823",
    "CVE-2023-3824"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…