An issue was discovered in QPDF before 7.0.0. There is a large heap-based out-of-bounds read in the PlBuffer::write function in PlBuffer.cc. It is caused by an integer overflow in the PNG filter.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-18185.json"
[
{
"target": {
"file": "libqpdf/QPDF.cc"
},
"digest": {
"line_hashes": [
"78122971361805216513325185650823995948",
"289084884134905756271595066312586509022",
"108533816704163507562458597112410082940",
"27048527550166131162142414784945091009"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2017-18185-9218c2a5",
"source": "https://github.com/qpdf/qpdf/commit/0f1ce8e6461d417d1fed2ea4a0cbf27f10ee4eff",
"deprecated": false,
"signature_version": "v1"
}
]