Every CVE Search/ Get API key

CVE-2018-20797

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in...

6.5 MediumFix available

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.35%Up 0.9 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Record
CVE-2018-20797
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Record
CVE-2018-20797
Updated
2026-11-02
EUVDEUVD-2018-13340 No score

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Record
EUVD-2018-13340
Updated
2026-11-03
GitHub AdvisoriesGHSA-f2r9-m844-g6h4 6.5

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in...

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Record
GHSA-f2r9-m844-g6h4
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-119
Updated
2026-11-02
OSVALPINE-CVE-2018-20797 6.5

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Record
ALPINE-CVE-2018-20797
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSV 6.5

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Record
CVE-2018-20797
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVDEBIAN-CVE-2018-20797 6.5

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Record
DEBIAN-CVE-2018-20797
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-20797 6.5

An issue was discovered in PoDoFo 0.9.6. There is an attempted excessive memory allocation in PoDoFo::podofo_calloc in base/PdfMemoryManagement.cpp when called from PoDoFo::PdfPredictorDecoder::PdfPredictorDecoder in base/PdfFiltersPrivate.cpp.

Record
UBUNTU-CVE-2018-20797
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVopenSUSE-SU-2024:12049-1 No score

libpodofo-devel-0.9.8-1.1 on GA media

These are all security issues fixed in the libpodofo-devel-0.9.8-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12049-1
Updated
2026-11-02
OSVopenSUSE-SU-2025:15521-1 No score

libpodofo-0_10-devel-0.10.5-1.1 on GA media

These are all security issues fixed in the libpodofo-0_10-devel-0.10.5-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2025:15521-1
Updated
2026-11-02
OSVSUSE-SU-2024:2137-1 No score

Security update for podofo

This update for podofo fixes the following issues:

  • CVE-2019-9199: Fixed a NULL pointer dereference in podofoimpose (bsc#1127855)
  • CVE-2018-20797: Fixed an excessive memory allocation in PoDoFo:podofo_calloc (bsc#1127514)
  • CVE-2019-10723: Fixed a memory leak in PdfPagesTreeCache (bsc#1131544)
Record
SUSE-SU-2024:2137-1
Updated
2026-11-02
OSVUSN-7217-1 No score

libpodofo vulnerabilities

It was discovered that the PoDoFo library could dereference a NULL pointer when getting the number of pages in a PDF. If a user or application were tricked into opening a crafted PDF file, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2018-11255)

It was discovered that PoDoFo library incorrectly handled memory when computing an encryption key, which could lead to a buffer overflow. If a user or application were tricked into opening a crafted PDF file, an attacker could possibly use this issue to cause a denial of service. (CVE-2018-12983)

It was discovered that the PoDoFo library incorrectly handled memory allocation. If a user or application were tricked into opening a crafted PDF file, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2018-20797)

It was discovered that the PoDoFo library did not properly validate memcpy arguments. If a user or application were tricked into opening a crafted PDF file, an attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2018-5308)

It was discovered that the PoDoFo library incorrectly handled memory in the GetNextToken function, which could lead to a buffer overflow. If a user or application were tricked into opening a crafted PDF file, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 16.04 LTS. (CVE-2017-5886)

It was discovered that the PoDoFo library could enter an infinite loop, which could lead to a stack overflow. If a user or application were tricked into opening a crafted PDF file, an attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2018-8002, CVE-2020-18971, CVE-2021-30471, CVE-2021-30470)

It was discovered that the PoDoFo library incorrectly handled memory allocation due to nInitialSize not being validated. If a user or application were tricked into opening a crafted PDF file, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2019-10723)

Record
USN-7217-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
podofo
Alpine:v3.13
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.14
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.15
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.16
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.17
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.18
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.19
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.20
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.21
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.22
before 0.9.7-r0
0.9.7-r0
Show 16 moreShow less
Affected packages
PackageAffectedFixed
podofo
Alpine:v3.23
before 0.9.7-r0
0.9.7-r0
podofo
Alpine:v3.24
before 0.9.7-r0
0.9.7-r0
libpodofo
Debian:12
All versions, plus listed versions
0.9.8+dfsg-30.9.8+dfsg-3.10.9.8+dfsg-3.1~exp10.9.8+dfsg-3.20.9.8+dfsg-3.3
None known
libpodofo
Debian:13
All versions, plus listed versions
0.9.8+dfsg-3.20.9.8+dfsg-3.3
None known
libpodofo
Debian:14
All versions, plus listed versions
0.9.8+dfsg-3.20.9.8+dfsg-3.3
None known
podofo
SUSE:Linux Enterprise Module for Package Hub 15 SP5
before 0.9.6-150300.3.9.1
0.9.6-150300.3.9.1
podofo
SUSE:Linux Enterprise Module for Package Hub 15 SP6
before 0.9.6-150300.3.9.1
0.9.6-150300.3.9.1
podofo
openSUSE:Leap 15.5
before 0.9.6-150300.3.9.1
0.9.6-150300.3.9.1
podofo
openSUSE:Leap 15.6
before 0.9.6-150300.3.9.1
0.9.6-150300.3.9.1
libpodofo
Ubuntu:Pro:16.04:LTS
before 0.9.3-4ubuntu0.1~esm1, plus listed versions
0.9.0-1.30.9.3-30.9.3-4
0.9.3-4ubuntu0.1~esm1
libpodofo
Ubuntu:Pro:18.04:LTS
before 0.9.5-9ubuntu0.1~esm1, plus listed versions
0.9.5-60.9.5-80.9.5-8build10.9.5-9
0.9.5-9ubuntu0.1~esm1
libpodofo
Ubuntu:Pro:20.04:LTS
before 0.9.6+dfsg-5ubuntu0.1~esm1, plus listed versions
0.9.6+dfsg-50.9.6+dfsg-5build1
0.9.6+dfsg-5ubuntu0.1~esm1
libpodofo
Ubuntu:Pro:22.04:LTS
before 0.9.7+dfsg-3ubuntu0.1~esm1, plus listed versions
0.9.7+dfsg-20.9.7+dfsg-2build10.9.7+dfsg-2build20.9.7+dfsg-3
0.9.7+dfsg-3ubuntu0.1~esm1
libpodofo
Ubuntu:Pro:14.04:LTS
before 0.9.0-1.2ubuntu0.1~esm3, plus listed versions
0.9.0-1.1ubuntu10.9.0-1.20.9.0-1.2ubuntu0.1~esm1
0.9.0-1.2ubuntu0.1~esm3
podofo
openSUSE:Tumbleweed
before 0.9.8-1.1
0.9.8-1.1
podofo-0_10
openSUSE:Tumbleweed
before 0.10.5-1.1
0.10.5-1.1

History

History
RecordedChangedSources
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-20797 is a medium vulnerability (CVSS 6.5) in Podofo Project Podofo, published February 27, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.35%, the 71st percentile. Fixed in podofo 0.9.7-r0.

References

Show 49 moreShow less
MoveEnter Open