Skip to content

Conversation

@xry111
Copy link
Contributor

@xry111 xry111 commented Nov 9, 2025

When we pass a string to is_safe_percent_encode, it always begins with "%'. But the lookup table UNSAFE_PERCENT_ENCODE does not contain "%" so nothing can be matched.

Also update the test suite to fix the false positive.

When we pass a string to is_safe_percent_encode, it always begins with
"%'.  But the lookup table UNSAFE_PERCENT_ENCODE does not contain "%" so
nothing can be matched.

Also update the test suite to fix the false positive.

Signed-off-by: Xi Ruoyao <[email protected]>
@xry111 xry111 force-pushed the xry111/cve-2025-11563-2 branch from 8bd1c71 to 65546ba Compare November 9, 2025 06:38
@samueloph samueloph merged commit 65546ba into curl:main Nov 9, 2025
4 checks passed
@samueloph
Copy link
Collaborator

@xry111 thank you for the report and patch, we had an initial version of our fix which was thoroughly tested and confirmed to work, but then we refactored it later and relied on the unit tests, which was not correctly checking the fix.

I'm merging this and creating a new release: 2025.11.09

MingcongBai pushed a commit to AOSC-Tracking/curl that referenced this pull request Nov 10, 2025
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.

2 participants