CVE-2026-42078
PPTAgent: Arbitrary File Write + Directory Creation via markdown_table_to_image
PPTAgent is an agentic framework for reflective PowerPoint generation. Prior to commit 418491a, PPTAgent is vulnerable to arbitrary file write and directory creation via markdown_table_to_image. This issue has been patched via commit 418491a.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.6
PPTAgent: Arbitrary File Write + Directory Creation via markdown_table_to_image
PPTAgent is an agentic framework for reflective PowerPoint generation. Prior to commit 418491a, PPTAgent is vulnerable to arbitrary file write and directory creation via markdown_table_to_image. This issue has been patched via commit 418491a.
- Record
CVE-2026-42078- CVSS 3.1
- 4.6 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2026-27014
4.6
PPTAgent is an agentic framework for reflective PowerPoint generation. Prior to commit 418491a, PPTAgent is vulnerable to arbitrary file write and directory creation via markdown_table_to_image. This issue has been patched via commit 418491a.
- Record
EUVD-2026-27014- CVSS 3.1
- 4.6 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-hrcw-xc63-g29m
4.6
PPTAgent: Arbitrary File Write + Directory Creation via markdown_table_to_image
Summary
The markdown_table_to_image tool accepts a caller-controlled path parameter and passes it directly to get_html_table_image:
# pptagent/mcp_server.py:127-143
def markdown_table_to_image(markdown_table: str, path: str, css: str) -> str:
"""
Args:
path (str): The file path where the image will be saved
"""
html = markdown_to_html(markdown_table)
get_html_table_image(html, path, css) # ← no path validation
return f"Markdown table converted to image and saved to {path}"
# pptagent/utils.py:337-366
def get_html_table_image(html: str, output_path: str, css: str = None):
parent_dir, base_name = os.path.split(output_path)
if parent_dir and not os.path.exists(parent_dir):
os.makedirs(parent_dir) # ← creates arbitrary directories
hti = Html2Image(...)
hti.screenshot(
html_str=html,
css_str=css,
save_as=base_name, # ← writes image to any directory
size=(1000, 600),
)
os.makedirs(parent_dir) creates arbitrary directory trees, and Html2Image.screenshot writes the rendered image to parent_dir/base_name. Unlike download_file in the same project, there is no is_relative_to(workspace) guard. This behaviour can be fixed with the same pattern as the above.
Impact
The concrete attack scenarios include
- SSH key replacement:
path = "/home/user/.ssh/authorized_keys"— replaces the authorized_keys file with an image binary (breaks - SSH but could be an image crafted with a specific PNG/JPEG payload). - Web shell:
path = "/var/www/html/uploads/shell.php"— writes the rendered PNG there; the file has the .php extension but PNG content; combined with Apache Options +MultiViews or file-include vulnerabilities could be dangerous. - Directory creation oracle:
path = "/root/test/probe.png"— if the directory is created, confirms the target path exists; if it errors, reveals permissions information.
- Record
GHSA-hrcw-xc63-g29m- CVSS 3.1
- 4.6 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
4.6
PPTAgent is an agentic framework for reflective PowerPoint generation. Prior to commit 418491a, PPTAgent is vulnerable to arbitrary file write and directory creation via markdown_table_to_image. This issue has been patched via commit 418491a.
- Record
CVE-2026-42078- CVSS 3.1
- 4.6 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
4.6
PPTAgent: Arbitrary File Write + Directory Creation via markdown_table_to_image
PPTAgent is an agentic framework for reflective PowerPoint generation. Prior to commit 418491a, PPTAgent is vulnerable to arbitrary file write and directory creation via markdown_table_to_image. This issue has been patched via commit 418491a.
- Record
CVE-2026-42078- CVSS 3.1
- 4.6 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVGHSA-hrcw-xc63-g29m
4.6
PPTAgent: Arbitrary File Write + Directory Creation via markdown_table_to_image
Summary
The markdown_table_to_image tool accepts a caller-controlled path parameter and passes it directly to get_html_table_image:
# pptagent/mcp_server.py:127-143
def markdown_table_to_image(markdown_table: str, path: str, css: str) -> str:
"""
Args:
path (str): The file path where the image will be saved
"""
html = markdown_to_html(markdown_table)
get_html_table_image(html, path, css) # ← no path validation
return f"Markdown table converted to image and saved to {path}"
# pptagent/utils.py:337-366
def get_html_table_image(html: str, output_path: str, css: str = None):
parent_dir, base_name = os.path.split(output_path)
if parent_dir and not os.path.exists(parent_dir):
os.makedirs(parent_dir) # ← creates arbitrary directories
hti = Html2Image(...)
hti.screenshot(
html_str=html,
css_str=css,
save_as=base_name, # ← writes image to any directory
size=(1000, 600),
)
os.makedirs(parent_dir) creates arbitrary directory trees, and Html2Image.screenshot writes the rendered image to parent_dir/base_name. Unlike download_file in the same project, there is no is_relative_to(workspace) guard. This behaviour can be fixed with the same pattern as the above.
Impact
The concrete attack scenarios include
- SSH key replacement:
path = "/home/user/.ssh/authorized_keys"— replaces the authorized_keys file with an image binary (breaks - SSH but could be an image crafted with a specific PNG/JPEG payload). - Web shell:
path = "/var/www/html/uploads/shell.php"— writes the rendered PNG there; the file has the .php extension but PNG content; combined with Apache Options +MultiViews or file-include vulnerabilities could be dangerous. - Directory creation oracle:
path = "/root/test/probe.png"— if the directory is created, confirms the target path exists; if it errors, reveals permissions information.
- Record
GHSA-hrcw-xc63-g29m- CVSS 3.1
- 4.6 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVPYSEC-2026-2893
4.6
PPTAgent: Arbitrary File Write + Directory Creation via markdown_table_to_image
Summary
The markdown_table_to_image tool accepts a caller-controlled path parameter and passes it directly to get_html_table_image:
# pptagent/mcp_server.py:127-143
def markdown_table_to_image(markdown_table: str, path: str, css: str) -> str:
"""
Args:
path (str): The file path where the image will be saved
"""
html = markdown_to_html(markdown_table)
get_html_table_image(html, path, css) # ← no path validation
return f"Markdown table converted to image and saved to {path}"
# pptagent/utils.py:337-366
def get_html_table_image(html: str, output_path: str, css: str = None):
parent_dir, base_name = os.path.split(output_path)
if parent_dir and not os.path.exists(parent_dir):
os.makedirs(parent_dir) # ← creates arbitrary directories
hti = Html2Image(...)
hti.screenshot(
html_str=html,
css_str=css,
save_as=base_name, # ← writes image to any directory
size=(1000, 600),
)
os.makedirs(parent_dir) creates arbitrary directory trees, and Html2Image.screenshot writes the rendered image to parent_dir/base_name. Unlike download_file in the same project, there is no is_relative_to(workspace) guard. This behaviour can be fixed with the same pattern as the above.
Impact
The concrete attack scenarios include
- SSH key replacement:
path = "/home/user/.ssh/authorized_keys"— replaces the authorized_keys file with an image binary (breaks - SSH but could be an image crafted with a specific PNG/JPEG payload). - Web shell:
path = "/var/www/html/uploads/shell.php"— writes the rendered PNG there; the file has the .php extension but PNG content; combined with Apache Options +MultiViews or file-include vulnerabilities could be dangerous. - Directory creation oracle:
path = "/root/test/probe.png"— if the directory is created, confirms the target path exists; if it errors, reveals permissions information.
- Record
PYSEC-2026-2893- CVSS 3.1
- 4.6 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pptagentPyPI |
before 1.1.36 | 1.1.36 |
pptagentPyPI |
before 1.1.36, plus listed versions 0.2.00.2.10.2.100.2.110.2.13 Show 45 moreShow less0.2.140.2.150.2.160.2.170.2.180.2.20.2.30.2.40.2.50.2.60.2.70.2.80.2.91.0.01.0.11.0.21.1.11.1.101.1.111.1.121.1.131.1.141.1.151.1.161.1.171.1.181.1.191.1.21.1.201.1.211.1.221.1.241.1.261.1.271.1.281.1.291.1.31.1.301.1.311.1.321.1.331.1.341.1.351.1.51.1.6 |
1.1.36 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-42078 is a medium vulnerability (CVSS 4.6) in Icip-cas Pptagent, published May 4, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.20%, the 9th percentile. Fixed in pptagent 1.1.36.
References
github.com/icip-cas/PPTAgent/security/advisories/GHSA-hrcw-xc63-g29m
github.com/icip-cas/PPTAgent/commit/418491a9a1c02d9d93194b5973bb58df35cf9d00
nvd.nist.gov/vuln/detail/CVE-2026-42078
github.com/advisories/GHSA-hrcw-xc63-g29m
github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42078.json
github.com/icip-cas/PPTAgent
pypi.org/project/pptagent
Left out here: 3 versions. The JSON record has them.