Exploit databaseDownload repository ZIP
GH-1d5a85f780a24b36a6053b0f94ff22e1
skvlent/cve-2026-112611
Sources for CVE-2026-112611
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files5
skvlent/cve-2026-112611Revision fcdcd277805d
- ↑..Parent directory
- README.md
- gen_cmm_arbitrary_write.py
- gen_icc_probe.py
- gen_official_shape.py
- gen_zero_write.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc/gen_icc_probe.py
Python · 5,099 bytes#!/usr/bin/env python3
"""Generate a PDF that draws an image through an ICCBased colour space.
Purpose: exercise the ColorSync CMM parser/converter path from a PDF, for defensive parser
research. The embedded profile is a valid RGB matrix/TRC profile; --swap-colorants swaps the
red and blue colorants, which changes the rendered pixels and demonstrates that the profile
(not just the pixel values) drives the output.
Standard library only. No crafted PDF is committed to the repository; generate locally:
python3 gen_icc_probe.py out/icc_probe.pdf
python3 gen_icc_probe.py out/icc_probe_swap.pdf --swap-colorants
python3 gen_icc_probe.py out/icc_probe16.pdf --bits 16
"""
import argparse
import struct
def s15(value):
return struct.pack(">i", int(round(value * 65536)))
def xyz_tag(x, y, z):
return b"XYZ " + b"\x00" * 4 + s15(x) + s15(y) + s15(z)
def curve_tag(gamma):
return b"curv" + b"\x00" * 4 + struct.pack(">IH", 1, int(round(gamma * 65535)))
def make_profile(swap_colorants=False, gamma=0.8):
red = (0.436, 0.222, 0.014)
green = (0.385, 0.717, 0.097)
blue = (0.143, 0.061, 0.714)
if swap_colorants:
red, blue = blue, red
tags = [
(b"rXYZ", xyz_tag(*red)),
(b"gXYZ", xyz_tag(*green)),
(b"bXYZ", xyz_tag(*blue)),
(b"wtpt", xyz_tag(0.9642, 1.0, 0.8249)),
(b"rTRC", curve_tag(gamma)),
(b"gTRC", curve_tag(gamma)),
(b"bTRC", curve_tag(gamma)),
]
start = 128 + 4 + 12 * len(tags)
entries = bytearray()
data = bytearray()
for signature, blob in tags:
entries += struct.pack(">4sII", signature, start + len(data), len(blob))
data += blob
header = bytearray(128)
struct.pack_into(">I", header, 0, start + len(data))
header[4:8] = b"none"
struct.pack_into(">I", header, 8, 0x02100000)
header[12:16] = b"mntr"
header[16:20] = b"RGB "
header[20:24] = b"XYZ "
struct.pack_into(">6H", header, 24, 2026, 1, 1, 0, 0, 0)
header[36:40] = b"acsp"
header[40:44] = b"APPL"
struct.pack_into(">III", header, 68, 0xF6D6, 0x10000, 0xD32D)
return bytes(header) + struct.pack(">I", len(tags)) + bytes(entries) + bytes(data)
def make_pixels(width, height, bits):
pixels = bytearray()
for y in range(height):
for x in range(width):
for channel in range(3):
value = ((x * 4096 + y * 257 + channel * 1000) * 9) & 0xFFFF
if bits == 8:
pixels.append((value >> 8) & 0xFF)
else:
pixels += struct.pack(">H", value)
return bytes(pixels)
def build_pdf(profile, pixels, width, height, bits):
content = b"q 200 0 0 200 0 0 cm /Im1 Do Q\n"
objects = [
b"<< /Type /Catalog /Pages 2 0 R >>",
b"<< /Type /Pages /Kids [3 0 R] /Count 1 >>",
b"<< /Type /Page /Parent 2 0 R /MediaBox [0 0 200 200] "
b"/Resources << /XObject << /Im1 5 0 R >> >> /Contents 4 0 R >>",
b"<< /Length %d >>\nstream\n" % len(content) + content + b"endstream",
b"<< /Type /XObject /Subtype /Image /Width %d /Height %d "
b"/ColorSpace [/ICCBased 6 0 R] /BitsPerComponent %d /Length %d >>\nstream\n"
% (width, height, bits, len(pixels)) + pixels + b"\nendstream",
b"<< /N 3 /Length %d >>\nstream\n" % len(profile) + profile + b"\nendstream",
]
out = bytearray(b"%PDF-1.7\n%\xe2\xe3\xcf\xd3\n")
offsets = [0]
for index, obj in enumerate(objects, 1):
offsets.append(len(out))
out += b"%d 0 obj\n" % index + obj + b"\nendobj\n"
xref = len(out)
out += b"xref\n0 %d\n" % (len(objects) + 1) + b"0000000000 65535 f \n"
for offset in offsets[1:]:
out += b"%010d 00000 n \n" % offset
out += (b"trailer\n<< /Size %d /Root 1 0 R >>\nstartxref\n%d\n%%%%EOF\n"
% (len(objects) + 1, xref))
return bytes(out)
def main():
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
parser.add_argument("output", help="output PDF path")
parser.add_argument("--swap-colorants", action="store_true",
help="swap the red and blue colorants (profile-use check)")
parser.add_argument("--gamma", type=float, default=0.8,
help="TRC gamma encoded in the profile (0..1, default 0.8)")
parser.add_argument("--bits", type=int, choices=(8, 16), default=8,
help="image bits per component")
parser.add_argument("--size", type=int, default=8, help="image width/height in pixels")
args = parser.parse_args()
profile = make_profile(args.swap_colorants, args.gamma)
pixels = make_pixels(args.size, args.size, args.bits)
pdf = build_pdf(profile, pixels, args.size, args.size, args.bits)
with open(args.output, "wb") as handle:
handle.write(pdf)
print("wrote %s (%d bytes); profile=%d bytes; colorants=%s; bits=%d"
% (args.output, len(pdf), len(profile),
"swapped" if args.swap_colorants else "identity", args.bits))
if __name__ == "__main__":
main()