Exploit databaseDownload repository ZIP
GH-79a3dc45e9f393803a84d8e3b2394fb1
shellharbor/php-7.4-cve-2026-docker
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files22
shellharbor/php-7.4-cve-2026-dockerRevision 80d49a28e55f
- ↑..Parent directory
- .gitkeep
- apply-history.py
- augment-sbom.php
- build-native.py
- build-php.sh
- build.ps1
- build.sh
- entrypoint.sh
- healthcheck.sh
- lock-dependencies.sh
- lock-native-dependencies.sh
- lock-test-dependencies.sh
- make-rootfs.py
- package-php.sh
- prepare-source.sh
- refresh-upstream-certs.py
- release-gate.php
- run-upstream.py
- scan.sh
- test.sh
- verify-source.sh
- verify.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/augment-sbom.php
PHP · 4,023 bytes<?php
// Preserve raw OS inventory and declare every independently source-built component.
if ($argc !== 2) {
fwrite(STDERR, "Usage: php augment-sbom.php /reports/sbom.cdx.json\n");
exit(2);
}
$path = $argv[1];
$sbom = json_decode(file_get_contents($path), true, 512, JSON_THROW_ON_ERROR);
if (!isset($sbom['bomFormat']) || $sbom['bomFormat'] !== 'CycloneDX') {
throw new RuntimeException('Expected a CycloneDX SBOM');
}
$build = json_decode(file_get_contents('/usr/local/share/php-cve/build/build.json'),
true, 512, JSON_THROW_ON_ERROR);
$reference = 'php-cve-source-build-' . $build['php_version'];
$components = isset($sbom['components']) ? $sbom['components'] : array();
$components = array_values(array_filter($components, function ($item) {
return !isset($item['bom-ref']) || strpos($item['bom-ref'], 'php-cve-source-') !== 0;
}));
$components[] = array(
'type' => 'application',
'bom-ref' => $reference,
'name' => 'PHP Core with minimal EOL backport',
'version' => $build['php_version'] . '-backport.3',
'hashes' => array(array('alg' => 'SHA-256', 'content' => hash_file('sha256', PHP_BINARY))),
'externalReferences' => array(array('type' => 'vcs',
'url' => 'https://github.com/php/php-src/commit/' . $build['patch_commit'])),
'properties' => array(
array('name' => 'php-cve:upstream-version', 'value' => $build['php_version']),
array('name' => 'php-cve:source-archive-sha256', 'value' => $build['source_sha256']),
array('name' => 'php-cve:patch-sha256', 'value' => $build['patch_sha256']),
array('name' => 'php-cve:historical-patch-lock-sha256', 'value' => $build['historical_patch_lock_sha256']),
array('name' => 'php-cve:security-status', 'value' => 'UNVERIFIED'),
array('name' => 'php-cve:native-source-lock-sha256', 'value' => $build['native_source_lock_sha256']),
array('name' => 'php-cve:scope', 'value' => 'Copied Debian file subset plus explicit PHP, curl, libxml2, SQLite, OpenLDAP and OpenSSL provenance; complete historical PHP vulnerability clearance is not claimed')
)
);
$native = json_decode(file_get_contents('/usr/local/share/php-cve/build/native-components.json'),
true, 512, JSON_THROW_ON_ERROR);
foreach ($native['components'] as $component) {
if (!$component['runtime_files']) {
throw new RuntimeException('Missing runtime files for ' . $component['name']);
}
$properties = array(array('name' => 'php-cve:provenance', 'value' => 'source-built'),
array('name' => 'php-cve:component-catalog-package', 'value' => $component['package']));
$references = array();
foreach ($component['sources'] as $source) {
$references[] = array('type' => 'distribution', 'url' => $source['url']);
$properties[] = array('name' => 'php-cve:source-sha256:' . $source['file'], 'value' => $source['sha256']);
}
foreach ($component['patches'] as $sourcePatch) {
$properties[] = array('name' => 'php-cve:patch-sha256:' . $sourcePatch['file'], 'value' => $sourcePatch['sha256']);
}
foreach ($component['runtime_files'] as $file) {
if ($file['sha256'] !== null) {
$properties[] = array('name' => 'php-cve:runtime-sha256:' . $file['path'], 'value' => $file['sha256']);
}
}
$components[] = array('type' => 'library', 'bom-ref' => 'php-cve-source-native-' . $component['name'],
'name' => $component['name'], 'version' => $component['version'],
'purl' => 'pkg:generic/' . rawurlencode($component['name']) . '@' . rawurlencode($component['version']),
'externalReferences' => $references, 'properties' => $properties);
}
$sbom['components'] = $components;
$result = json_encode($sbom, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR);
if (file_put_contents($path, $result . "\n") === false) {
throw new RuntimeException('Cannot write SBOM');
}
echo "Added source-built PHP and ", count($native["components"]), " native components to CycloneDX SBOM\n";