gerbv — security advisory
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
- Products
- gerbv
- Affected versions
- 2.10.0-1, 2.10.0-1build1, 2.10.0-1build2, 2.10.0-2, 2.10.0-2build1, 2.6.0-1, 2.6.0-1ubuntu0.16.04.1~esm1, 2.6.0-1ubuntu0.16.04.1~esm2, 2.6.1-2, 2.6.1-3, 2.6.1-3ubuntu0.1~esm1, 2.6.1-3ubuntu0.1~esm2, 2.7.0-1, 2.7.0-1ubuntu0.1, 2.7.0-1ubuntu0.2, 2.7.0-2, 2.7.1-1, 2.8.0-1, 2.8.1-1, 2.8.2-1, 2.8.2-1ubuntu0.1~esm1, 2.8.2-1ubuntu0.1~esm2, 2.9.8-1
- Fixed versions
- Not specified
- CVEs
- CVE-2021-40402
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:00 UTC · Revision 1
Source evidence
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
osv:UBUNTU-CVE-2021-40402
gerbv
Fixed versions: Not specified
gerbv
Fixed versions: Not specified
gerbv
Fixed versions: Not specified
gerbv
Fixed versions: Not specified
gerbv
Fixed versions: Not specified
gerbv
Fixed versions: Not specified
gerbv
Fixed versions: Not specified
gerbv
Fixed versions: Not specified
Complete source record
{
"id": "52d7520d8703228e9336e86df5a09fc3fb44e8fc807d052d767ecf549758e649",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-40402",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-40402",
"summary": "An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.",
"evidence": "osv:UBUNTU-CVE-2021-40402",
"products": [
{
"name": {
"value": "gerbv",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.6.0-1ubuntu0.16.04.1~esm1",
"evidence": "/affected/0/versions"
},
{
"value": "2.6.0-1ubuntu0.16.04.1~esm2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "gerbv",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6.1-2",
"evidence": "/affected/1/versions"
},
{
"value": "2.6.1-3",
"evidence": "/affected/1/versions"
},
{
"value": "2.6.1-3ubuntu0.1~esm1",
"evidence": "/affected/1/versions"
},
{
"value": "2.6.1-3ubuntu0.1~esm2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "gerbv",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.0-1ubuntu0.1",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.0-1ubuntu0.2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "gerbv",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.0-2",
"evidence": "/affected/3/versions"
},
{
"value": "2.7.1-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.1-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.2-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.2-1ubuntu0.1~esm1",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.2-1ubuntu0.1~esm2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "gerbv",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.9.8-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.10.0-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.10.0-1build1",
"evidence": "/affected/4/versions"
},
{
"value": "2.10.0-1build2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "gerbv",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.10.0-1build2",
"evidence": "/affected/5/versions"
},
{
"value": "2.10.0-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "gerbv",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.10.0-2build1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "gerbv",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.10.0-2",
"evidence": "/affected/7/versions"
},
{
"value": "2.10.0-2build1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2021-40402",
"aliases": [
"UBUNTU-CVE-2021-40402"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gerbv",
"purl": "pkg:deb/ubuntu/gerbv?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"2.6.0-1",
"2.6.0-1ubuntu0.16.04.1~esm1",
"2.6.0-1ubuntu0.16.04.1~esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40402.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gerbv",
"binary_version": "2.6.0-1ubuntu0.16.04.1~esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gerbv",
"purl": "pkg:deb/ubuntu/gerbv?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"2.6.1-2",
"2.6.1-3",
"2.6.1-3ubuntu0.1~esm1",
"2.6.1-3ubuntu0.1~esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40402.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gerbv",
"binary_version": "2.6.1-3ubuntu0.1~esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gerbv",
"purl": "pkg:deb/ubuntu/gerbv?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.7.0-1",
"2.7.0-1ubuntu0.1",
"2.7.0-1ubuntu0.2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40402.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gerbv",
"binary_version": "2.7.0-1ubuntu0.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gerbv",
"purl": "pkg:deb/ubuntu/gerbv?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"2.7.0-2",
"2.7.1-1",
"2.8.0-1",
"2.8.1-1",
"2.8.2-1",
"2.8.2-1ubuntu0.1~esm1",
"2.8.2-1ubuntu0.1~esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40402.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gerbv",
"binary_version": "2.8.2-1ubuntu0.1~esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gerbv",
"purl": "pkg:deb/ubuntu/gerbv?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.9.8-1",
"2.10.0-1",
"2.10.0-1build1",
"2.10.0-1build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40402.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gerbv",
"binary_version": "2.10.0-1build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gerbv",
"purl": "pkg:deb/ubuntu/gerbv?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.10.0-1build2",
"2.10.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40402.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gerbv",
"binary_version": "2.10.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gerbv",
"purl": "pkg:deb/ubuntu/gerbv?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.10.0-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40402.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gerbv",
"binary_version": "2.10.0-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gerbv",
"purl": "pkg:deb/ubuntu/gerbv?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.10.0-2",
"2.10.0-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40402.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gerbv",
"binary_version": "2.10.0-2build1"
}
]
}
}
],
"modified": "2026-10-17T12:56:21.519578707Z",
"provider": "osv",
"upstream": [
"CVE-2021-40402"
],
"references": [
"https://ubuntu.com/security/CVE-2021-40402",
"https://github.com/gerbv/gerbv/issues/80",
"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1416",
"https://www.cve.org/CVERecord?id=CVE-2021-40402"
]
},
"related_cves": [
{
"value": "CVE-2021-40402",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355406,
"published_at": "2022-04-14T20:15:00+00:00"
}