Skip to content

harden: add path validation in export-conv2d.py... - #3631

Open
anupamme wants to merge 1 commit into
ArmDeveloperEcosystem:mainfrom
anupamme:fix-repo-arm-learning-paths-path-traversal-export-conv2d
Open

harden: add path validation in export-conv2d.py...#3631
anupamme wants to merge 1 commit into
ArmDeveloperEcosystem:mainfrom
anupamme:fix-repo-arm-learning-paths-path-traversal-export-conv2d

Conversation

@anupamme

Copy link
Copy Markdown

Summary

Harden input handling in content/learning-paths/mobile-graphics-and-gaming/measure-kleidiai-kernel-performance-on-executorch/export-conv2d.py (flagged by semgrep).

Vulnerability

Field Value
ID utils.custom.path-traversal-open
Severity HIGH
Scanner semgrep
Rule utils.custom.path-traversal-open
File content/learning-paths/mobile-graphics-and-gaming/measure-kleidiai-kernel-performance-on-executorch/export-conv2d.py:40
Assessment Defensive hardening

Description: User-controlled input used in file path for open() without sanitization. This can allow path traversal attacks to read arbitrary files.

Changes

  • content/learning-paths/mobile-graphics-and-gaming/measure-kleidiai-kernel-performance-on-executorch/export-conv2d.py

Behavior Preservation

The change is scoped to 1 file on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.


This patch removes an exploit primitive — a code pattern that, while not independently exploitable today, could be chained with other weaknesses by automated exploit-development tooling. Proactive removal of such primitives raises the bar against increasingly capable automated attack tools.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant