CVE-2018-5308 json
PoDoFo 0.9.5 does not properly validate memcpy arguments in the PdfMemoryOutputStream::Write function (base/PdfOutputStream.cpp).
published 2018-01-09 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-17087
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- libpodofo Debian 14, Debian 13, Debian 12 0.9.5-9
debian advisories DEBIAN-CVE-2018-5308
- libpodofo Ubuntu Pro 14.04 LTS 0.9.0-1.2ubuntu0.1~esm3
- libpodofo Ubuntu Pro 16.04 LTS 0.9.3-4ubuntu0.1~esm1
- libpodofo Ubuntu Pro 20.04 LTS 0.9.6+dfsg-5ubuntu0.1~esm1
- libpodofo Ubuntu Pro 22.04 LTS 0.9.7+dfsg-3ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2018-5308
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- podofo SLE Workstation Extension 12 SP5, SLE Software Development Kit 12 SP5 0.9.2-3.21.1
- podofo SLED 12 SP4, SLED 12 SP3, SLE Workstation Extension 12 SP4 +3 more 0.9.2-3.6.3
- podofo SLED 12 SP3, SLE Workstation Extension 12 SP3, SLE Software Development Kit 12 SP3 0.9.2-3.3.1
suse advisories SUSE-SU-2024:3541-1SUSE-SU-2019:0393-1SUSE-SU-2018:2481-1
- podofo-0_10 openSUSE Tumbleweed 0.10.5-1.1
- podofo openSUSE Tumbleweed 0.9.7-2.2
opensuse advisories openSUSE-SU-2025:15521-1openSUSE-SU-2024:11178-1
- podofo Alpine 3.24, Alpine 3.23, Alpine 3.22 +9 more 0.9.6-r0
alpine advisories ALPINE-CVE-2018-5308
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- podofo Arch Linux 0.9.6-1
arch linux advisories AVG-1426
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-5308 updated cvss 6.3
podofo: Out-of-bounds write in dfMemoryOutputStream::Write function in base/PdfOutputStream.cpp
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.30% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1532390 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
References
-
bugzilla.redhat.com
/show_bug.cgi?id=1532390
exploit, issue-tracking, third-party-advisory
Sources
- CVE List CVE-2018-5308
- NVD CVE-2018-5308
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.