{"resultsPerPage":1,"startIndex":0,"totalResults":1,"format":"NVD_CVE","version":"2.0","timestamp":"2026-05-11T13:08:21.661","vulnerabilities":[{"cve":{"id":"CVE-2026-24765","sourceIdentifier":"security-advisories@github.com","published":"2026-01-27T22:15:56.790","lastModified":"2026-03-03T15:25:01.720","vulnStatus":"Analyzed","cveTags":[],"descriptions":[{"lang":"en","value":"PHPUnit is a testing framework for PHP. A vulnerability has been discovered in versions prior to 12.5.8, 11.5.50, 10.5.62, 9.6.33, and 8.5.52 involving unsafe deserialization of code coverage data in PHPT test execution. The vulnerability exists in the `cleanupForCoverage()` method, which deserializes code coverage files without validation, potentially allowing remote code execution if malicious `.coverage` files are present prior to the execution of the PHPT test. The vulnerability occurs when a `.coverage` file, which should not exist before test execution, is deserialized without the `allowed_classes` parameter restriction. An attacker with local file write access can place a malicious serialized object with a `__wakeup()` method into the file system, leading to arbitrary code execution during test runs with code coverage instrumentation enabled. This vulnerability requires local file write access to the location where PHPUnit stores or expects code coverage files for PHPT tests. This can occur through CI/CD pipeline attacks, the local development environment, and/or compromised dependencies. Rather than just silently sanitizing the input via `['allowed_classes' => false]`, the maintainer has chosen to make the anomalous state explicit by treating pre-existing `.coverage` files for PHPT tests as an error condition. Starting in versions  in versions 12.5.8, 11.5.50, 10.5.62, 9.6.33, when a `.coverage` file is detected for a PHPT test prior to execution, PHPUnit will emit a clear error message identifying the anomalous state. Organizations can reduce the effective risk of this vulnerability through proper CI/CD configuration, including ephemeral runners, code review enforcement, branch protection, artifact isolation, and access control."},{"lang":"es","value":"PHPUnit es un framework de pruebas para PHP. Se ha descubierto una vulnerabilidad en versiones anteriores a 12.5.8, 11.5.50, 10.5.62, 9.6.33 y 8.5.52 que involucra la deserialización insegura de datos de cobertura de código en la ejecución de pruebas PHPT. La vulnerabilidad existe en el método `cleanupForCoverage()`, que deserializa archivos de cobertura de código sin validación, lo que podría permitir la ejecución remota de código si archivos `.coverage` maliciosos están presentes antes de la ejecución de la prueba PHPT. La vulnerabilidad ocurre cuando un archivo `.coverage`, que no debería existir antes de la ejecución de la prueba, es deserializado sin la restricción del parámetro `allowed_classes`. Un atacante con acceso de escritura de archivos local puede colocar un objeto serializado malicioso con un método `__wakeup()` en el sistema de archivos, lo que lleva a la ejecución de código arbitrario durante las ejecuciones de pruebas con la instrumentación de cobertura de código habilitada. Esta vulnerabilidad requiere acceso de escritura de archivos local a la ubicación donde PHPUnit almacena o espera archivos de cobertura de código para las pruebas PHPT. Esto puede ocurrir a través de ataques a la cadena de CI/CD, el entorno de desarrollo local y/o dependencias comprometidas. En lugar de simplemente sanear silenciosamente la entrada a través de `['allowed_classes' =&gt; false]`, el mantenedor ha optado por hacer explícito el estado anómalo tratando los archivos `.coverage` preexistentes para las pruebas PHPT como una condición de error. A partir de las versiones 12.5.8, 11.5.50, 10.5.62, 9.6.33, cuando se detecta un archivo `.coverage` para una prueba PHPT antes de la ejecución, PHPUnit emitirá un mensaje de error claro que identifique el estado anómalo. Las organizaciones pueden reducir el riesgo efectivo de esta vulnerabilidad a través de una configuración adecuada de CI/CD, incluyendo ejecutores efímeros, aplicación de revisión de código, protección de ramas, aislamiento de artefactos y control de acceso."}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-502"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:*","versionEndExcluding":"8.5.52","matchCriteriaId":"5D9FEAE5-A87C-4075-B6DC-891777C96DD8"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:*","versionStartIncluding":"9.0.0","versionEndExcluding":"9.6.33","matchCriteriaId":"640B3B46-B435-42D9-9CD4-8FF9F0AF3B9A"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:*","versionStartIncluding":"10.0.0","versionEndExcluding":"10.5.62","matchCriteriaId":"4C8CECCD-A520-48D3-9813-596887E7B75A"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:*","versionStartIncluding":"11.0.0","versionEndExcluding":"11.5.50","matchCriteriaId":"8F2BC1CB-876F-443C-8B49-6B2900165493"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:*","versionStartIncluding":"12.0.0","versionEndExcluding":"12.5.8","matchCriteriaId":"B2941A20-1ADB-41E7-B171-C138FC2612BF"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","matchCriteriaId":"FA6FEEC2-9F11-4643-8827-749718254FED"}]}]}],"references":[{"url":"https://github.com/sebastianbergmann/phpunit/commit/3141742e00620e2968d3d2e732d320de76685fda","source":"security-advisories@github.com","tags":["Patch"]},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/10.5.63","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/11.5.50","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.8","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.52","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.33","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-vvj3-c3rp-c85p","source":"security-advisories@github.com","tags":["Mitigation","Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/02/msg00009.html","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"]}]}}]}