Medium
gocr — security advisory
An use-after-free vulnerability was discovered in gocr through 0.53-20200802 in context_correction() in pgm2asc.c.
- Products
- gocr
- Affected versions
- 0.49-2, 0.49-2build1, 0.52-3, 0.52-6, 0.52-6.1, 0.52-6.1build1, 0.52-6.1build2
- Fixed versions
- Not specified
- CVEs
- CVE-2021-33480
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:59 UTC · Revision 1
Source evidence
An use-after-free vulnerability was discovered in gocr through 0.53-20200802 in context_correction() in pgm2asc.c.
osv:UBUNTU-CVE-2021-33480
gocr
Fixed versions: Not specified
gocr
Fixed versions: Not specified
gocr
Fixed versions: Not specified
gocr
Fixed versions: Not specified
gocr
Fixed versions: Not specified
gocr
Fixed versions: Not specified
gocr
Fixed versions: Not specified
gocr
Fixed versions: Not specified
Complete source record
{
"id": "009e0768513e829a36a33eb39c6e0e3a38216fdd595badb8a4184d69e13a718e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-33480",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-33480",
"summary": "An use-after-free vulnerability was discovered in gocr through 0.53-20200802 in context_correction() in pgm2asc.c.",
"evidence": "osv:UBUNTU-CVE-2021-33480",
"products": [
{
"name": {
"value": "gocr",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.49-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "gocr",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.49-2",
"evidence": "/affected/1/versions"
},
{
"value": "0.49-2build1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "gocr",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.52-3",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "gocr",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.52-3",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "gocr",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.52-6",
"evidence": "/affected/4/versions"
},
{
"value": "0.52-6.1",
"evidence": "/affected/4/versions"
},
{
"value": "0.52-6.1build1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "gocr",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.52-6.1build1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "gocr",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.52-6.1build2",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "gocr",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.52-6.1build1",
"evidence": "/affected/7/versions"
},
{
"value": "0.52-6.1build2",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2021-33480",
"aliases": [
"UBUNTU-CVE-2021-33480"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "low"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gocr",
"purl": "pkg:deb/ubuntu/gocr?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.49-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33480.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gocr",
"binary_version": "0.49-2"
},
{
"binary_name": "gocr-tk",
"binary_version": "0.49-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gocr",
"purl": "pkg:deb/ubuntu/gocr?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.49-2",
"0.49-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33480.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gocr",
"binary_version": "0.49-2build1"
},
{
"binary_name": "gocr-tk",
"binary_version": "0.49-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gocr",
"purl": "pkg:deb/ubuntu/gocr?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.52-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33480.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gocr",
"binary_version": "0.52-3"
},
{
"binary_name": "gocr-tk",
"binary_version": "0.52-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gocr",
"purl": "pkg:deb/ubuntu/gocr?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.52-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33480.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gocr",
"binary_version": "0.52-3"
},
{
"binary_name": "gocr-tk",
"binary_version": "0.52-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gocr",
"purl": "pkg:deb/ubuntu/gocr?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.52-6",
"0.52-6.1",
"0.52-6.1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33480.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gocr",
"binary_version": "0.52-6.1build1"
},
{
"binary_name": "gocr-tk",
"binary_version": "0.52-6.1build1"
},
{
"binary_name": "libpgm2asc0.52t64",
"binary_version": "0.52-6.1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gocr",
"purl": "pkg:deb/ubuntu/gocr?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.52-6.1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33480.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gocr",
"binary_version": "0.52-6.1build1"
},
{
"binary_name": "gocr-tk",
"binary_version": "0.52-6.1build1"
},
{
"binary_name": "libpgm2asc0.52t64",
"binary_version": "0.52-6.1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gocr",
"purl": "pkg:deb/ubuntu/gocr?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.52-6.1build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33480.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gocr",
"binary_version": "0.52-6.1build2"
},
{
"binary_name": "gocr-tk",
"binary_version": "0.52-6.1build2"
},
{
"binary_name": "libpgm2asc0.52t64",
"binary_version": "0.52-6.1build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gocr",
"purl": "pkg:deb/ubuntu/gocr?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.52-6.1build1",
"0.52-6.1build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33480.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gocr",
"binary_version": "0.52-6.1build2"
},
{
"binary_name": "gocr-tk",
"binary_version": "0.52-6.1build2"
},
{
"binary_name": "libpgm2asc0.52t64",
"binary_version": "0.52-6.1build2"
}
]
}
}
],
"modified": "2026-10-17T12:56:20.090617184Z",
"provider": "osv",
"upstream": [
"CVE-2021-33480"
],
"references": [
"https://ubuntu.com/security/CVE-2021-33480",
"https://sourceforge.net/p/jocr/bugs/40/",
"https://sourceforge.net/p/jocr/bugs/41/",
"https://www.cve.org/CVERecord?id=CVE-2021-33480"
]
},
"related_cves": [
{
"value": "CVE-2021-33480",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355314,
"published_at": "2021-11-17T18:15:00+00:00"
}