CVE-2026-65068
Full vulnerability record from the local CVENow database.
Description
Data::SpatialHash::Shared versions before 0.02 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW. The segment is created in sphash.h with open(path, O_RDWR|O_CREAT, 0666). The mode is 0666, so under the default umask 022 the file is created mode 0644 (world-readable). O_NOFOLLOW is absent, so a symlink planted at the path is followed, and O_EXCL is absent, so the open silently uses a pre-planted file instead of failing. A "Shared" segment naturally lives in a shared directory such as /tmp or /dev/shm, where any local user can read the IPC payloads stored in the world-readable segment, and a pre-planted file or symlink at the path lets a local attacker win a pre-creation race or redirect the open.
View original CVE JSON
{
"id": "CVE-2026-65068",
"sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"published": "2026-07-21T20:17:05.837",
"lastModified": "2026-10-24T19:10:00.127",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Data::SpatialHash::Shared versions before 0.02 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW.\n\nThe segment is created in sphash.h with open(path, O_RDWR|O_CREAT, 0666). The mode is 0666, so under the default umask 022 the file is created mode 0644 (world-readable). O_NOFOLLOW is absent, so a symlink planted at the path is followed, and O_EXCL is absent, so the open silently uses a pre-planted file instead of failing.\n\nA \"Shared\" segment naturally lives in a shared directory such as /tmp or /dev/shm, where any local user can read the IPC payloads stored in the world-readable segment, and a pre-planted file or symlink at the path lets a local attacker win a pre-creation race or redirect the open."
},
{
"lang": "es",
"value": "Las versiones de Data::SpatialHash::Shared anteriores a la 0.02 para Perl crean un archivo de respaldo mmap legible por todos y lo abren sin O_EXCL ni O_NOFOLLOW.\n\nEl segmento se crea en sphash.h con open(path, O_RDWR|O_CREAT, 0666). El modo es 0666, así que bajo la umask predeterminada 022 el archivo se crea con modo 0644 (legible por todos). O_NOFOLLOW está ausente, así que se sigue un enlace simbólico plantado en la ruta, y O_EXCL está ausente, así que la apertura usa silenciosamente un archivo pre-plantado en lugar de fallar.\n\nUn segmento ’Shared’ naturalmente reside en un directorio compartido como /tmp o /dev/shm, donde cualquier usuario local puede leer las cargas útiles IPC almacenadas en el segmento legible por todos, y un archivo pre-plantado o enlace simbólico en la ruta permite a un atacante local ganar una condición de carrera de pre-creación o redirigir la apertura."
}
],
"affected": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"affectedData": [
{
"vendor": "EGOR",
"product": "Data::SpatialHash::Shared",
"defaultStatus": "unaffected",
"collectionURL": "https://cpan.org/modules",
"packageName": "Data-SpatialHash-Shared",
"programFiles": [
"sphash.h"
],
"repo": "https://github.com/vividsnow/perl5-data-spatialhash-shared",
"versions": [
{
"version": "0",
"lessThan": "0.02",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N",
"baseScore": 3.8,
"baseSeverity": "LOW",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "CHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "NONE",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.0,
"impactScore": 1.4
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-23T13:18:22.274837Z",
"id": "CVE-2026-65068",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-59"
},
{
"lang": "en",
"value": "CWE-732"
}
]
}
],
"references": [
{
"url": "https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/changes",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
},
{
"url": "https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/diff/EGOR/Data-SpatialHash-Shared-0.01#sphash.h",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
}
]
}