{"id":"CVE-2026-2007","year":2026,"sequence":2007,"component":"contrib module","score":8.2,"cvss_version":"3.0","vector":"AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","first_published":"2026-02-12","source_url":"https://www.postgresql.org/support/security/CVE-2026-2007/","facts":{"affected":{"18":"18"},"affected_ranges":[{"from":"18","until":"18.2"}],"cna_url":"https://cveawg.mitre.org/api/cve/CVE-2026-2007","component":"contrib module","cvss_version":"3.0","description_en":"Heap buffer overflow in PostgreSQL pg_trgm allows a database user to achieve unknown impacts via a crafted input string. The attacker has limited control over the byte patterns to be written, but we have not ruled out the viability of attacks that lead to privilege escalation. PostgreSQL 18.1 and 18.0 are affected.","first_published":"2026-02-12","fixed":{"18":"18.2"},"id":"CVE-2026-2007","introduced":{},"published":{"18":"2026-02-12"},"score":8.2,"title":"PostgreSQL pg_trgm heap buffer overflow writes pattern onto server memory","url":"https://www.postgresql.org/support/security/CVE-2026-2007/","vector":"AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"},"reviewed_hash":"6a65a7884245936f6adaef8709d290d460e999dfce1ad78734fa7c9a324ed325","source_hash":"965b9e2323feab543f3cbeb74c418c3a5b43cbefc6594d2862ff0d24dcf8e6a2","text":{"locale":"zh-Hans","title":"PostgreSQL pg_trgm 堆缓冲区溢出会将模式写入服务器内存","description":"PostgreSQL pg_trgm 堆缓冲区溢出会将模式写入服务器内存","details":null,"format":"markdown","provenance":{"identity":"immutable_cve_code","sources":[{"observed_at":"2026-10-03 12:08:35.169032+08","raw":{"component":"contrib module","cve":"2026-2007","cvenumber":202602007,"description":"PostgreSQL pg_trgm 堆缓冲区溢出会将模式写入服务器内存","details":null,"detailslink":"https://access.redhat.com/security/cve/CVE-2026-2007","id":1,"legacyscore":"","newspost_id":null,"public":true,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"},"source":"center","source_id":1,"source_table_sha256":"b57ee28b2263464208af0ccf7512b31f0c1ab7140d12dda09a0c87de341f1372"},{"observed_at":"2026-10-03 12:08:55.967155+08","raw":{"component":"contrib module","cve":"2026-2007","cvenumber":202602007,"description":"PostgreSQL pg_trgm 堆缓冲区溢出会将模式写入服务器内存","details":null,"detailslink":"https://access.redhat.com/security/cve/CVE-2026-2007","id":1,"legacyscore":"","newspost_id":null,"public":true,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"},"source":"pgweb","source_id":1,"source_table_sha256":"b57ee28b2263464208af0ccf7512b31f0c1ab7140d12dda09a0c87de341f1372"}]},"text_hash":"fba9fa4193f95ef804afc6b625800a46b0e35149ec21881069d68d4679e23f81"},"locales":["en","zh-Hans"],"fixes":[{"major":"18","fixed_version":"18.2","introduced":null,"published_date":"2026-02-12","facts":{"fixed":"18.2","introduced":null,"published":"2026-02-12"}}],"legacy":[{"source":"center","source_id":1,"observed_at":"2026-10-03 12:08:35.169032+08","raw":{"id":1,"cve":"2026-2007","public":true,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","details":null,"component":"contrib module","cvenumber":202602007,"description":"PostgreSQL pg_trgm 堆缓冲区溢出会将模式写入服务器内存","detailslink":"https://access.redhat.com/security/cve/CVE-2026-2007","legacyscore":"","newspost_id":null},"fixes":[{"source_id":1,"source_version_id":31,"major":"18","fixed_minor":2,"raw":{"id":1,"patch_id":1,"version_id":31,"fixed_minor":2},"version_raw":{"id":31,"tree":18.0,"current":true,"docsgit":"","eoldate":"2030-11-14","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":6,"firstreldate":"2025-09-25"}}]},{"source":"pgweb","source_id":1,"observed_at":"2026-10-03 12:08:55.967155+08","raw":{"id":1,"cve":"2026-2007","public":true,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","details":null,"component":"contrib module","cvenumber":202602007,"description":"PostgreSQL pg_trgm 堆缓冲区溢出会将模式写入服务器内存","detailslink":"https://access.redhat.com/security/cve/CVE-2026-2007","legacyscore":"","newspost_id":null},"fixes":[{"source_id":1,"source_version_id":31,"major":"18","fixed_minor":2,"raw":{"id":1,"patch_id":1,"version_id":31,"fixed_minor":2},"version_raw":{"id":31,"tree":18.0,"current":true,"docsgit":"","eoldate":"2030-11-14","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":6,"firstreldate":"2025-09-25"}}]}]}
