Skip to content

fix: eight memcpy operations in uvwasi components co... in fd_table.c#62531

Open
orbisai0security wants to merge 1 commit intonodejs:mainfrom
orbisai0security:fix-fix-uvwasi-fd-table-path-length-overflow
Open

fix: eight memcpy operations in uvwasi components co... in fd_table.c#62531
orbisai0security wants to merge 1 commit intonodejs:mainfrom
orbisai0security:fix-fix-uvwasi-fd-table-path-length-overflow

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix critical severity security issue in deps/uvwasi/src/fd_table.c.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File deps/uvwasi/src/fd_table.c:104

Description: Eight memcpy operations in UVWASI components copy data from attacker-controlled sources (file paths, environment variables, argv parameters) without validating that source length fits within destination buffer boundaries. WASI applications can provide arbitrarily long strings through initialization parameters and file operations, causing these memcpy calls to write beyond allocated buffer boundaries and corrupt adjacent memory structures.

Changes

  • deps/uvwasi/src/fd_table.c

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • Code review passed

Automated security fix by OrbisAI Security

Eight memcpy operations in UVWASI components copy data from attacker-controlled sources (file paths, environment variables, argv parameters) without validating that source length fits within destination buffer boundaries
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/security-wg
  • @nodejs/wasi

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. wasi Issues and PRs related to the WebAssembly System Interface. labels Apr 1, 2026
@devsnek
Copy link
Copy Markdown
Member

devsnek commented Apr 1, 2026

slop :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. wasi Issues and PRs related to the WebAssembly System Interface.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants