← Back to CVE Explorer

CVE-2026-92842

Full vulnerability record from the local CVENow database.

Description

The convert.base64-encode, convert.quoted-printable-encode and convert.quoted-printable-decode stream filters accept a line-break-chars option whose length is tracked separately from the string itself. The filter constructors duplicate the value with pestrdup(), which stops at the first NUL byte, while keeping the original length. When the filter later emits a line break it copies the recorded length out of the truncated allocation, reading past its end and placing adjacent heap bytes into the filter output.

Severity
MEDIUM
CVSS score
5.9 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-09-25 22:18:49.943000
Last modified
2026-10-27 15:33:55.553000
View original CVE JSON
{
  "id": "CVE-2026-92842",
  "sourceIdentifier": "[email protected]",
  "published": "2026-09-25T22:18:49.943",
  "lastModified": "2026-10-27T15:33:55.553",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "The convert.base64-encode, convert.quoted-printable-encode and convert.quoted-printable-decode stream filters accept a line-break-chars option whose length is tracked separately from the string itself. The filter constructors duplicate the value with pestrdup(), which stops at the first NUL byte, while keeping the original length. When the filter later emits a line break it copies the recorded length out of the truncated allocation, reading past its end and placing adjacent heap bytes into the filter output."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "PHP Group",
          "product": "PHP",
          "defaultStatus": "unaffected",
          "packageName": "ext-standard",
          "versions": [
            {
              "version": "8.2.*",
              "lessThan": "8.2.34",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "8.3.*",
              "lessThan": "8.3.35",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "8.4.*",
              "lessThan": "8.4.26",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "8.5.*",
              "lessThan": "8.5.11",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
          "baseScore": 5.9,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "HIGH",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "NONE",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.2,
        "impactScore": 3.6
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-09-28T12:56:55.648676Z",
          "id": "CVE-2026-92842",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-122"
        },
        {
          "lang": "en",
          "value": "CWE-125"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "8.2.0",
              "versionEndExcluding": "8.2.34",
              "matchCriteriaId": "AAFB3643-4D71-46ED-8184-DDE5FE41CD02"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "8.3.0",
              "versionEndExcluding": "8.3.35",
              "matchCriteriaId": "FF664EE8-D417-45A4-84DF-158F5073FDE8"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "8.4.0",
              "versionEndExcluding": "8.4.26",
              "matchCriteriaId": "52D4BECA-EF0D-4180-837C-AEFA7A12D243"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "8.5.0",
              "versionEndExcluding": "8.5.11",
              "matchCriteriaId": "308803C0-9FC8-40D2-8920-B83BCC48014F"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/php/php-src/security/advisories/GHSA-88hq-2827-7pg6",
      "source": "[email protected]",
      "tags": [
        "Vendor Advisory",
        "Exploit"
      ]
    }
  ]
}