Critical
Security advisory
LibreOffice before 2017-01-02 has an out-of-bounds write caused by a heap-based buffer overflow related to the tools::Polygon::Insert function in tools/source/generic/poly.cxx.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-7870
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:16 UTC · Revision 1
Source evidence
LibreOffice before 2017-01-02 has an out-of-bounds write caused by a heap-based buffer overflow related to the tools::Polygon::Insert function in tools/source/generic/poly.cxx.
osv:CVE-2017-7870
Complete source record
{
"id": "e219dcd1831bae315c4f5515e753b2ebd00f798de7869fda378ce741dfb948bd",
"url": "https://osv.dev/vulnerability/CVE-2017-7870",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-7870",
"summary": "LibreOffice before 2017-01-02 has an out-of-bounds write caused by a heap-based buffer overflow related to the tools::Polygon::Insert function in tools/source/generic/poly.cxx.",
"evidence": "osv:CVE-2017-7870",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2017-7870",
"aliases": [
"CVE-2017-7870"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libreoffice/core",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "62a97e6a561ce65e88d4c537a1b82c336f012722"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "62a97e6a561ce65e88d4c537a1b82c336f012722"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"libreoffice-5-3-branch-point",
"libreoffice-5-2-branch-point",
"libreoffice-5-1-branch-point",
"libreoffice-5-0-branch-point",
"libreoffice-4-4-branch-point",
"libreoffice-4-3-branch-point",
"sdremote-2.0.0",
"libreoffice-4-2-branch-point",
"libreoffice-4-2-milestone-1",
"libreoffice-4-1-branch-point",
"libreoffice-4-0-branch-point",
"libreoffice-3-6-branch-point",
"libreoffice-3.5.0.0",
"libreoffice-3-5-branch-point",
"windows_build_successful_2011_11_08",
"MELD_LIBREOFFICE_REPOS"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7870.json",
"vanir_signatures": [
{
"id": "CVE-2017-7870-05518e5e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"22070612361645020329499610670637442537",
"249548078519129381430523906520815174046",
"66627152345715727314717051175413444184",
"183457155979765927682825144003200261694",
"106853514682002853511463943567446016026",
"164520669373181017003991742969165080466",
"262049827953478467901912069566875013880",
"169435334650410120893404410842814725204",
"127156561887178819446338029902892638488",
"290523080986170265811940144313261488470",
"129517384787695669179361398211531610093",
"295269351213068409233532661871352164512",
"296108302739791682043000479602677467115",
"84299348447492656638703726841172784111",
"147197914840954722298865082518069312180",
"252473870175660580243636653292391771538"
]
},
"source": "https://github.com/libreoffice/core/commit/62a97e6a561ce65e88d4c537a1b82c336f012722",
"target": {
"file": "tools/source/generic/poly.cxx"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2017-7870-71ab297e",
"digest": {
"length": 249,
"function_hash": "177579632425961738769511052796220908042"
},
"source": "https://github.com/libreoffice/core/commit/62a97e6a561ce65e88d4c537a1b82c336f012722",
"target": {
"file": "tools/source/generic/poly.cxx",
"function": "Polygon::Insert"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2017-7870-e981ea23",
"digest": {
"threshold": 0.9,
"line_hashes": [
"268423800745431058011912116022712954466",
"161724590690062240202967858997688713271",
"254401286068184726806158298447869513049",
"135877398073884030876425637441777630194"
]
},
"source": "https://github.com/libreoffice/core/commit/62a97e6a561ce65e88d4c537a1b82c336f012722",
"target": {
"file": "tools/inc/poly.h"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2017-7870-ff672b92",
"digest": {
"length": 1319,
"function_hash": "334702242086672512941108974623254879673"
},
"source": "https://github.com/libreoffice/core/commit/62a97e6a561ce65e88d4c537a1b82c336f012722",
"target": {
"file": "tools/source/generic/poly.cxx",
"function": "ImplPolygon::ImplSplit"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:26:36Z"
}
}
],
"modified": "2026-10-20T13:26:36.595148784Z",
"provider": "osv",
"references": [
"https://access.redhat.com/errata/RHSA-2017:1975",
"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=372",
"https://security.gentoo.org/glsa/201706-28",
"https://github.com/LibreOffice/core/commit/62a97e6a561ce65e88d4c537a1b82c336f012722"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:libreoffice:libreoffice:*:beta2:*:*:*:*:*:*"
],
"vendor_product": "libreoffice:libreoffice",
"extracted_events": [
{
"range": [
{
"last_affected": "5.3.0.0"
}
],
"source": "CPE_RANGE"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "2017-01-02"
}
],
"source": "DESCRIPTION"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2017-7870",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387689,
"published_at": "2017-04-14T04:59:00.757+00:00"
}