Every CVE Search/ Get API key

CVE-2018-5308

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write...

7.8 HighFix available

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.30%Up 0.8 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.8

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

Record
CVE-2018-5308
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-476
Updated
2026-11-02
CVE List No score

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

Record
CVE-2018-5308
Updated
2026-11-02
EUVDEUVD-2018-17087 No score

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

Record
EUVD-2018-17087
Updated
2026-11-03
GitHub AdvisoriesGHSA-j5hr-7jjv-x3h2 7.8

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write...

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

Record
GHSA-j5hr-7jjv-x3h2
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-476
Updated
2026-11-02
OSVALPINE-CVE-2018-5308 7.8

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

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

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

Record
CVE-2018-5308
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 9 moreShow less
OSVDEBIAN-CVE-2018-5308 7.8

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

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

PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp). Remote attackers could leverage this vulnerability to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file.

Record
UBUNTU-CVE-2018-5308
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2019-0044 No score

Updated podofo packages fix security vulnerabilities

The podofo package has been updated to fix several security issues.

Record
MGASA-2019-0044
Updated
2026-11-02
OSVopenSUSE-SU-2024:11178-1 No score

libpodofo-devel-0.9.7-2.2 on GA media

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

Record
openSUSE-SU-2024:11178-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-2018:2481-1 No score

Security update for podofo

This update for podofo fixes the following issues:

  • CVE-2017-5852: The PoDoFo::PdfPage::GetInheritedKeyFromObject function allowed remote attackers to cause a denial of service (infinite loop) via a crafted file (bsc#1023067).
  • CVE-2017-5853: Integer overflow allowed remote attackers to have unspecified impact via a crafted file (bsc#1023069).
  • CVE-2017-5854: Prevent NULL pointer dereference that allowed remote attackers to cause a denial of service via a crafted file (bsc#1023070).
  • CVE-2017-5855: The PoDoFo::PdfParser::ReadXRefSubsection function allowed remote attackers to cause a denial of service (NULL pointer dereference) via a crafted file (bsc#1023071).
  • CVE-2017-5886: Prevent heap-based buffer overflow in the PoDoFo::PdfTokenizer::GetNextToken function that allowed remote attackers to have unspecified impact via a crafted file (bsc#1023380).
  • CVE-2017-6847: The PoDoFo::PdfVariant::DelayedLoad function allowed remote attackers to cause a denial of service (NULL pointer dereference) via a crafted file (bsc#1027778).
  • CVE-2017-6844: Buffer overflow in the PoDoFo::PdfParser::ReadXRefSubsection function allowed remote attackers to have unspecified impact via a crafted file (bsc#1027782).
  • CVE-2017-6840: The ColorChanger::GetColorFromStack function allowed remote attackers to cause a denial of service (invalid read) via a crafted file (bsc#1027787).
  • CVE-2017-7378: The PoDoFo::PdfPainter::ExpandTabs function allowed remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted PDF document (bsc#1032017).
  • CVE-2017-7379: The PoDoFo::PdfSimpleEncoding::ConvertToEncoding function allowed remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted PDF document (bsc#1032018).
  • CVE-2017-7380: Prevent NULL pointer dereference that allowed remote attackers to cause a denial of service via a crafted PDF document (bsc#1032019).
  • CVE-2017-7994: The function TextExtractor::ExtractText allowed remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted PDF document (bsc#1035534).
  • CVE-2017-8054: The function PdfPagesTree::GetPageNodeFromArray allowed remote attackers to cause a denial of service (infinite recursion and application crash) via a crafted PDF document (bsc#1035596).
  • CVE-2017-8787: The PoDoFo::PdfXRefStreamParserObject::ReadXRefStreamEntry function allowed remote attackers to cause a denial of service (heap-based buffer over-read) or possibly have unspecified other impact via a crafted PDF file (bsc#1037739).
  • CVE-2018-5308: Properly validate memcpy arguments in the PdfMemoryOutputStream::Write function to prevent remote attackers from causing a denial-of-service or possibly have unspecified other impact via a crafted pdf file (bsc#1075772).
  • CVE-2018-8001: Prevent heap-based buffer over-read vulnerability in UnescapeName() that allowed remote attackers to cause a denial-of-service or possibly unspecified other impact via a crafted pdf file (bsc#1084894).
Record
SUSE-SU-2018:2481-1
Updated
2026-11-02
OSVSUSE-SU-2019:0393-1 No score

Security update for podofo

This update for podofo fixes the following issues:

These security issues were fixed:

  • CVE-2017-6845: The PoDoFo::PdfColor::operator function allowed remote attackers to cause a denial of service (NULL pointer dereference) via a crafted file (bsc#1027779).
  • CVE-2018-5308: Properly validate memcpy arguments in the PdfMemoryOutputStream::Write function to prevent remote attackers from causing a denial-of-service or possibly have unspecified other impact via a crafted pdf file (bsc#1075772)
  • CVE-2018-5295: Prevent integer overflow in the PdfXRefStreamParserObject::ParseStream function that allowed remote attackers to cause a denial-of-service via a crafted pdf file (bsc#1075026).
  • CVE-2017-6845: The PoDoFo::PdfColor::operator function allowed remote attackers to cause a denial of service (NULL pointer dereference) via a crafted file (bsc#1027779).
  • CVE-2018-5309: Prevent integer overflow in the PdfObjectStreamParserObject::ReadObjectsFromStream function that allowed remote attackers to cause a denial-of-service via a crafted pdf file (bsc#1075322).
  • CVE-2018-5296: Prevent uncontrolled memory allocation in the PdfParser::ReadXRefSubsection function that allowed remote attackers to cause a denial-of-service via a crafted pdf file (bsc#1075021).
  • CVE-2017-7381: Prevent NULL pointer dereference that allowed remote attackers to cause a denial of service via a crafted PDF document (bsc#1032020).
  • CVE-2017-7382: Prevent NULL pointer dereference that allowed remote attackers to cause a denial of service via a crafted PDF document (bsc#1032021).
  • CVE-2017-7383: Prevent NULL pointer dereference that allowed remote attackers to cause a denial of service via a crafted PDF document (bsc#1032022).
  • CVE-2018-11256: Prevent NULL pointer dereference that allowed remote attackers to cause a denial of service via a crafted PDF document (bsc#1096889).
  • CVE-2018-5783: Prevent uncontrolled memory allocation in the PoDoFo::PdfVecObjects::Reserve function that allowed remote attackers to cause a denial of service via a crafted pdf file (bsc#1076962).

These non-security issues were fixed:

  • Prevent regression caused by the fix for CVE-2017-8054.
  • Prevent NULL dereferences when 'Kids' array is missing (bsc#1096890)
  • Added to detect cycles and recursions in XRef tables
Record
SUSE-SU-2019:0393-1
Updated
2026-11-02
OSVSUSE-SU-2024:3541-1 No score

Security update for podofo

This update for podofo fixes the following issues:

  • CVE-2015-8981: Fixed heap overflow in the function ReadXRefSubsection (bsc#1023190)

  • CVE-2017-6840: Fixed invalid memory read in ColorChanger::GetColorFromStack (colorchanger.cpp) (bsc#1027787)

  • CVE-2017-6841: Fixed NULL pointer dereference in GraphicsStack::TGraphicsStackElement::~TGraphicsStackElement (graphicsstack.h) (bsc#1027786)

  • CVE-2017-6842: Fixed NULL pointer dereference in ColorChanger::GetColorFromStack (colorchanger.cpp) (bsc#1027785)

  • CVE-2017-6845: Fixed NULL pointer dereference in GraphicsStack::TGraphicsStackElement::SetNonStrokingColorSpace (graphicsstack.h) (bsc#1027779)

  • CVE-2017-6849: Fixed NULL pointer dereference in PoDoFo::PdfColorGray::~PdfColorGray (PdfColor.cpp) (bsc#1027776)

  • CVE-2017-8378: Fixed denial of service (application crash) vectors related to m_offsets.size (PdfParser::ReadObjects func in base/PdfParser.cpp) (bsc#1037000)

  • CVE-2018-5308: Fixed Undefined behavior (memcpy with NULL pointer) in PdfMemoryOutputStream::Write (src/base/PdfOutputStream.cpp) (bsc#1075772)

  • CVE-2019-10723: Fixed Memory leak in PdfPagesTreeCache class in doc/PdfPagesTreeCache.cpp (bsc#1131544)

  • CVE-2019-9199: Fixed NULL pointer dereference in function PoDoFo:Impose:PdfTranslator:setSource() in pdftranslator.cpp (bsc#1127855)

  • Fixed NULL pointer dereference in PdfInfo::GuessFormat (pdfinfo.cpp) (bsc#1023072)

Record
SUSE-SU-2024:3541-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.6-r0
0.9.6-r0
podofo
Alpine:v3.14
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.15
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.16
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.17
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.18
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.19
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.20
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.21
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.22
before 0.9.6-r0
0.9.6-r0
Show 28 moreShow less
Affected packages
PackageAffectedFixed
podofo
Alpine:v3.23
before 0.9.6-r0
0.9.6-r0
podofo
Alpine:v3.24
before 0.9.6-r0
0.9.6-r0
libpodofo
Debian:12
before 0.9.5-9
0.9.5-9
libpodofo
Debian:13
before 0.9.5-9
0.9.5-9
libpodofo
Debian:14
before 0.9.5-9
0.9.5-9
podofo
Mageia:6
From an advisory covering 12 CVEs
before 0.9.6-1.mga6
0.9.6-1.mga6
podofo
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 16 CVEs
before 0.9.2-3.3.1
0.9.2-3.3.1
podofo
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 16 CVEs
before 0.9.2-3.3.1
0.9.2-3.3.1
podofo
SUSE:Linux Enterprise Workstation Extension 12 SP3
From an advisory covering 16 CVEs
before 0.9.2-3.3.1
0.9.2-3.3.1
podofo
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 11 CVEs
before 0.9.2-3.6.3
0.9.2-3.6.3
podofo
SUSE:Linux Enterprise Desktop 12 SP4
From an advisory covering 11 CVEs
before 0.9.2-3.6.3
0.9.2-3.6.3
podofo
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 11 CVEs
before 0.9.2-3.6.3
0.9.2-3.6.3
podofo
SUSE:Linux Enterprise Software Development Kit 12 SP4
From an advisory covering 11 CVEs
before 0.9.2-3.6.3
0.9.2-3.6.3
podofo
SUSE:Linux Enterprise Workstation Extension 12 SP3
From an advisory covering 11 CVEs
before 0.9.2-3.6.3
0.9.2-3.6.3
podofo
SUSE:Linux Enterprise Workstation Extension 12 SP4
From an advisory covering 11 CVEs
before 0.9.2-3.6.3
0.9.2-3.6.3
podofo
SUSE:Linux Enterprise Software Development Kit 12 SP5
From an advisory covering 11 CVEs
before 0.9.2-3.21.1
0.9.2-3.21.1
podofo
SUSE:Linux Enterprise Workstation Extension 12 SP5
From an advisory covering 11 CVEs
before 0.9.2-3.21.1
0.9.2-3.21.1
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
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: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
From an advisory covering 10 CVEs
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
libpodofo
Ubuntu:Pro:16.04:LTS
From an advisory covering 10 CVEs
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
From an advisory covering 10 CVEs
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
From an advisory covering 10 CVEs
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
From an advisory covering 10 CVEs
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
podofo
openSUSE:Tumbleweed
From an advisory covering 30 CVEs
before 0.9.7-2.2
0.9.7-2.2
podofo-0_10
openSUSE:Tumbleweed
From an advisory covering 33 CVEs
before 0.10.5-1.1
0.10.5-1.1

History

History
RecordedChangedSources
affected, facts
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-5308 is a high vulnerability (CVSS 7.8) in Podofo Project Podofo, published January 9, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.30%, the 70th percentile. Fixed in podofo 0.9.6-r0.

References

Show 93 moreShow less
MoveEnter Open